Repository navigation
improve: add hybrid CI runner backend - #123479
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 2:30 AM ET / 06:30 UTC. ClawSweeper reviewWhat this changesThis PR adds a hybrid CI runner backend that sends light jobs to GitHub-hosted runners while routing heavyweight jobs through Blacksmith first and a hosted runner on rerun. Merge readinessKeep open for maintainer review: this member-authored, maintainer-labeled CI change is not eligible for automated cleanup, and the read-only review shell failed before source, history, scoped-policy, or exact-head workflow inspection could be completed. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s CI workflow assigns platform and test jobs to hosted or Blacksmith runner pools. The runner-backend setting feeds workflow job selection and the Node shard planner, which determine capacity, concurrency, and rerun recovery. flowchart LR
A[Repository runner setting] --> B[CI workflow]
C[Run attempt and event context] --> B
B --> D[Light job routing]
B --> E[Heavy job routing]
D --> F[GitHub-hosted runners]
E --> G[Blacksmith first attempt]
E --> H[Hosted rerun fallback]
I[Node shard planner] --> D
Decision needed
Why: This adds an operational policy mode for repository automation, and the protected maintainer status plus unavailable source inspection prevent a safe automated merge recommendation. Before merge
Findings
Agent review detailsSecurityNeeds attention: The supplied patch summary shows no obvious new dependency or permission surface, but the failed shell prevented the required exact-head workflow security pass. PR surfaceTests +106, Docs +10, Config +1, Other +3. Total +120 across 5 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase onto current main, complete the workflow and planner review against the merge result, and land only after exact-head CI confirms all backend modes and rerun fallback routes. Do we have a high-confidence way to reproduce the issue? Not applicable: this proposes a new CI scheduling mode rather than reporting a broken product behavior; local workflow execution could not be inspected because the review shell failed. Is this the best way to solve the issue? Unclear: the hybrid design is plausible from the supplied context, but current source, exact merge behavior, and sibling runner routes could not be examined in the failed read-only environment. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 16470278805c. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
ee40199 to
0f96470
Compare
* ci: add hybrid runner backend * test: admit hybrid backend in CI fixture
What Problem This Solves
Resolves a CI capacity problem where light jobs consume Blacksmith registrations while a Blacksmith outage or saturation can leave heavyweight platform and build jobs stuck without an automatic hosted escape path.
Why This Change Was Made
Adds
OPENCLAW_CI_RUNNER_BACKEND=hybrid: light lanes use GitHub-hosted runners and the existing hosted planner profiles, while heavy lanes use Blacksmith on attempt 1 and automatically fall back to their hosted label when rerun. Unset/blacksmithandgithubretain their existing all-Blacksmith-first and all-hosted behavior, including fork and manual-dispatch fallbacks.User Impact
Maintainers can reserve Blacksmith capacity for builds and native platform work without giving up a simple outage recovery path. If a heavy hybrid job is stuck or fails because Blacksmith is unavailable, rerunning it moves that job to GitHub-hosted capacity automatically.
The coordinator will set
OPENCLAW_CI_RUNNER_BACKENDtohybridafter this PR merges. This PR does not change the repository variable.Evidence
Lane classification
github.run_attempt > 1)build-artifacts,check-sqlite-session-lifecycleblacksmith-32vcpu-ubuntu-2404,blacksmith-8vcpu-ubuntu-2404ubuntu-24.04androidmatrix rowsblacksmith-8vcpu-ubuntu-2404ubuntu-24.04, with the hosted low-memory Gradle routemacos-node,macos-swift,ios-buildblacksmith-6vcpu-macos-15orblacksmith-12vcpu-macos-26macos-15ormacos-26The workflow guard evaluates all configurable jobs in unset/Blacksmith, GitHub, hybrid attempt-1, hybrid-rerun, and fork contexts. Planner tests prove that hybrid's compact Node plans are byte-for-byte equal to the GitHub profile. UI E2E, QA Smoke, Windows splitting, cache ownership, hosted lint stripes, Android route interpolation, and heavy fallback labels are covered explicitly.
Validation on rebased head:
The first post-rebase combined test run had one transient failure in the unrelated offline pnpm hard-link fixture after 71 seconds. Its exact isolated rerun passed, and the complete requested command then passed cleanly.