Repository navigation
fix: keep CI running during Blacksmith outages - #123263
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 13, 2026 16:48
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 14, 2026
* ci: add runner-backend circuit breaker with GitHub-hosted fallback * fix(ci): extend hosted timeouts to circuit-breaker runs
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 OpenClaw CI would remain queued and stop validating changes when Blacksmith runners were unavailable, even though every configurable job already had a working GitHub-hosted fallback label.
Why This Change Was Made
Adds a repository Actions variable,
OPENCLAW_CI_RUNNER_BACKEND, as a manual circuit breaker. Unset orblacksmithpreserves the current Blacksmith-first behavior;githubprepends the existing hosted label to all 24 configurableruns-onexpressions and routes Blacksmith-only optimizations through their established hosted paths. The planner remains unchanged: matrix rows may still emit Blacksmith labels, but the job-level expression overrides them.The workflow change is operational production +78/-76 (net +2); tests are +168/-7. Documentation and the CI-limits runbook add +49/-1.
User Impact
Maintainers can keep CI moving during a Blacksmith outage by setting one repository variable, accepting slower standard hosted runners and GitHub-hosted concurrency limits, then delete the variable to return to normal operation. This PR does not set the variable and does not add scheduled health detection or automatic flipping.
Evidence
Expression evaluation
Derived directly from the checked-in expressions with a canonical first-attempt pull request and the representative matrix runner shown below:
The existing
workflow_dispatchroute forces hosted labels, and fork pull requests exercise the same hosted labels continuously. No repository variable was changed for this proof.Blacksmith and hosted-path gate audit
Publish exact dependency cache(.github/workflows/ci.yml:877) is disabled for the GitHub backend;pnpm-store-warmup(.github/workflows/ci.yml:1094) becomes the hosted cache path.Setup Node environmentconsumers select the exact dependency cache only on Blacksmith and the ordinary Actions pnpm-store cache on the GitHub backend:build-artifacts(.github/workflows/ci.yml:1185),sqlite-session-lifecycle(:1456),native-i18n(:1492),checks-ui(:1533),checks-ui-e2e(:1600),checks-ui-e2e-real-gateway(:1638),control-ui-i18n(:1676),checks-fast-core(:1765),qa-smoke-ci-profile(:1870),checks-fast-plugin-contracts-shard(:2050),checks-fast-channel-contracts-shard(:2092),checks-node-core-test-nondist-shard(:2167),check-shard(:2304),check-additional-shard(:2608), andcheck-docs(:2897).Set up Blacksmith Docker layer cache(.github/workflows/ci.yml:1879) and the Blacksmith-specific QA zero-stagger setting inRun smoke profile part(:1908) are disabled for the GitHub backend.Mount extension boundary sticky disk(.github/workflows/ci.yml:2317,:2622),Restore extension boundary artifacts from sticky disk(:2330,:2642), andSeed extension boundary sticky disk(:2864). The existing Actions cache and cold-build path remain active.Mount Gradle sticky disk(.github/workflows/ci.yml:3679) andPoint Gradle at the sticky disk(:3701).Run Android ${{ matrix.task }}(:3732) uses the existing dispatch-style split Gradle build for the GitHub backend.Check CLI startup memory(.github/workflows/ci.yml:1287) usesrunner.environment == 'github-hosted', whileRun built artifact checks(:1311) serializes Gateway watch whenrunner.environmentis hosted. The lint shard continues to size itself fromnproc..github/actions/setup-node-env/action.ymlcontains no Blacksmith action dependency; its portable compile/Vitest/dependency caches use the upstream Actions cache API and remain valid on hosted labels.Hosted timeout audit
build-artifacts(.github/workflows/ci.yml:1170) now receives the existing 35-minute hosted budget whenOPENCLAW_CI_RUNNER_BACKEND=github; Blacksmith remains at 20 minutes.macos-swift(.github/workflows/ci.yml:3205) now receives the existing 30-minute hosted budget whenOPENCLAW_CI_RUNNER_BACKEND=github; Blacksmith remains at 20 minutes.test/scripts/ci-workflow-guards.test.ts:2915enumerates every event-dependenttimeout-minutesexpression, pins these as the complete adjusted set, and evaluates both GitHub and Blacksmith backend values. All other CI jobs use a backend-independent fixed or matrix-owned timeout.Commands
node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts— 117 passed, 2 skipped.node --import tsx scripts/check-workflows.mts— passed, including zizmor and composite interpolation checks.node scripts/check-changed.mjs— the trusted Testbox route timed out after 15 minutes while still queued, before executing the plan. The identical changed-lane plan passed locally with delegation disabled viaCI=1 node scripts/check-changed.mjs(test root typecheck, docs/tooling formatting, dependency guards, and script lint all green).git diff --check— clean.oxfmt --check .github/workflows/ci.yml docs/ci.md test/scripts/ci-workflow-guards.test.ts .agents/skills/openclaw-ci-limits/SKILL.md— clean.origin/mainafter the timeout fix — clean; no accepted or actionable findings.Follow-up workflow candidates