Skip to content

fix(ci): restore caches on GitHub-hosted runners - #123440

Merged
steipete merged 1 commit into
mainfrom
steipete/hosted-warm-caches
Aug 14, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/hosted-warm-caches

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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-22 adds 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-2028 elects one semantic writer, .github/workflows/ci.yml:755-769 emits it, and .github/workflows/ci.yml:2213-2227 now consumes it only when OPENCLAW_CI_RUNNER_BACKEND=github.
  • .github/workflows/ci.yml:2361-2372 gives 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-1595 caches ~/.cache/ms-playwright by runner OS and the exact 1.62.1 pin from package.json:2084 and ui/package.json:52, reused by the UI E2E jobs.
  • .github/workflows/ci.yml:3276-3280 enables the existing pnpm-store save path for macos-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, and test/scripts/ci-workflow-guards.test.ts:5904-6163 guard 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.ts
  • node scripts/docs-list.js
  • git diff --check
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted (clean; no accepted/actionable findings)

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 14, 2026 02:59
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S maintainer Maintainer-authored PR labels Aug 14, 2026
@steipete
steipete merged commit c06f993 into main Aug 14, 2026
199 checks passed
@steipete
steipete deleted the steipete/hosted-warm-caches branch August 14, 2026 03:16
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 14, 2026
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 maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant