Repository navigation
fix(ci): preserve prepared pnpm when selecting Node - #196352
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
vincentkoc
marked this pull request as ready for review
November 10, 2026 00:41
vincentkoc
enabled auto-merge (squash)
November 10, 2026 00:45
Member
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 10, 2026
* fix(ci): preserve prepared pnpm when selecting Node * test(ci): isolate prepared pnpm discovery fixture * test(ci): pin Bash for isolated pnpm fixture
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Dependency reconciliation can bypass the prepared pnpm launcher when
install-dependencies.shprepends the selected Node directory toPATH. On Testbox, this discards the launcher’s hydrated cache defaults and downloads packages a second time.User Impact
CI and remote checks retain their selected package manager while using the selected Node runtime. A caller without pnpm on its original PATH still gets the existing Node-directory fallback. Frozen lockfile policy and install options are unchanged.
Why This Change Was Made
Resolve pnpm before adding
NODE_BIN, and use that quoted executable for version probes and installation. Extend the existing frozen-policy regression with competing launchers and a fallback case. The exact 15-line test allocation records this coverage.This completes the installer path behind the Testbox launchers introduced in #196332.
Evidence
In live run 42728915476, SSH reconciliation still downloaded 1,480 packages after hydration. Source inspection identified the PATH prepend selecting the original Node-directory pnpm instead of the prepared launcher.
A reproduction executing the real installer exits through the wrong pnpm on the base and uses the prepared launcher successfully with this patch. Independent caller review confirmed setup already prepares pnpm, while the fallback preserves Node-directory-only callers.
Validation:
Live cache reuse passed on Blacksmith Testbox
tbx_01m71esg6gsscxktt07bcxvht5in run 42731004451, allocated through workflow refmainwith the exact reviewed source capsule. Selected-source reconciliation completed in 84 ms. Both the pnpm and Corepack launchers resolved the installed store; a clean-environmentpnpm install --frozen-lockfile --offlinepassed in 0.12 seconds. Source input hashes matched. This verifies cache handoff, not a statistically controlled runner-cost comparison; the broader sizing experiment stays separate.