Repository navigation
ci: run the whole CLI group with measured workers on the 32-vCPU class - #154883
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 21, 2026, 10:11 AM ET / 14:11 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR gives native CLI test jobs larger runners and resource-based worker sizing, isolates Gateway test fixtures, and updates planner coverage and CI documentation. Merge readiness⛔ Needs changes before merge - 2 items remain The change remains useful and is absent from current main. Native qualification now supports the implementation; the previously reported documentation error remains. No blocking runtime or security defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe CI planner turns test inventories into runner jobs. The shard executor then uses available resources and fallback limits to choose test concurrency, while Gateway fixtures provide isolated server processes. flowchart TD
A[Test inventory] --> B[CI job planner]
B --> C[Native or hosted runner]
C --> D[Resource and fallback checks]
D --> E[CLI test workers]
E --> F[Isolated Gateway fixtures]
E --> G[Test results and job timings]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +221, Docs +12, Other -1. Total +232 across 9 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep resource-based worker admission and conservative fallbacks, with historical hardware measurements recorded accurately. Do we have a high-confidence way to reproduce the issue? Yes for the remaining finding: the reviewed source directly shows placement text in the numeric CPU-measurement cell. No local execution was performed. Is this the best way to solve the issue? Yes: extending the existing measured-worker owner preserves established fallback behavior and avoids a competing scheduler; the remaining repair is a one-cell documentation correction. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5e2b898b537c. LabelsLabel changes:
Label 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 (1 earlier review cycle)
|
openclaw#154883) * fix(test): isolate CLI Gateway fixture dependencies and processes * ci: use measured workers for the whole CLI group
What Problem This Solves
The whole
agentic-cligroup took 550.7 seconds with a two-worker pin. On the current 16-class allocation (four CPUs / 15.42 GiB), the existing measured-worker path also falls back to two workers, so removing that pin alone cannot increase concurrency.User Impact
This is a draft CI experiment with no CLI behavior change from the planner itself. Native full-CLI bins request
blacksmith-32vcpu-ubuntu-2404; their existing measured-worker scheduler can admit eight workers on the observed eight-CPU / 30.95-GiB host. The maintainer owns the go/no-go after one exact-head measurement. Auto-merge is disabled.Why This Change Was Made
Extend the measured-worker precedent from #152864 to exact
agentic-cli, withfallbackMaxWorkers: 2, and promote its emitted native job after packing. Preserve the logical owner, serial plan execution, hosted/hybrid retry ceilings, the separate CLI-process group, complete inventory, committed timings, splits, and 150-second child cap. The three old runner/pin expectations in the committed-policy guard now assert this policy. The investigation follows the owner-first precedent in #152922; no timeout or wait budget was raised and no assertion was weakened.The trade is explicit: the 32-class costs about twice as much per minute ($0.064 versus $0.032), and this experiment puts a heavy lane back on that class despite #154471's load-concentration concern. A faster test interval is not automatically a cheaper job or less fleet pressure. Against the supplied $0.355 baseline job cost, the full 32-class job must finish within 332.8125 seconds to be cost-neutral.
All eleven previously armed owner fixes are in base
c371f5f0a57b10ebe38e71b6860ab3644e6af4b3. This draft additionally includes the published Gateway-fixture prerequisite #154764, cherry-picked from6f409abd23c565033d1374691a5e393ff5bc85d0. It owns the ordinary CLI reachability and native-hook fixture failures found during qualification; its five files retain the published bytes. That PR remains separate and open.Evidence
One native exact-head CI run, attempt 1, completed successfully at
c1d2f3327f55d06b5c99e129d8e8a0ff15907159. The PR was temporarily marked ready for this run, then returned to draft after completion. Auto-merge remained disabled; no rerun or additional push was requested.The whole-CLI job was
checks-node-compact-small-22/106356624290, onblacksmith-32vcpu-ubuntu-2404. Logs confirm eight available CPUs, eight selected workers, and one admitted plan. It passed 385 files and 8,875 tests, with one file and 51 existing cases skipped. Vitest reported 287.36 seconds; the shard step occupied 291 seconds; the full job ran from 13:40:02 to 13:45:23 UTC on September 21. The job exposed 33,231,855,616 bytes (30.95 GiB) of OS-visible total memory. Its cgroup peak-memory step emitted no numeric result, so total memory is not reported as peak usage.The last workload was
checks-node-compact-large-14/106356624701: 1,245 seconds (20m45s), finishing at 14:00:48 UTC, 15m25s after CLI. The aggregate gate finished at 14:00:55; the workflow became terminal at 14:00:56, measured from its 13:38:27 creation/start. This CLI change did not determine the PR's finishing time.The requested list-rate calculation is
321 / 60 × $0.064 = $0.3424, saving $0.0126 against the supplied $0.355 baseline. The 32-class still costs about twice as much per minute. This run is slightly cheaper, with only an 11.8-second cost margin; the comparison includes intervening owner repairs and inventory changes. One run does not isolate the worker-count effect or establish a sustained fleet-cost reduction. The load-concentration concern from the capacity work above remains part of the maintainer's go/no-go decision.Separate local guard failure
Before publication,
test/scripts/ci-workflow-guards.test.ts→ “keeps the preflight manifest import closure dependency-free” failed withspawnSync … ETIMEDOUT, thenexpected null to be +0. Its helper,test/scripts/ci-preflight-dependencies.test-support.ts:47, sets the literaltimeout: 30_000withSIGKILL. This deadline is hard-coded, not measurement-derived, and its owner is byte-identical to the captured main base. The fixture forces the hosted GitHub profile, whose policy this patch leaves unchanged. The timeout cause remains unresolved; it was not rerun and no deadline or assertion was changed. The successful native run does not diagnose that earlier local timeout.The local planner file passed. The combined planner/workflow invocation had 770 passes, 12 existing skips, and the single failure above; Vitest took 378.31 seconds (wrapper 380.03 seconds) at one worker. New policy cases extend existing planner fixtures without new timers, process boots, or production seams. Installed formatting, type-aware lint for both owner tsconfigs, the semantic canary, two-page MDX sanity, and whitespace checks passed. Fresh autoreview of the complete draft diff was scoped-clean through P2, with zero findings. The full local changed gate was not run; native CI is the current-head integration evidence.
Earlier Linux stress campaigns retain their original source provenance. The later Testbox attempts failed on workflow-fetch HTTP 429 before executing any remote build or test. The experiment is complete and remains draft for the maintainer's decision.