Repository navigation
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: blocked before merge. Reviewed September 20, 2026, 3:14 PM ET / 19:14 UTC (Revision 3). ClawSweeper reviewWhat this changesMoves five CI checks from Blacksmith to GitHub-hosted runners when workload headroom, recent assignment health, and the existing capacity budget permit. Merge readiness⛔ Blocked before merge - 1 item remains The PR remains useful and is not implemented on current main. No actionable patch defect remains: the earlier helper-loading finding is fixed, and completed native measurements satisfy the previous review’s timing request. Priority: P2 Review scores
Verification
How this fits togetherCI preflight selects checks and assigns their runners before validation starts. This change uses recent GitHub Actions assignment evidence to choose hosted capacity or retain Blacksmith placement. flowchart TD
A[Selected CI workload] --> C[Preflight admission]
B[Recent main job assignments] --> D[Bounded health check]
D --> C
E[Existing hosted capacity budget] --> C
C -->|Eligible and healthy| F[Five checks on hosted runners]
C -->|Otherwise| G[Existing Blacksmith routes]
F --> H[CI results]
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceTests +315, Docs +70, Config +41, Other +153. Total +579 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the bounded, measured cohort and existing fallback, using native assignment and completion measurements to guide any later expansion. Do we have a high-confidence way to reproduce the issue? Not applicable as a product bug reproduction; native Actions records demonstrate both hosted placement and final-head Blacksmith fallback. No target code or tests were executed during this read-only review. Is this the best way to solve the issue? Yes. Extending the existing preflight admission owner preserves coverage, capacity limits, retry behavior, and operator controls without adding another scheduler. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c9b2f93dd65b. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Closing as superseded by #154471 (2d3dd99), which is on current main. I checked the complete PR diff against current main: preflight invokes the hosted-assignment health owner, and dependencies, both core test-type rows, extension package boundaries, and runtime topology all consume its budgeted admission decision. The 180-second assignment threshold, 30-minute evidence freshness, shared 10-second request deadline, and three-attempt sample bound remain. Main also adds a 24-hour server-side history bound and requires measured serial Node headroom for eligible PRs. The intended guarded offload is implemented, including the workflow wiring and its owner tests/docs. There is no remaining implementation change to land from this PR; its trial measurements remain here as historical evidence. |
What Problem This Solves
Hybrid CI spends Blacksmith capacity on independent checks with enough measured slack to tolerate standard hosted runners.
User Impact
Reduces CI runner cost without changing test coverage, worker limits, timeouts, critical-path runner labels, or the configured backend. This is a routing trial; no user-visible runtime change. A prospective health snapshot cannot rescue jobs already queued or guarantee against a later hosted assignment wave.
Why This Change Was Made
Move five 16-class checks to
ubuntu-24.04only on canonical main pushes and trusted automatic hybrid PRs selecting the two fixed Windows lanes: dependencies, core test-types 1 and 2, extension package boundaries, and runtime topology architecture. Every sample satisfies1.4 × duration + 180 seconds <= slack. The existing UI/security offload decision keeps priority; these five consume only remaining capacity within the unchanged 45-row hosted limit.Keep compact Node jobs, extension test envelopes, UI E2E, preflight, builds, lint, central test types, QA, Android, and Windows on their current routes. The lighter 8-class compact bins remain excluded even when they have slack. Docs, i18n, security reevaluation, and admitted security-fast already use hosted runners, so there is no additional saving to claim there.
Preflight samples recent canonical main CI attempts using read-only Actions access. Assignment wait excludes the preflight dependency. Any observed wait of at least 180 seconds, missing fresh assigned evidence, malformed data, or an API error retains the new five rows on Blacksmith for this run and records a warning/summary. At most four requests share a ten-second deadline. There is no service, new repository variable, variable mutation, retry policy, or new job. Existing retry/fallback routing stays intact. Documentation covers the existing operator backend switch for sustained incidents and the inability to migrate already queued jobs.
Evidence
Baseline: six successful main runs on September 20,
35518231054,35518255065,35518791853,35518915535,35520028134,35520044205; all pages reconciled tototal_count. Exclude skipped pseudojobs: including them produced the original 37/14/6/5/25.5 class summary and distorted runtime medians (some skipped durations are negative).The modeled job-envelope wall remains 16m18s median, 15m32s–16m54s range in all six samples. Definition: first job creation through aggregate-gate completion; the captures contain jobs, not workflow lifecycle timestamps. This prediction excludes the new health-read overhead. The PR run must measure that overhead, hosted cache/setup cost, actual waits, and overall completion. A broad PR selects more test jobs than these main runs, so its wall is observational rather than a controlled same-workload comparison. Executed hosted jobs in the baseline waited 5.5 seconds median / 99 seconds maximum from job creation to start (the earlier 2-second median included skipped entries).
Blacksmith Linux minutes: median 371.37 → 353.22. List-rate estimate: $19.609 → $19.045/main run; median paired saving 17.64 minutes/$0.565. Medians do not subtract linearly. Rates per minute: 4/8/16/32-class = $0.008/$0.016/$0.032/$0.064 (now verified against the provider pricing page); This paragraph reports Linux only; all-platform figures below include Windows. Billing rounding is excluded. Rounded-per-job saving would be approximately $0.672, not verified invoicing. Public-repository hosted Linux minutes are free. An eligible Windows-selected PR has the same modeled saving; other PRs retain these checks on Blacksmith because precise Node plans do not establish enough critical-path slack. There is no separate measured PR baseline in this sample and scoped PR savings depend on selected rows.
Local proof: 41 focused routing/health guard cases passed; 332 planner cases passed (330 initially, with both new-file inventory cases passing after staging);
node scripts/check-changed.mjs, workflow lint/security checks, type-aware oxlint, formatting, docs listing/MDX checks, andgit diff --checkpassed. The lint canary correctly rejected an unknown-valued template expression. Codex local review found no actionable P0–P2 findings. Candidate head:33becc81fde48807835ebd59f62f94a79f200c81.The initial PR CI run
35526323851failed before fanout because the sparse.ci-harnessexport did not contain the new helper. The correction reads the current checkout on automatic current-revision jobs; an executable workflow-step regression reproducedERR_MODULE_NOT_FOUNDbefore the fix and passes afterward. The correction passed changed checks and fresh P0–P2 review. Workflow validation reused the installed hook at its exact configured revision when a repeated Python virtualenv bootstrap stalled.The full local workflow guard invocation was interrupted after an existing cache fixture stalled for over five minutes in native pnpm initialization on macOS. Its failing bootstrap was sampled, and the later routing-specific run passed. The PR CI run supplies the complete Linux guard proof. Exact-head branch review and native CI measurements will be appended before handoff. Not for landing as part of this task.
Native offload trial
Run 35527301597, head
6c875c5fece748aabc5953de60629f67e3d4d625, admitted all five rows toubuntu-24.04. Preflight sampled seven fresh hosted jobs, maximum assignment wait 3 seconds; its health step took 5 seconds. The manifest recorded 19 base / 29 total hosted rows, below the unchanged 45-row cap.All five passed. Hosted durations exceeded the CPU-only prediction, but none became critical. This evidence prompted the final cohort guard: short or unknown PR plans retain Blacksmith placement and do not run the health probe. Main and the fixed Windows workload are the measured headroom cohorts; fast Node-only scopes also skip the probe.
The run executed 66 jobs: 1 Linux 32-class, 21 16-class, 1 8-class, 12 4-class, 2 Windows 8-class, and 29 hosted Ubuntu. Under the prior routing, this same selection would have 26 16-class and 24 hosted rows; the other counts stay unchanged. Hosted waits were 3s median / 5s maximum, versus 5.5s / 99s in the executed-job baseline. The job-envelope wall was 16m01s, compared with 16m18s median in the six-main cohort; Windows part 2 was the tail. This is an observational comparison across different workloads, not a paired speedup claim. The 5-second guard cost is visible and no zero-overhead guarantee is claimed.
Using current list rates, including Windows 8-class at $0.032/min, the six-run main model is 371.37 → 353.30 Blacksmith minutes and $19.68 → $19.10 (medians, including a 5-second probe allowance). Median paired saving is about 17.56 minutes/$0.56. The trial measured 175.68 minutes/$5.41 across Linux and Windows. Applying the main sample's old-route check durations to this PR selection estimates 193.24 minutes/$5.97 before; this counterfactual is not a measured matched PR baseline. Hosted Linux minutes are free for this public repository; invoice rounding/discounts are not modeled.
The only job failure was
control-ui-performance, with startup JS 364,920 B > 364,806 B, plus the aggregate gate reflecting that failure. R1 modifies no UI runtime source or performance baseline and retains that job's existing hosted route. No baseline was raised. The final cohort refinement passed 41 focused guard cases, including before/after regressions for non-main pushes and PRs without Windows. Workflow, docs, formatting, and type-aware lint checks passed; its P0–P2 review is scoped-clean. Final exact-head whole-branch review is scoped-clean through P2. CI results are recorded below.Final-head guard and CI status
Head
33becc81fde48807835ebd59f62f94a79f200c81, run 35529486045: preflight reportedno-fresh-hosted-evidence(zero usable samples), retained the five checks on Blacksmith, and emitted 19 base / 24 total hosted rows. This is live proof of conservative fallback; the preceding native trial above supplies the admitted-row timing evidence. Unit fixtures cover the explicit three-minute assignment-stall boundary.The run has an unrelated type-check blocker at
src/infra/update-triage-resolution.ts:92: TS2345, because anenv?: ProcessEnvformatter is passed directly as anArray.mapcallback, whose second argument is a number. The same diagnostic appears in retained hosted production types and Blacksmith core test types. This branch changes nosrc/files. R1 does not alter that code or weaken its checks.The completed final-head run executed 66 jobs. Its job-envelope wall was 19m35s versus the six-main median 16m18s. Workload jobs finished at 16m37s; the unchanged always-hosted aggregate gate then waited 174 seconds for a runner (3 seconds of execution). Hosted waits were 2s median / 174s maximum. This existing gate remains outside the new offload safeguard; a flat whole-run wall is not established under hosted assignment delays.
The fallback run used 185.15 Blacksmith minutes / approximately $5.68 at list rates including Windows; it moved zero rows. Failed compiler checks ended early, so this is a billed-work estimate, not a steady-state comparison to the healthy offload trial. The run failed six check jobs plus the aggregate gate. All remaining jobs passed, including
control-ui-performance; the earlier UI size failure is therefore historical trial evidence, not the final blocker.Final head
33becc81fde48807835ebd59f62f94a79f200c81is pushed; whole-branch Codex review is scoped-clean through P2. The local worktree is clean. The PR is open and not merged. The separate update-triage type error blocks green CI; no source repair, baseline expansion, backend-variable change, or critical-path runner-label change was made outside R1.Every executed job family in the six-run baseline
Unexecuted classes retain their existing routes; no measured duration or cost is assigned to skipped placeholders. Security Review reevaluation is a separate already-hosted workflow.