Repository navigation
fix(ci): restore caches on GitHub-hosted runners - #123440
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 14, 2026 02:59
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 14, 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
Fixes an issue where GitHub-hosted CI fell back to cold caches when the Blacksmith backend breaker was active. The Vitest warmer could not run on hosted capacity, its elected in-run writer was ignored, hosted lint rebuilt extension boundary artifacts, UI jobs repeatedly downloaded Chromium, and the macOS pnpm cache had no writer.
Why This Change Was Made
Restores one canonical cache path per workload: the warmer follows the backend breaker and supports manual dispatch, one hosted Node shard writes the Vitest transform cache, hosted lint shares the existing boundary cache family, Playwright caches its exact pinned Linux browser revision, and macOS saves the pnpm store it already restores. Blacksmith retains restore-only Vitest shards and its sticky boundary fast path.
AI-assisted: yes. The final patch passed the repository's Codex autoreview with no accepted/actionable findings.
User Impact
Maintainers can recover hosted-mode cache warmth manually, and GitHub-hosted CI avoids repeated cold transform, boundary-build, Chromium-download, and macOS dependency-store work. Normal Blacksmith routing is unchanged apart from the shared Playwright and macOS pnpm caches.
Evidence
Audit citations:
.github/workflows/vitest-cache-warm.yml:3-22adds manual dispatch and the standard hosted-backend runner breaker; lines 28-38 remain the sole broad Vitest/test compile-cache warmer.scripts/lib/ci-node-test-plan.mts:2012-2028elects one semantic writer,.github/workflows/ci.yml:755-769emits it, and.github/workflows/ci.yml:2213-2227now consumes it only whenOPENCLAW_CI_RUNNER_BACKEND=github..github/workflows/ci.yml:2361-2372gives hosted lint the same extension-boundary Actions cache key and payload as.github/workflows/ci.yml:2776-2788; the Blacksmith sticky path remains gated at lines 2374-2417..github/workflows/ci.yml:1589-1595caches~/.cache/ms-playwrightby runner OS and the exact1.62.1pin frompackage.json:2084andui/package.json:52, reused by the UI E2E jobs..github/workflows/ci.yml:3276-3280enables the existing pnpm-store save path formacos-node.test/scripts/ci-workflow-guards.test.ts:3733-3903,test/scripts/ci-workflow-guards.test.ts:3970-4049,test/scripts/ci-workflow-guards.test.ts:4775-4839, andtest/scripts/ci-workflow-guards.test.ts:5904-6163guard the new policy.Validation:
node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts test/scripts/ci-node-test-plan.test.ts test/vitest-projects-config.test.ts(165 passed, 2 skipped across routed configs)node --import tsx scripts/check-workflows.mts(zizmor passed; no composite run-block interpolation)./node_modules/.bin/oxfmt --check .github/workflows/ci.yml .github/workflows/vitest-cache-warm.yml docs/ci.md test/scripts/ci-workflow-guards.test.tsnode scripts/docs-list.jsgit diff --check.agents/skills/autoreview/scripts/autoreview --mode uncommitted(clean; no accepted/actionable findings)