Skip to content

fix(ci): match the truncated windows-process-tree virtual store dir - #20447

Merged
nwparker merged 1 commit into
mainfrom
nwparker/fix-process-tree-cache-glob
Sep 13, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/fix-process-tree-cache-glob

Conversation

@nwparker

@nwparker nwparker commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 0
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 0

@vscode/windows-process-tree recompiles on every Windows job because its native cache glob matches nothing there.

On Windows, pnpm shortens the virtual store directory name:

Windows:      @vscode+windows-process-tre_7fa7a0322de208d70cad687cb70f1b07
macOS/Linux:  @[email protected]_patch_hash=e66202cc62...

The truncation cuts into the package name before the @, so @vscode+windows-process-tree@* cannot match. node-pty escapes the same treatment only because its truncation ([email protected]_patch_hash=b_ca0095...) lands after node-pty@, which its glob still matches.

Widening the prefix to @vscode+windows-process-tre* matches both forms. Applied to all four cache blocks — install-node-dependencies/action.yml:154,165 and pr.yml:839,908 are separate configurations — plus the assertion that pinned the old prefix.

Evidence

Visible in #20445's cache-hit run: with both caches hit and node-pty and @orca/windows-registry restored, @vscode/windows-process-tree was the only module still rebuilding.

Directory names confirmed directly on a Windows box and on macOS; the widened glob resolves on macOS and matches exactly one directory (no over-match).

Worth ~10-15s per Windows job.

On Windows, pnpm shortens the virtual store directory to
@VScode+windows-process-tre_<hash>, cutting into the package name before
the @, so the @VScode+windows-process-tree@* glob matched nothing and the
addon recompiled on every Windows job. node-pty escapes this because its
truncation lands after node-pty@, which the glob still matches.

Widening the prefix to @VScode+windows-process-tre* matches both the full
name kept on macOS/Linux and the truncated Windows one.
@coderabbitai

coderabbitai Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: a87c4972-156d-471f-9946-f4f3666eb25e

📥 Commits

Reviewing files that changed from the base of the PR and between 411843f and 4c1df5a.

📒 Files selected for processing (3)
  • .github/actions/install-node-dependencies/action.yml
  • .github/workflows/pr.yml
  • config/scripts/pr-workflow-parallelism.test.mjs

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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Widen the windows-process-tree cache glob — .github/actions/install-node-dependencies/action.yml and .github/workflows/pr.yml now use @vscode+windows-process-tre*, matching both the POSIX name (@[email protected]_patch_hash=…) and the Windows-truncated name (@vscode+windows-process-tre_<hash>).
  • Pin the new prefix in the parallelism test — config/scripts/pr-workflow-parallelism.test.mjs asserts the widened literal, so a revert fails.

The diagnosis holds: Windows' 60-char virtual-store limit (POSIX is 120, visible in .modules.yaml) truncates the patched depPath before the @, so the old glob could never match. I checked all four cache blocks are updated and that no other windows-process-tree/build glob remains. Two things worth recording:

  • All four cache keys hash .github/actions/install-node-dependencies/action.yml, so this edit rotates the keys. That is load-bearing: had the key stayed stable, the existing Windows entry (saved without the process-tree build) would be restored and actions/cache would skip re-saving, leaving the module rebuilding anyway.
  • pr.yml's two inline cache blocks aren't asserted by pr-workflow-parallelism.test.mjs (only the action's blocks are). Pre-existing gap, not something this PR needs to close.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@nwparker
nwparker merged commit bd0f882 into main Sep 13, 2026
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant