Skip to content

ci: run the whole CLI group with measured workers on the 32-vCPU class - #154883

Merged
steipete merged 2 commits into
mainfrom
ci-burden/h7-cli-workers-32
Sep 21, 2026
Merged

steipete merged 2 commits into
mainfrom
ci-burden/h7-cli-workers-32

Conversation

@steipete

@steipete steipete commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The whole agentic-cli group 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, with fallbackMaxWorkers: 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 from 6f409abd23c565033d1374691a5e393ff5bc85d0. 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.

Measurement Supplied two-worker baseline Measured candidate
Runner class / workers Blacksmith 16 / 2 Blacksmith 32 / 8
Whole-CLI Vitest interval 550.7 s 287.36 s (47.8% shorter)
Whole-CLI full job wall Not supplied with this cost baseline 321 s (5m21s)
Whole-CLI full job cost $0.355 $0.3424 (3.55% lower)
32-class cost-neutral full-job threshold 332.8125 s 11.8125 s inside threshold
Peak memory Not supplied Not emitted
Complete PR CI workflow wall Not supplied 1,349 s (22m29s)
CLI on the final critical path Not established No

The whole-CLI job was checks-node-compact-small-22 / 106356624290, on blacksmith-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 with spawnSync … ETIMEDOUT, then expected null to be +0. Its helper, test/scripts/ci-preflight-dependencies.test-support.ts:47, sets the literal timeout: 30_000 with SIGKILL. 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.

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes scripts Repository scripts size: L maintainer Maintainer-authored PR labels Sep 21, 2026
@steipete
steipete marked this pull request as ready for review September 21, 2026 13:38
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed September 21, 2026, 10:11 AM ET / 14:11 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: c1d2f3327f55d06b5c99e129d8e8a0ff15907159

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The implementation reuses established owners and now has native qualification; one small, previously identified documentation correction remains.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The changed CI planner and executor ran the whole CLI lane on a real 32-class runner at the reviewed head, completing successfully in 321 seconds. The captured body supplies worker admission and test-result observations; GitHub independently confirms head, runner, timing, and success. This proves the changed CI path, not sustained fleet savings.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The changed CI planner and executor ran the whole CLI lane on a real 32-class runner at the reviewed head, completing successfully in 321 seconds. The captured body supplies worker admission and test-result observations; GitHub independently confirms head, runner, timing, and success. This proves the changed CI path, not sustained fleet savings.
Evidence reviewed 10 items Introduced planner behavior: The pinned introduced diff extends the existing measured-worker policy to agentic-cli and promotes its emitted native runner after packing. It retains the existing scheduler and fallback contract.
Fallback and inventory coverage: The executor retains two-worker fallback outside roomy, serial, non-frozen self-hosted execution. Updated planner cases cover native/hybrid/hosted plans, complete CLI inventory, precise selection, and the separately pinned CLI-process group.
Current main still lacks the central change: Fetched main limits measured compact workers to Gateway core-2 and still promotes full CLI jobs to the 16-class.
Findings 1 actionable finding [P3] [P3] Restore the numeric observed-CPU value
Security None None.

How this fits together

The 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]
Loading

Before merge

  • [P3] Restore the numeric observed-CPU value (P3) - The historical capacity-probe table still reports Full CLI bins, 8 under Observed CPUs, mixing current job placement with a hardware measurement. Restore this cell to 8; the runner-role table and CLI paragraph already describe placement. This is the previously reported finding and remains unchanged.
  • Complete next step (P2) - Restore the Observed CPUs value in docs/ci/runners.md to 8.

Findings

  • [P3] [P3] Restore the numeric observed-CPU value — docs/ci/runners.md:91
Agent review details

Security

None.

PR surface

Tests +221, Docs +12, Other -1. Total +232 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 397 176 +221
Docs 2 37 25 +12
Config 0 0 0 0
Generated 0 0 0 0
Other 1 6 7 -1
Total 9 440 208 +232

Review metrics

Metric Value Why it matters
Native qualification 321-second full CLI job; 11.81 seconds below the supplied cost-neutral threshold The measured job supports adoption, while the narrow margin and unmatched baseline do not establish sustained fleet savings.
Implementation balance Product runtime +0; CI planner −1; tests and test support +221 net lines Growth is concentrated in fixture process ownership and planner coverage rather than additional product behavior.

Technical review

