Repository navigation
improve(ci): cut hybrid compact runner overhead - #124622
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Land-ready at Local proof: Exact-head pull-request CI is green: run 31951744717, bound to the full SHA above. The first head's run 31951472771 found a fixture-only test-type error; the default backend case now passes The native landing artifacts validate with recommendation Measured before/after planner evidence:
Latest ClawSweeper state is the exact-head in-progress placeholder, with no published Known gap: the fresh canonical post-merge |
|
Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 10:11 AM ET / 14:11 UTC. ClawSweeper reviewWhat this changesUpdates the compact Node-test CI planner so hybrid runs pack attempt-one Blacksmith jobs from Blacksmith-calibrated estimates while retaining hosted split topology for retries. Merge readinessKeep open for maintainer handling. Current main still gives hybrid the GitHub-hosted planner profile, while this fresh maintainer-labeled PR separates retry-safe hosted splitting from Blacksmith attempt-one packing; direct inspection of the PR head was blocked by an unavailable promisor object and network DNS failure. Priority: P3 Review scores
Verification
How this fits togetherCI preflight passes the selected runner backend into the compact Node-test planner, which emits the matrix consumed by Node test jobs. Hybrid jobs run on Blacksmith for attempt one and on GitHub-hosted capacity after a retry. flowchart LR
A[CI event and runner backend] --> B[Preflight planner]
B --> C[Hosted split topology]
C --> D[Hybrid packing estimates]
D --> E[Node test matrix]
E --> F[Blacksmith attempt one]
E --> G[GitHub-hosted retry]
Decision needed
Why: The intended profile separation follows the documented retry boundary, but sampled timing estimates are an operational tradeoff and the full local PR head was unavailable for independent verification. Before merge
Agent review detailsSecurityNone. PR surfaceTests +42, Docs +4, Other +32. Total +78 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one planner with hosted-derived splitting for retry safety and Blacksmith-specific hybrid packing, then confirm the exact head and the first hybrid run preserve bounded wall time. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible on current main: hybrid is explicitly routed through the GitHub timing profile and the adjacent test asserts equality with the hosted plan. This read-only review did not execute the planner. Is this the best way to solve the issue? Unclear. Separating hosted retry topology from Blacksmith attempt-one packing matches the documented runner contract, but the complete PR-head implementation could not be read from the promisor checkout. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 99bda3d8cda4. LabelsLabel changes:
Label justifications:
EvidenceWhat 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
|
|
Merged via squash.
|
|
Post-merge verification is complete on canonical
This supplies the initial hybrid-run observation requested in ClawSweeper's optional rank-up moves. The live runner-registration bucket was not available on this host ( |
* perf(ci): refit compact planner hints for Blacksmith * test(ci): type default runner backend fixture
What Problem This Solves
Resolves an operational CI efficiency problem where the hybrid compact Node planner used the GitHub-hosted timing profile even though attempt-1 jobs run on Blacksmith. That mismatch expanded normal push plans to 69 compact jobs and spent avoidable runner setup time without shortening the critical path.
Why This Change Was Made
Hybrid keeps the hosted-derived splitting topology and unchanged 150-second split ceiling so retries remain safe on GitHub-hosted runners, but now packs and rebalances native groups using Blacksmith timing ownership. The Blacksmith estimate uses a measured 0.87 scale, direct doctor and cron outlier hints, and a 140-second singleton floor for the historical gateway tail. Synthesized hosted stripes retain their divided parent weight; the GitHub-hosted profile remains unchanged.
This is an AI-assisted, bounded maintainer-requested CI performance repair.
User Impact
There is no product behavior change. Hybrid pushes shrink from 69 observed compact jobs to 46 nondist jobs (47 descriptors when the dist boundary is counted), saving an expected roughly 20 runner-minutes per run while keeping the predicted hybrid maximum at 140 seconds. Pull-request fallback plans shrink to 53 nondist jobs (55 descriptors); GitHub-hosted plans remain 70 push / 79 fallback descriptors.
Evidence
blacksmith-4vcpu-ubuntu-2404and 33 onblacksmith-8vcpu-ubuntu-2404. Their compact shard work totaled 3,742.046s and 3,756.674s versus a 4,723s unscaled Blacksmith hint sum (79.230% and 79.540%).Run Node test shard, motivating the preserved 140-second singleton floor.node scripts/run-vitest.mjs test/scripts/ci-node-test-plan.test.ts test/scripts/ci-workflow-guards.test.ts— 143 passed, 2 skipped.oxfmtcheck andgit diff --checkare clean.