Repository navigation
fix: set up the harness with pnpm/setup - #57
Conversation
The job installed its pnpm through corepack, and corepack exports COREPACK_ROOT to every child process — so the pnpm 12 the benchmark bootstraps saw it, concluded it was corepack-managed, and refused `self-update` (ERR_PNPM_CANT_SELF_UPDATE_IN_COREPACK), failing the run before anything was measured. pnpm/setup installs a standalone, signature-verified pnpm at the version the repo's packageManager field pins, installs the Node.js the harness runs on, and runs `pnpm install` — replacing the corepack block, actions/setup-node, and the explicit install step. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Warning Review limit reached
Next review available in: 19 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 ignored due to path filters (1)
📒 Files selected for processing (2)
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 |
pnpm/setup reads the runtime from package.json, so the version lives with the rest of the harness's pins instead of in the workflow. Co-Authored-By: Claude Fable 5 <[email protected]>
PR Summary by QodoFix benchmark workflow by using pnpm/setup instead of corepack
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
The pin moves from `packageManager` to `devEngines.packageManager` as a range on the v12 line, next to the runtime pin, and the `engines` field — which contradicted it — goes away. pnpm/setup reads both pins, so the workflow names no versions at all. The lockfile is regenerated by pnpm 12, which also records the pinned runtime in it; a frozen-lockfile install and the tests pass under it. Co-Authored-By: Claude Fable 5 <[email protected]>
The devEngines.packageManager range pin now has its resolution in pnpm-lock.yaml's env document — pnpm 12.0.0-rc.6 with the platform-binary closure — so every machine on the project runs the same pnpm rather than whatever satisfying version it happens to have. Written by pnpm itself (with pnpm/pnpm#13932 applied; the fastpath of released rc.6 preserves the entry and installs with it frozen). Co-Authored-By: Claude Fable 5 <[email protected]>
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]>
Fixes the failed benchmark run: the job installed its pnpm through corepack, and corepack exports
COREPACK_ROOTto every child process — so the pnpm 12 the benchmark bootstraps saw it, concluded it was corepack-managed, and refusedself-updatewithERR_PNPM_CANT_SELF_UPDATE_IN_COREPACKbefore anything was measured. Reproduced locally by exportingCOREPACK_ROOTand running the provisioning.pnpm/setup removes corepack from the job entirely: it installs a standalone, signature-verified pnpm at the version the repo's
packageManagerfield pins, installs the Node.js the harness runs on (runtime: node@24), and runspnpm install— replacing the corepack block,actions/setup-node, and the explicit install step in one go.🤖 Generated with Claude Code