Skip to content

ci: offload short hybrid lanes to hosted runners within a 45-row budget - #149685

Merged
steipete merged 4 commits into
mainfrom
ci-burden/hosted-offload
Sep 16, 2026
Merged

steipete merged 4 commits into
mainfrom
ci-burden/hosted-offload

Conversation

@steipete

@steipete steipete commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Related: #149655

What Problem This Solves

Short hybrid CI jobs consume Blacksmith capacity even though their existing hosted paths are fast enough, while unbounded hosted expansion can overload GitHub runner assignment.

User Impact

This changes CI placement without changing product behavior or test coverage. Eligible automatic hybrid first attempts can move up to five jobs to GitHub-hosted Ubuntu; heavy builds and integration jobs keep their existing Blacksmith routes.

Security now waits for preflight to count the selected hosted workload. It still runs after a preflight failure unless the workflow is canceled, but security feedback starts later than before.

Why This Change Was Made

Preflight counts the complete selected hosted inventory, including control jobs, every selected matrix row, and hosted native jobs. HYBRID_HOSTED_BASE_ROW_LIMIT = 40 admits optional offloads only when the base has at most 40 hosted rows; HYBRID_HOSTED_ROW_LIMIT = 45 also checks the resulting total. Above 40 base rows, the optional jobs retain their original Blacksmith routes. An eligible base above 45 emits a warning with the counts, preserves the full base manifest, and keeps hybrid_hosted_offload=false; it does not fail preflight.

Lane Eligible hybrid first attempt Coverage trade-off
security-fast Hosted when admitted; otherwise 4-class Blacksmith Same scanners; waits for preflight
Three checks-ui rows Hosted when admitted; otherwise 8-class Blacksmith Same three rows and worker limits
Browser-extension checks-ui-e2e row Hosted when admitted; otherwise 8-class Blacksmith Same browser-extension inventory
Control UI E2E shards, QA Smoke, real-Gateway, Android, compiler-heavy jobs Existing Blacksmith routes None
Full Release Validation and frozen/manual targets Existing routes None

The 45-row admission budget applies to optional offloads on eligible automatic hybrid first attempts. An already oversized base is a budgeting signal: it warns and retains coverage without adding optional hosted rows. Noneligible paths—including fully hosted outage/fork runs, retries, and manual/frozen validation—remain unchanged even when they exceed 45 rows; this PR does not consolidate those fallback manifests. Backend settings, matrix caps, timeouts, and existing compute budgets are unchanged. Hosted queueing or ordinary cache setup can offset the compute saving.

This PR follows #149655, which landed the owner-path gates on main. The hosted inventory consumes the canonical run_control_ui_performance output; the temporary landing-order fallback has been removed.

Evidence

Rebased once onto main including #149655, without conflicts. The four-commit head is 33bc31a1c461d98f274d79ef10be3e3d07b7998a; the final commit removes the temporary performance counter fallback.

The requested workflow-guard and Node planner tests passed: 706 passed, 12 skipped. Touched-file formatting, git diff --check, and node scripts/check-changed.mjs passed. Workflow validation passed using the pinned uvx --from pre-commit==4.6.2 pre-commit runner for the configured actionlint and zizmor hooks on all workflow files, followed by the Git-owner, composite-input, and conflict-marker guards. The standard workflow wrapper's temporary-venv pip install failed twice, including the one retry after 60 seconds.

The single fresh branch autoreview completed scoped-clean at P1, with no accepted findings.

Exact-head CI run 35077713411 completed successfully. All 145 exact-head checks are terminal: 122 success, 22 skipped, one neutral, including a successful openclaw/ci-gate. No CI reruns were requested. This exact head's preflight recorded 21 base / 26 total hosted rows, with optional offload admitted. After merge ae7b57f0039304264caf6488f286d9774692f3e7, the first main push CI run 35082032819 passed preflight and recorded 20 base / 25 total hosted rows, with optional offload admitted. The one-row difference is the existing check-docs gate, which is omitted on push events. Both inventories retain all five optional hosted offloads. The rest of that main CI cycle was still running when this preflight verification completed. The 46-base-row fixture verifies a successful preflight with a warning, full base coverage, and optional lanes retained on Blacksmith.

