Skip to content

fix(ci): reuse prepared pnpm caches in Testbox commands - #196332

Merged
vincentkoc merged 4 commits into
mainfrom
fix/ci-testbox-pnpm-handoff-20261110
Nov 10, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
fix/ci-testbox-pnpm-handoff-20261110

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

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 both pnpm and corepack pnpm use 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:

  • 10 focused tests passed across testbox-base and testbox-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.
  • Focused typecheck of both test files, lint, formatting, whitespace, and check:workflows passed.
  • Local ClawSweeper found the final source correct. Its test-budget note is addressed with an exact 83-line allocation. The follow-up review confirms the final changes only add braces and that allocation.
  • Broad scripts/tooling typechecks report three existing Vitest interface errors in scripts/lib/vitest-report-capture.mts and test/vitest/vitest.forks-pool.ts; those files and their config inputs are unchanged by this PR. The affected test files typecheck independently.
  • Full local dependency installation stopped at the Matrix SDK native asset download with 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.

@vincentkoc vincentkoc self-assigned this Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review ended

ClawSweeper stopped reviewing this revision because the pull request closed.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S labels Nov 10, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 10, 2026 00:16
@vincentkoc
vincentkoc enabled auto-merge (squash) November 10, 2026 00:20
@vincentkoc
vincentkoc merged commit 0662b75 into main Nov 10, 2026
172 of 173 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-testbox-pnpm-handoff-20261110 branch November 10, 2026 00:27
@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
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.

@vincentkoc

Copy link
Copy Markdown
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): reuse prepared pnpm caches in Testbox commands

* fix(ci): resolve Corepack before publishing Testbox launcher

* test(ci): allocate Testbox cache handoff regressions

* style(test): use braced Testbox fixture loops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant