Skip to content

ci: widen hybrid Blacksmith routing for plateau lanes - #123552

Merged
steipete merged 1 commit into
mainfrom
steipete/hybrid-widen-blacksmith
Aug 14, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/hybrid-widen-blacksmith

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Hybrid CI still sent several 300-340 second critical-path lanes to standard 4-core GitHub-hosted runners on attempt 1. In main run 31779933715, core lint stripes, test types, the six-way QA Smoke matrix, the eight-way UI E2E matrix, the extension package-boundary check, and the remaining lint row formed the hosted plateau that kept full CI above the five-minute target.

Why This Change Was Made

This widens hybrid attempt-1 Blacksmith routing only for those measured plateau lanes while preserving GitHub-hosted routing for github mode, hybrid retries, manual dispatches, forks, and non-canonical repositories. It keeps the hybrid planner matrices and backend-neutral Actions cache profile unchanged.

The runner sizes restore the pre-outage assignments from the parent of #123263 (9550d6f9628472e83f6852dae8c1ac3f79573556):

Lane Hybrid attempt-1 runner Historical evidence
check-test-types blacksmith-16vcpu-ubuntu-2404 Existing pre-breaker matrix row
check-lint blacksmith-32vcpu-ubuntu-2404 Existing pre-breaker matrix row
check-lint-core-{1,2,3} blacksmith-8vcpu-ubuntu-2404 Core lint previously ran inside the 32-vCPU lint lane; 8 vCPU is the minimum for each new split stripe
checks-ui-e2e (8 rows) blacksmith-8vcpu-ubuntu-2404 Existing pre-breaker UI E2E assignment
QA Smoke CI (6 rows) blacksmith-16vcpu-ubuntu-2404 Existing pre-breaker QA Smoke assignment
check-additional-extension-package-boundary blacksmith-32vcpu-ubuntu-2404 Existing pre-breaker matrix row

User Impact

Maintainers should see the current hybrid critical path move off 4-core hosted runners on first attempts, bringing pull-request and main CI wall time closer to five minutes. Product behavior is unchanged, and rerunning a failed or stuck selected lane still moves it to GitHub-hosted capacity.

Registration budget impact is 20 concrete added Blacksmith jobs per full attempt-1 run, budgeted conservatively as approximately 21: 8 UI E2E + 6 QA Smoke + 3 core lint + 3 singleton checks. That is 0.21% of the live 10,000-registration five-minute bucket and 0.35% of the 6,000-registration operating target. Even four overlapping full admission waves add only 84 registrations, or 0.84% of the bucket and 1.4% of the operating target.

Evidence

  • node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts: 119 passed, 2 skipped, and 1 pre-existing dep-less-worktree environment failure. The failing resolves topology-aware protocol bases and drives the real guard fixture cannot resolve tsx; the coordinator verified the identical failure on a clean baseline. Exact-head CI with installed dependencies is the authoritative gate.
  • node scripts/run-vitest.mjs test/vitest-projects-config.test.ts: 21 passed.
  • node --import tsx scripts/check-workflows.mts: passed, including zizmor and the composite interpolation guard.
  • /Users/steipete/Projects/openclaw/node_modules/.bin/oxfmt --check .github/workflows/ci.yml docs/ci.md test/scripts/ci-workflow-guards.test.ts: passed.
  • git diff --check: passed.
  • Autoreview: clean, with no accepted or 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 07:53
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S maintainer Maintainer-authored PR labels Aug 14, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 14, 2026
@clawsweeper

clawsweeper Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 4:33 AM ET / 08:33 UTC.

ClawSweeper review

What this changes

The PR sends selected first-attempt hybrid CI plateau lanes to Blacksmith runners while preserving hosted routing for GitHub mode, retries, manual dispatches, forks, and remaining light lanes.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

This PR is still necessary: current main retains the earlier hybrid hosted-routing policy, while the proposed head selectively restores first-attempt Blacksmith capacity. No patch defect was found; merge should wait for exact-head CI and a live registration-budget check.

Priority: P2
Reviewed head: 01d39da08c4619c63884331caaf5c0bcebe4a675

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused and substantively guarded; exact-head CI and the live capacity check remain the merge gates.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-owned CI-routing PR is verified by workflow guard coverage and exact-head GitHub Actions execution rather than contributor-environment proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-owned CI-routing PR is verified by workflow guard coverage and exact-head GitHub Actions execution rather than contributor-environment proof.
Evidence reviewed 6 items PR-head runner routing: The UI E2E route sends hybrid attempt 1 to Blacksmith but retains hosted handling for GitHub mode, hybrid retries, manual dispatches, forks, and same-repository PR retries.
Matrix and cache contract: The check, core-lint, extension-boundary, and QA routes preserve the hybrid planner's Actions-cache profile while widening only the named first-attempt lanes.
Guard coverage: Workflow guards evaluate GitHub, hybrid, retry, fork, selected matrix-row, and cache-mode behavior; QA coverage separately preserves the hybrid six-part planner profile.
Findings None None.
Security None None.

How this fits together

OpenClaw's CI workflow selects a runner from the backend mode, event, retry attempt, repository origin, and matrix row. The selected runner executes validation lanes and reports their results back to pull requests and main.