Release validation retains Docker seed survivor with legacy-operator-state plus auto-auth, QA Smoke, and Control UI performance. No live Full Release Validation campaign was dispatched for this change. Hosted queue/setup time and the delayed security start remain rollout measurements; job placement alone is not a demonstrated wall-time saving.

@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: M maintainer Maintainer-authored PR labels Sep 16, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed September 16, 2026, 5:16 AM ET / 09:16 UTC (Revision 6).

ClawSweeper review

What this changes

The PR counts selected hosted CI jobs before moving security checks, three Control UI test jobs, and browser-extension tests from Blacksmith to GitHub-hosted runners within a 45-row admission budget.

Merge readiness

⛔ Needs changes before merge - 2 items remain

The bounded offload remains useful and is absent from current main. All five intended jobs passed on hosted runners at the reviewed head; only a small documentation correction remains.

Priority: P2
Reviewed head: 33bc31a1c461d98f274d79ef10be3e3d07b7998a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behaviorally demonstrated CI improvement with one minor documentation inconsistency.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): Real GitHub Actions runs exercise the workflow’s preflight-to-runner boundary: the earlier run confirms the reported 26 hosted rows, and all five intended offloads passed on hosted Ubuntu at the reviewed head after the companion merged. Remaining whole-run checks are separate from this placement proof.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): Real GitHub Actions runs exercise the workflow’s preflight-to-runner boundary: the earlier run confirms the reported 26 hosted rows, and all five intended offloads passed on hosted Ubuntu at the reviewed head after the companion merged. Remaining whole-run checks are separate from this placement proof.
Evidence reviewed 8 items Bounded placement preserves coverage: The manifest admits optional placement only for eligible automatic hybrid first attempts, checks both the 40-row base threshold and 45-row total, and warns without removing coverage when the base already exceeds the budget. Existing runner expressions retain fallback placement.
Independent expansion guards: The added tests expand workflow conditions, matrices, and runner expressions independently of the production inventory. They cover 40, 41, 45, and 46 base rows, canonical and trusted-fork events, ineligible routes, and security execution after preflight failure. Tests were inspected, not executed during this read-only review.
Current main and release still lack optional admission: GitHub contents checks at the fetched main SHA and v2026.9.4 show the existing hybrid placements without hybrid_hosted admission outputs or thresholds. The merged companion changes coverage selection rather than implementing this offload.
Findings 1 actionable finding [P3] Remove the obsolete performance fallback instructions
Security None None.

How this fits together

OpenClaw’s CI preflight selects validation jobs and their runner placement from the event, contributor classification, and changed files. The resulting jobs run on GitHub-hosted or Blacksmith runners, and an aggregate gate checks their results.

flowchart TD
  A[Event and changed files] --> B[Preflight selects coverage]
  B --> C[Count hosted base rows]
  C --> D{Optional jobs fit budget?}
  D -->|Yes| E[Short jobs on GitHub runners]
  D -->|No| F[Existing Blacksmith placement]
  E --> G[Required CI result gate]
  F --> G
Loading

Before merge

  • Remove the obsolete performance fallback instructions (P3) - The latest commit removes the run_build_artifacts || run_ui_tests fallback after the companion merged, but this paragraph still documents that fallback and tells readers to remove it later. Update it to describe direct use of run_control_ui_performance; otherwise the published capacity guide gives operators an incorrect accounting contract and obsolete landing instructions.
  • Complete next step (P2) - Correct the obsolete fallback paragraph and refresh the PR body’s companion status, head reference, and evidence.

Findings

  • [P3] Remove the obsolete performance fallback instructions — docs/ci/capacity.md:285
Agent review details

Security

None.

PR surface

Tests +214, Docs +32, Config +71. Total +317 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 217 3 +214
Docs 7 40 8 +32
Config 1 80 9 +71
Generated 0 0 0 0
Other 0 0 0 0
Total 9 337 20 +317

