Repository navigation
fix(ci): reuse prepared pnpm caches in Testbox commands - #196332
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review endedClawSweeper stopped reviewing this revision because the pull request closed. |
vincentkoc
marked this pull request as ready for review
November 10, 2026 00:16
vincentkoc
enabled auto-merge (squash)
November 10, 2026 00:20
Contributor
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(ci): reuse prepared pnpm caches in Testbox commands This is item 1/1 in the current shard. Shard 0/1. This temporary status tracks the active review worker. The completed review will appear in the durable ClawSweeper review comment. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Member
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
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
Testbox SSH commands lose the prepared Corepack and pnpm cache paths, so selected-source reconciliation downloads packages that hydration already installed.
User Impact
No product behavior change. Remote checks reuse their existing package cache instead of paying for a second download. Explicit command cache overrides continue to work.
Why This Change Was Made
The Testbox shell action exposes Node and pnpm through
/usr/local/bin, but the Corepack shim did not carry the environment configured during hydration. Capture the three prepared path defaults in that launcher so bothpnpmandcorepack pnpmuse them after the SSH environment boundary. Keep source verification and frozen dependency reconciliation unchanged.Evidence
In run 42653077930, hydration reused all 1,481 packages, downloaded zero, and completed installation in 1.5 seconds. Its subsequent SSH reconciliation reused zero packages and was stopped during downloads without reaching the compiler workload.
The shell reproduction fails on the base and passes with the fix. The regression executes the actual preparation shell and verifies both command forms, quoted paths, explicit store overrides, and colocated Node/Corepack launchers. The launcher resolves Corepack before replacing its public symlink, so it cannot invoke itself in the normal package symlink layout.
Validation:
testbox-baseandtestbox-command-cwd; 40.9 seconds wall time (24.9 and 10.2 seconds per file). CI timing remains pending. These fixtures exercise real shell processes and Git checkouts.check:workflowspassed.scripts/lib/vitest-report-capture.mtsandtest/vitest/vitest.forks-pool.ts; those files and their config inputs are unchanged by this PR. The affected test files typecheck independently.ECONNRESET; the installed tooling used by the checks above executed successfully.Real SSH cache reuse remains to be verified after landing, through the default-main allocation workflow. The remote wrapper correctly refuses branch-specific allocation workflows under its spending policy. No Testbox was allocated for that rejected attempt. The runner-sizing experiment remains a separate, unqualified change.