Repository navigation
fix(ci): match the truncated windows-process-tree virtual store dir - #20447
Conversation
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.
|
Warning Review limit reachedNext included review available in 13 minutes. View limit detailsLimit 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. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
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. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Widen the
windows-process-treecache glob —.github/actions/install-node-dependencies/action.ymland.github/workflows/pr.ymlnow 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.mjsasserts 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 andactions/cachewould skip re-saving, leaving the module rebuilding anyway. pr.yml's two inline cache blocks aren't asserted bypr-workflow-parallelism.test.mjs(only the action's blocks are). Pre-existing gap, not something this PR needs to close.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@vscode/windows-process-treerecompiles on every Windows job because its native cache glob matches nothing there.On Windows, pnpm shortens the virtual store directory name:
The truncation cuts into the package name before the
@, so@vscode+windows-process-tree@*cannot match.node-ptyescapes the same treatment only because its truncation ([email protected]_patch_hash=b_ca0095...) lands afternode-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,165andpr.yml:839,908are separate configurations — plus the assertion that pinned the old prefix.Evidence
Visible in #20445's cache-hit run: with both caches hit and
node-ptyand@orca/windows-registryrestored,@vscode/windows-process-treewas 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.