Repository navigation
fix: keep the CI globalShims override out of the runtime scenarios - #58
Conversation
The Node.js version management scenarios measure pnpm's per-project runtime switching, and a globalShims override in the inherited environment reaches into both halves of it: at link time it makes `pnpm runtime set` write a plain link instead of the switching shim, and at run time it turns an already-written shim's dispatch off. CI is such an environment since #57 — pnpm/setup exports PNPM_CONFIG_GLOBAL_SHIMS={"node":false} to keep the runtime it installed authoritative for the job — which made the pinned-project scenario run the global default and fail its version assertion. The runner now blanks the override (empty means unset to pnpm) in the environment it builds. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Warning Review limit reached
Next review available in: 4 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
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 |
PR Summary by QodoFix runtime benchmarks by unsetting inherited PNPM globalShims override
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Fixes the failed run:
Expected Node.js 22 to be used, got "v24.19.0"in the Node.js version management section.Since #57, pnpm/setup exports
PNPM_CONFIG_GLOBAL_SHIMS={"node":false}into the job environment — deliberately, so the runtime the action installed stays authoritative for the job (a matrix job asking fornode@22must not get switched to the repo's pin). But the benchmark's runtime scenarios measure exactly the thing that override disables, and the env override outranks every other config layer. It breaks the scenario twice over: at link time,pnpm runtime set node --globalwrites a plain link to the global default instead of the switching shim; at run time, it turns an already-written shim's dispatch off. Either waynodein a project pinned to 22 runs the global default 24.The pnpm12 runner now blanks
PNPM_CONFIG_GLOBAL_SHIMS/pnpm_config_global_shimsin the environment it builds — empty means unset to pnpm, and assignment is the only way to mask an inherited value through the env prototype chain.Verified by running the actual
benchmarkNodeVersionsscenario with the override exported, which reproduced the CI failure before the fix and completes after it (pinned project runs v22.23.2; all three measurements succeed).🤖 Generated with Claude Code