Repository navigation
ci: offload short hybrid lanes to hosted runners within a 45-row budget - #149685
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. Reviewed September 16, 2026, 5:16 AM ET / 09:16 UTC (Revision 6). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherOpenClaw’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
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +214, Docs +32, Config +71. Total +317 across 9 files. View PR surface stats
Review metrics
Technical reviewBest 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:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9062067e5206. LabelsLabel justifications:
EvidenceAcceptance criteria:
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 (5 earlier review cycles)
|
5bf3d9e to
25c0a11
Compare
25c0a11 to
33bc31a
Compare
|
Merged via squash.
|
…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
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 = 40admits optional offloads only when the base has at most 40 hosted rows;HYBRID_HOSTED_ROW_LIMIT = 45also 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 keepshybrid_hosted_offload=false; it does not fail preflight.security-fastchecks-uirowschecks-ui-e2erowThe 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_performanceoutput; 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, andnode scripts/check-changed.mjspassed. Workflow validation passed using the pinneduvx --from pre-commit==4.6.2 pre-commitrunner 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 mergeae7b57f0039304264caf6488f286d9774692f3e7, 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 existingcheck-docsgate, 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-stateplusauto-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.