Review metrics

Metric Value Why it matters
Hosted admission 40 base rows; 45 total rows; at most 5 offloads The limit governs optional placement without rejecting already-selected coverage.
Observed offload execution 5 of 5 intended offloads passed on the reviewed head The real CI run exercises the changed runner placement after the companion merged.

Technical review

Best possible solution:

Keep the workflow-owned admission calculation, coverage-preserving fallback, and independent row-expansion guards, with documentation describing the final landed dependency.

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

Not applicable to the CI-placement improvement; real Actions runs demonstrate the changed routing. The remaining documentation mismatch is directly verifiable against the latest commit.

Is this the best way to solve the issue?

Yes. Extending the existing preflight owner keeps coverage selection separate from placement and preserves existing routes when the optional budget is unavailable.

Full review comments:

  • [P3] Remove the obsolete performance fallback instructions — docs/ci/capacity.md:285
    The latest commit removes the run_build_artifacts || run_ui_tests fallback after the companion merged, but this paragraph still documents that fallback and tells readers to remove it later. Update it to describe direct use of run_control_ui_performance; otherwise the published capacity guide gives operators an incorrect accounting contract and obsolete landing instructions.
    Confidence: 0.99

Overall correctness: patch is correct
Overall confidence: 0.93

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9062067e5206.

Labels

Label justifications:

  • P2: This is a bounded CI-capacity improvement with useful production execution evidence and no identified runtime defect.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): Real GitHub Actions runs exercise the workflow’s preflight-to-runner boundary: the earlier run confirms the reported 26 hosted rows, and all five intended offloads passed on hosted Ubuntu at the reviewed head after the companion merged. Remaining whole-run checks are separate from this placement proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. Real GitHub Actions runs exercise the workflow’s preflight-to-runner boundary: the earlier run confirms the reported 26 hosted rows, and all five intended offloads passed on hosted Ubuntu at the reviewed head after the companion merged. Remaining whole-run checks are separate from this placement proof.

Evidence

Acceptance criteria:

  • [P1] node scripts/docs-list.js.
  • [P1] git diff --check.
  • [P1] Verify the revised paragraph matches the direct performance-field count in .github/workflows/ci.yml.

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Update the capacity paragraph and PR body to reflect the merged companion, removed fallback, and current-head evidence.

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 (5 earlier review cycles)
  • reviewed 2026-09-16T05:01:29.541Z sha a81702a8f71d7ad7280906c8299e684a7af48ef1 :: blocked before merge. :: none
  • reviewed 2026-09-16T05:38:38.928Z sha 25a1e135444fee9ec673f1c60d06349090f81d66 :: blocked before merge. :: none
  • reviewed 2026-09-16T06:01:20.189Z sha 25a1e135444fee9ec673f1c60d06349090f81d66 :: blocked before merge. :: none
  • reviewed 2026-09-16T07:04:31.745Z sha 5bf3d9e951f2b14e63061b14f6704220f74bba42 :: blocked before merge. :: none
  • reviewed 2026-09-16T08:11:21.464Z sha 25c0a11 :: blocked before merge. :: none

@steipete
steipete force-pushed the ci-burden/hosted-offload branch 2 times, most recently from 5bf3d9e to 25c0a11 Compare September 16, 2026 08:04
@steipete
steipete force-pushed the ci-burden/hosted-offload branch from 25c0a11 to 33bc31a Compare September 16, 2026 09:08
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Sep 16, 2026
@steipete
steipete merged commit ae7b57f into main Sep 16, 2026
151 checks passed
@steipete
steipete deleted the ci-burden/hosted-offload branch September 16, 2026 09:54
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
…et (openclaw#149685)

* ci: offload short hybrid lanes to hosted runners within a 45-row budget

* test(ci): separate Node and hosted budget fixtures

* ci: retain base coverage above hosted offload budget

* ci: drop the control-ui-performance landing-order fallback
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 P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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