flowchart LR
  A[PR or main event] --> B[CI preflight]
  B --> C[Backend and matrix policy]
  C --> D{Hybrid first attempt?}
  D --> E[Blacksmith plateau lanes]
  D --> F[GitHub-hosted fallback lanes]
  E --> G[CI checks]
  F --> G
  G --> H[GitHub results]
Loading

Before merge

  • Resolve merge risk (P1) - Existing repositories using OPENCLAW_CI_RUNNER_BACKEND=hybrid will move 20 first-attempt jobs from hosted capacity to Blacksmith; confirm current registration-bucket headroom and let the exact-head run finish before merge.
  • Complete next step (P2) - No mechanical repair is identified; complete exact-head CI and capacity verification before the protected maintainer PR is merged.
Agent review details

Security

None.

PR surface

Tests +103, Docs 0, Config +2. Total +105 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 110 7 +103
Docs 1 19 19 0
Config 1 20 18 +2
Generated 0 0 0 0
Other 0 0 0 0
Total 3 149 44 +105

Review metrics

Metric Value Why it matters
Production versus test LOC workflow +2 net, documentation 0 net, tests +103 net The small workflow expansion is paired with route and cache assertions for the widened decision surface.
Hybrid capacity change 20 added Blacksmith attempt-1 jobs per full run This is the material operational change that requires registration-budget headroom before merge.
Existing backend-mode behavior 1 existing mode changed: hybrid Repositories already selecting hybrid will receive Blacksmith for the named plateau lanes on attempt 1.

Stored data model

Persistent data-model change detected: persistent cache schema: .github/workflows/ci.yml. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Complete capacity verification before merge (recommended)
    Confirm the live runner-registration bucket has headroom for the documented 20 additional hybrid attempt-1 jobs and wait for exact-head CI to complete green.
  2. Accept the measured hybrid trade-off
    Maintainers may merge after explicitly accepting the new hybrid-mode first-attempt Blacksmith demand and its retry-to-hosted recovery behavior.

Technical review

Best possible solution:

Land the focused routing policy once exact-head CI is green and the live Blacksmith registration budget confirms headroom for the additional 20-job first wave.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a CI-routing improvement rather than a reported runtime defect; expression guards and the exact-head workflow run are the relevant verification paths.

Is this the best way to solve the issue?

Yes. The workflow is the owner of runner placement, and the diff updates its documented contract and focused routing guards without adding a parallel mechanism.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 2f85e5e33d85.

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: It changes the behavior of the existing hybrid runner-backend setting for current repository operators.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: The PR changes normal repository CI capacity routing with limited product blast radius.
  • merge-risk: 🚨 compatibility: It changes the behavior of the existing hybrid runner-backend setting for current repository operators.
  • merge-risk: 🚨 automation: Runner-expression changes can affect where required GitHub Actions checks execute and recover on retry.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-owned CI-routing PR is verified by workflow guard coverage and exact-head GitHub Actions execution rather than contributor-environment proof.

Evidence

What I checked:

  • PR-head runner routing: The UI E2E route sends hybrid attempt 1 to Blacksmith but retains hosted handling for GitHub mode, hybrid retries, manual dispatches, forks, and same-repository PR retries. (.github/workflows/ci.yml:1643, 01d39da08c46)
  • Matrix and cache contract: The check, core-lint, extension-boundary, and QA routes preserve the hybrid planner's Actions-cache profile while widening only the named first-attempt lanes. (.github/workflows/ci.yml:1911, 01d39da08c46)
  • Guard coverage: Workflow guards evaluate GitHub, hybrid, retry, fork, selected matrix-row, and cache-mode behavior; QA coverage separately preserves the hybrid six-part planner profile. (test/scripts/ci-workflow-guards.test.ts:3004, 01d39da08c46)
  • Current-main comparison: Current main has not changed any of the three touched decision-surface files since this PR's base and still routes hybrid UI E2E through the hosted branch, so the PR is not obsolete. (.github/workflows/ci.yml:1643, 2f85e5e33d85)
  • Hybrid-mode provenance: The current hybrid backend behavior dates to the merged hybrid-routing commit, following the Blacksmith-outage circuit-breaker commit; the proposed head is a focused follow-up to that same CI surface. (.github/workflows/ci.yml:1645, e51ee089b734)
  • Capacity documentation: The PR documents 20 added first-attempt Blacksmith registrations and preserves hosted routing for all remaining light lanes and hybrid reruns. Public docs: docs/ci.md. (docs/ci.md:255, 01d39da08c46)

Likely related people:

  • steipete: Current CI history credits Peter Steinberger with the outage circuit breaker, hybrid backend, hosted-cache refinement, and this follow-up routing change. (role: feature owner and recent area contributor; confidence: high; commits: fb82d87cada2, 1400049ae9cf, e51ee089b734; files: .github/workflows/ci.yml, docs/ci.md, test/scripts/ci-workflow-guards.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm the live registration bucket and wait for the in-progress exact-head checks to finish green.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-14T08:18:50.463Z sha c2f165f5ec7a924c32b0b1a7f51bcc447e3117db :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the steipete/hybrid-widen-blacksmith branch from c2f165f to 01d39da Compare August 14, 2026 08:28
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 14, 2026
@steipete
steipete merged commit 749340f into main Aug 14, 2026
156 checks passed
@steipete
steipete deleted the steipete/hybrid-widen-blacksmith branch August 14, 2026 08:37
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 15, 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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant