Skip to content
Source
Sign inSign up
TanStack/intent

perf: skip artifact coverage scan when a workspace package has a generated skill #336

MergedLadyBluenotes(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/336/headmerged by LadyBluenotes(GitHub profile, opens in a new tab)

🎯 Changes

  • In buildWorkspaceCoverageSignals, hasGeneratedSkill (fsCache.findSkillFiles(join(packageDir, 'skills')).length > 0) already establishes coverage for a workspace package, but the loop still ran artifacts.skills.some(...) before checking if (hasGeneratedSkill || hasArtifactCoverage) continue.
  • Continue immediately when hasGeneratedSkill is true so packages with a generated SKILL.md skip scanning artifacts.skills.
  • Reported staleness and missing-package-coverage signals do not change.
  • Adds a patch changeset.
Workspace size (16 artifact skills/pkg, all packages covered by generated SKILL.md)artifacts.skills visits (main ab9877c)artifacts.skills visits (PR)buildWorkspaceCoverageSignals median (main ab9877c, Node v24.14.1 win32 x64, 15 samples)buildWorkspaceCoverageSignals median (PR)
4 packages (16 artifact skills)2800.0807 ms (min 0.0761, max 0.1318)0.0471 ms (min 0.0359, max 0.0727)
30 packages (480 artifact skills)6,990013.8825 ms (min 12.8744, max 24.7973)0.4142 ms (min 0.3184, max 0.6736)
60 packages (960 artifact skills)28,380054.0838 ms (min 52.7352, max 97.2282)0.9538 ms (min 0.7221, max 1.7053)
120 packages (1,920 artifact skills)114,3600228.3996 ms (min 210.6511, max 290.4833)1.9434 ms (min 1.5011, max 3.2624)

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm run test:pr (run pnpm build:all first).

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).
    1. changeset-bot[bot](GitHub profile, opens in a new tab)commented

      🦋 Changeset detected

      Latest commit: 0b2d601913607ac81088ecec3cffd421c3e79be6

      The changes in this PR will be included in the next version bump.

      This PR includes changesets to release 1 package
      NameType
      @tanstack/intentPatch

      Not sure what this means? Click here to learn what changesets are.

      Click here if you're a maintainer who wants to add another changeset to this PR

    2. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →
      ✨ Finishing Touches: 💡 1
      🛠️ Fix failing CI checks: 💡
      • Commit to this branch
      • Create a new PR
      📝 Generate docstrings
      • Commit to this branch
      • Create a new PR
      🧪 Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    3. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit 0bbae85200784c06f721490ec4d50d36ae1837bb

      CommandStatusDurationResult
      nx affected --targets=test:eslint,test:sherif,t...✅ Succeeded1m 7sView ↗
      nx run-many --targets=build✅ Succeeded2sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-10-19 00:37:56 UTC

    4. Open in StackBlitz

      npm i https://pkg.pr.new/@tanstack/intent@336

      commit: 0bbae85

    5. Merging this PR will not alter performance

      :warning: 8 benchmarks spent significant time in system calls

      System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

      Measurement and system calls

      ✅ 12 untouched benchmarks


      Comparing perf/stale-skip-covered-artifact-scan (0b2d601) with main (ab9877c) Open in CodSpeed

Sign in to join this conversation.