Best 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:

  • [P3] [P3] Restore the numeric observed-CPU value — docs/ci/runners.md:91
    The historical capacity-probe table still reports Full CLI bins, 8 under Observed CPUs, mixing current job placement with a hardware measurement. Restore this cell to 8; the runner-role table and CLI paragraph already describe placement. This is the previously reported finding and remains unchanged.
    Confidence: 1

Overall correctness: patch is correct
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5e2b898b537c.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed CI planner and executor ran the whole CLI lane on a real 32-class runner at the reviewed head, completing successfully in 321 seconds. The captured body supplies worker admission and test-result observations; GitHub independently confirms head, runner, timing, and success. This proves the changed CI path, not sustained fleet savings.
  • remove merge-risk: 🚨 automation: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: This is a bounded CI throughput improvement with measured native results and no urgent product regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The changed CI planner and executor ran the whole CLI lane on a real 32-class runner at the reviewed head, completing successfully in 321 seconds. The captured body supplies worker admission and test-result observations; GitHub independently confirms head, runner, timing, and success. This proves the changed CI path, not sustained fleet savings.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed CI planner and executor ran the whole CLI lane on a real 32-class runner at the reviewed head, completing successfully in 321 seconds. The captured body supplies worker admission and test-result observations; GitHub independently confirms head, runner, timing, and success. This proves the changed CI path, not sustained fleet savings.

Evidence

Acceptance criteria:

  • [P1] node_modules/.bin/oxfmt --check docs/ci/runners.md.
  • [P1] git diff --check.

What I checked:

  • Introduced planner behavior: The pinned introduced diff extends the existing measured-worker policy to agentic-cli and promotes its emitted native runner after packing. It retains the existing scheduler and fallback contract. (scripts/lib/ci-node-test-plan.mts:827, c1d2f3327f55)
  • Fallback and inventory coverage: The executor retains two-worker fallback outside roomy, serial, non-frozen self-hosted execution. Updated planner cases cover native/hybrid/hosted plans, complete CLI inventory, precise selection, and the separately pinned CLI-process group. (test/scripts/ci-node-test-plan.test.ts:3512, c1d2f3327f55)
  • Current main still lacks the central change: Fetched main limits measured compact workers to Gateway core-2 and still promotes full CLI jobs to the 16-class. (scripts/lib/ci-node-test-plan.mts:868, 5e2b898b537c)
  • Latest release comparison: The supplied latest release, v2026.9.5, also routes native full CLI bins through the 16-class constant; it does not contain this promotion. (scripts/lib/ci-node-test-plan.mts:3390, ec9c1a13db89)
  • Native CI qualification: GitHub confirms job 106356624290 passed on the reviewed head using blacksmith-32vcpu-ubuntu-2404, from 13:40:02 to 13:45:23 UTC. The captured PR body reports eight workers, one admitted plan, 385 passing files, 8,875 passing tests, and a 287.36-second Vitest interval. The workflow completed successfully on attempt 1. Direct log download was blocked by the review proxy, so those detailed counters remain body-reported rather than independently reread. (c1d2f3327f55)
  • Measurement limits and subsequent maintainer action: The captured body explicitly limits the result to one run: $0.3424 at supplied list rates, an 11.8125-second cost-neutral margin, no numeric peak-memory result, and no full-workflow critical-path improvement. After completion, steipete marked the unchanged head ready at 14:03:59 UTC and enabled squash auto-merge at 14:04:01 UTC. These later actions supersede the body's draft-only workflow description; they do not waive review findings or enforced gates. (c1d2f3327f55)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Restore the capacity table's Observed CPUs cell to 8.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-21T13:47:36.537Z sha c1d2f33 :: blocked before merge. :: [P3] [P3] Restore the numeric observed-CPU value

@steipete
steipete marked this pull request as draft September 21, 2026 14:01
@steipete
steipete marked this pull request as ready for review September 21, 2026 14:03
@steipete
steipete enabled auto-merge (squash) September 21, 2026 14:04
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Sep 21, 2026
@steipete
steipete merged commit 7a5bc1a into main Sep 21, 2026
437 checks passed
@steipete
steipete deleted the ci-burden/h7-cli-workers-32 branch September 21, 2026 14:31
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
openclaw#154883)

* fix(test): isolate CLI Gateway fixture dependencies and processes

* ci: use measured workers for the whole CLI group
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant