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. What this changesThe branch prices compact CI test jobs using measured runner capacity and worker allocations, and updates timing collection, planning, execution, tests, and documentation. Review scores
Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 9 items remain Keep open: the worker-capacity pricing work remains distinct from current main, but both prior correctness findings remain in the unchanged head. The protected maintainer-authored PR also needs integration with newer CI packing and native qualification. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherOpenClaw’s CI planner turns test inventories and recorded timings into jobs for GitHub-hosted and Blacksmith runners. Its pricing determines how tests are packed and whether the complete matrix fits the repository’s capacity limits. flowchart LR
A[Test inventory] --> D[CI planner]
B[Recorded timings] --> C[Worker capacity pricing]
C --> D
D --> E{Capacity limits}
E -->|Fits| F[Runner jobs]
E -->|Exceeds| G[Preflight refusal]
F --> B
Technical reviewBest possible solution: Integrate class-aware pricing into the current planner, preserve existing timing baselines, and retain complete runnable coverage within the approved capacity budget with native timing qualification. Do we have a high-confidence way to reproduce the issue? Yes for the pinned patch defects: the recorded broad hosted replay demonstrates admission failure, and source shows an old-format --out baseline is rejected and discarded. No code or tests were executed during this read-only review. Is this the best way to solve the issue? Partly: using actual execution capacity and preserving measured walls is appropriate, but activation must retain runnable admission and the refit must normalize existing baselines before validation. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against af716af2a545. Merge-risk optionsMaintainer options:
SecurityNone. EvidenceWhat I checked:
PR surfaceTests +1386, Docs +57, Config +3, Other +887. Total +2333 across 28 files. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (7 earlier review cycles)
Reviewed October 6, 2026, 10:28 PM ET / October 7, 2026, 02:28 UTC (Revision 8). |
1a31673 to
bfaf76d
Compare
bfaf76d to
e2b1eab
Compare
e2b1eab to
b080de3
Compare
|
Closing this unqualified CI capacity experiment. Its final native acceptance remains unresolved, and current main already consumes tooling-file measurements and has newer compact packing (9de67ec). Any remaining pricing defect should be isolated against the current planner with a measured benefit within the existing capacity limits. Closed in a sweep of maintainer PRs open longer than a week. Reopen with a current reproduction if this still matters. |
Cap options
Caps remain 130 PR Node / 90 compact / 70 push Node. At 130/90 the complete repair is refused; retaining the earlier underpriced layout would retain the measured tails. The hypothetical 145/100 option fits all three profiles with the headroom below. These are broad-PR simulations of the same workload at code head
b080de324cf7b661aff356d54e80af47fde10e39, including the exact 353-observation payload.Pairs mean PR Node / compact. Blacksmith's raw minimum is 131/86; 131/90 preserves the current compact limit. Physical routing is the canonical, trusted first-attempt PR route: hybrid's constrained 4/8-class jobs are Blacksmith, and the GitHub profile uses GitHub-hosted runners. GitHub packing depends on the cap: 134/89 refuses with 141/96 demand, 135/90 fits exactly, and 145/100 repacks to 136/91. The 201-evaluation replay preserves declared coverage and changes no repository policy.
Code-only rows at 145/100 are 124/79 hybrid, 136/91 GitHub, 119/74 Blacksmith. Code-only hybrid and Blacksmith also fit the unchanged caps; GitHub needs 135/90. Adding the data at the common 145/100 policy adds 19 Blacksmith rows on hybrid, no GitHub rows, and 12 Blacksmith rows on Blacksmith. This shared workload comparison does not predict the data-only PR's targeted matrix.
What Problem This Solves
Compact packing underprices work when child partitions or worker allocations change. The original five-main-run cohort contained 11 two-CPU jobs above 12 minutes despite forecasts of at most 360 seconds. Later native proof exposed an additional tooling-reader defect: retained
toolingFileSecondswere not being used consistently.b080de324cf7b661aff356d54e80af47fde10e39fixes that reader path, preserves the tooling longest-file floor, honors compatible command worker suffixes, and keys cached prices by the merged job/group environment.User Impact
This changes CI pricing and packing, with no product behavior change. Coverage, timeouts, runtime worker policy and all row caps stay intact. The minimal
config/ci-test-timings.jsonshape retains the base legacy maps and an empty worker-observation array. It does not include the regenerated 353 records.The historical native criterion still fails: PR 121s → 797s and dispatch 357s → 777s. Those runs predate the repairs in
b080de324cf7b661aff356d54e80af47fde10e39and use the earlier published code/data combination. They neither certifyb080de324cf7b661aff356d54e80af47fde10e39nor prove the complete stack can pass under unchanged caps.Why This Change Was Made
This PR owns all planner/refit-reader/schema/executor/test/doc changes. It preserves compatible measured work before repartitioning, prices the actual runner/worker allocation, keeps cold CLI and indivisible-command-file floors, and requires compatible observations before replacing serial floors. The tooling reader consumes the retained file map while preserving its longest-file floor. Command pricing retains compatible worker-suffix lookups. Price-cache identity includes the merged job/group environment so distinct executions do not share an estimate; companion assertions exercise these owner contracts.
The refit preserves memory metadata even when seconds stay unchanged and detects metadata-only changes. Log sampling retains untimestamped environment continuations; the frozen execution adapter carries its complete dependency closure. Empty stripes are removed, compatible serial tooling tails share an existing budget, and immutable pricing is memoized. No new timing multiplier, timeout, retry or cap increase is introduced.
The paired data PR contains only the regenerated config payload and provenance. Its full historical baseline and sampling tables live there; the complete published-head native job/step evidence and original-workload successor comparisons remain below in this code PR.
Evidence
Exact-head PR CI: 35703601380, source
b080de324cf7b661aff356d54e80af47fde10e39; in progress at publication. This is not a new acceptance claim.Final rebased
node scripts/check-changed.mjs, formatting, docs sanity andgit diff --check: passed. The code PR is +2,790 / −457 across 28 files; its timing config diff is only +2 / −1.Focused repair proof: 42 tests passed in 28.76s. The additional environment regression was reproduced red, then 28 worker-cost tests passed in 1.29s: one environment test plus 27 existing cases. These are separate runs, not a combined unique-test count.
Final cap replay on the rebased code: 201 evaluations in 354.12s, exact passing minima and lower refusals retained; source fingerprints unchanged. The prior 280.55s replay is preserved separately.
Full code P2 review for
b080de324cf7b661aff356d54e80af47fde10e39:scoped-clean. The rebase onto2b943452054b57a8e1267014defee11a504b9e69retained all nine patch entries unchanged; the earliere2b1eab…review remains historical.Native acceptance for
b080de324cf7b661aff356d54e80af47fde10e39: unresolved. No standalone dispatch is part of this publication request. Historical matrices below predate the repairs, with failed jobs and wall violations preserved.Historical Native Evidence — Published e2b1eab
The primary criterion fails once in each attempt: PR small-52 predicts 121s and takes 797s; main-shaped large-5 predicts 357s and takes 777s. PR 35689705064, attempt 1, completed with failure: 83 compact jobs, 81 successful and 2 failed. Main-shaped 35690200152, attempt 1, has 66 terminal compact jobs, 65 successful and 1 failed; the overall manual workflow was running at collection and later completed with failure (06:15:49Z).
The PR source is
e2b1eabf5dd2bb16b6192c414e2b71154e56fa17; its actual merge checkout isdbcb18237ed4a4792224615b61f64b96fb9b7353, merging into44559eb315e09528aa287878494583e32ad9582e. It usesbun-compatiblepolicy. Dispatch source/checkout ise01ad070f46fedd99c2d82b1cdcc2a3c7e81b734, a workflow-only proof derivative of the published candidate, using Node. Both are unfrozen. Descriptor matching and child pricing use those exact historical sources and predate the repairs inb080de324cf7b661aff356d54e80af47fde10e39.The workflow emits nondist rows only. Planner totals 85/67 include 2/1 dist selectors, giving 83/66 actual named compact jobs; no delayed dist jobs exist. The earlier 85/67 expected-job audit is superseded and retained. Dist selection is consumed by
build-artifactsthrough core-support boundary and conditional proof-tier PTY flags. PR build-artifacts succeeded (283s whole / 95s check step); dispatch build-artifacts succeeded (923s / 622s). Conditional canaries are not counted as additional compact jobs.PR failures: command-planner assertions (S55) and
gateway-codex-delivery-cache.test.ts(S39). Dispatch S4 failedserver-reload-handlers.test.tsargument expectations. The command assertions are fixed inb080de324cf7b661aff356d54e80af47fde10e39; those historical failures remain recorded, and the other failures remain unresolved. A Linux Gateway singleton diagnosis hit a Testbox source-sync timeout before setup/build/test; its lease was stopped.PR tooling-6/9 outer native walls are 222.07s + 496.16s = 718.23s, wrappers 722.834s, executor 724.38s, whole 797s. A nested fixture's 0.720s summary is excluded from the already-inclusive outer run. The parser selects a final summary only for a declared one-config child with an outer one-shard completion; all 11 original child measurements and true multi-config durations remain intact. Dispatch large-5 has native work 678.10s, wrappers 690.089s, executor 691.55s and whole 777s.
The tooling forecast was exactly
(78 + 43) files × 2s / 2 workers: retained file measurements were never read.b080de324cf7b661aff356d54e80af47fde10e39fixes that reader and preserves the tooling longest-file floor through the existing scheduler. Main large-5 remains a workload-projection/calibration gap; methods/security history already has two effective workers, so an 8→2 multiplier is unsupported.Published-head class/job/step results
Both nondist matrices are complete with zero parser gaps: PR 83 jobs / 265 children; main-shaped 66 jobs / 237 children. Every native descriptor matches its exact-source diagnostic (83/83 and 66/66). No scratch tooling-reader patch or 451-record refit contributes to these measurements.
The initial two-CPU class ratio was 1.72× native work/prediction. Current two-CPU ratios are 1.02× PR and 0.76× main-shaped, with changed source, workload and placement; these are not controlled speedups. For concurrent children, native sums are work totals, not elapsed wall. Resource ceilings remain distinct from effective child pins/fallbacks.
All following values are seconds.
S/Lidentify small/large compact job suffixes within the named run. P=prediction, V=outer Vitest work, E=executor, W=whole job; C=checkout, N=Node setup, B=runtime build, R=Run Node test shard, O=all remaining steps, U=outside recorded steps. C+N+B+R+O+U=W. CI S/F means successful/failed job; criterion violations are separate.PR 35689705064: blacksmith-32vcpu, 8 CPUs / 2 resource workers / 2 child slots (13 jobs)
PR 35689705064: blacksmith-32vcpu, 8 CPUs / 8 resource workers / 1 child slots (34 jobs)
PR 35689705064: blacksmith-8vcpu, 2 CPUs / 2 resource workers / 1 child slots (36 jobs)
Main-shaped 35690200152: blacksmith-32vcpu, 8 CPUs / 2 resource workers / 2 child slots (14 jobs)
Main-shaped 35690200152: blacksmith-32vcpu, 8 CPUs / 8 resource workers / 1 child slots (31 jobs)
Main-shaped 35690200152: blacksmith-8vcpu, 2 CPUs / 2 resource workers / 1 child slots (21 jobs)
Original violating jobs: actual successors
Successors are matched by full file/config/non-worker-environment inventories, not job numbers. Each paired prediction/wall comes from one actual job. Shared/extra count config/environment/file units; P/C mark same/changed context and status is the actual CI conclusion. Additional colocated work is retained; this is a cross-revision comparison, not a controlled speedup or per-file timing allocation.
S/Labbreviatechecks-node-compact-small-/checks-node-compact-large-.All successors of original 35668645654 / 106560228530
All successors of original 35668757942 / 106560555237
All successors of original 35668757942 / 106560555240
The retained machine map contains every exact intersection, missing or moved-context file, timing-epoch transition, complete successor descriptor, extra file, per-child cost/native/config duration and whole-job preparation/floor accounting. Unknown whole-config scope is never treated as empty work.