Skip to content

ci: use four Windows workers on the 16 class - #154261

Merged
steipete merged 7 commits into
mainfrom
ci-burden/w1-windows-workers
Sep 21, 2026
Merged

steipete merged 7 commits into
mainfrom
ci-burden/w1-windows-workers

Conversation

@steipete

@steipete steipete commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Windows CI leaves delivered CPU capacity idle because its job pins one Vitest worker and several selected projects separately disable file parallelism.

User Impact

Use four file workers on the Blacksmith 16 class, retaining one project process per machine, two Windows matrix rows, max-parallel 2, hosted fallback's one-worker budget, and all 133 explicit files. No product behavior, assertions, deadlines, or test selections change. Keep this PR draft and do not land. The separate class decision remains draft #154166.

Why This Change Was Made

This was a deliberate serial pin, not an unrecognized Windows CPU/RAM tier. ci.yml sets the Windows environment; ci-node-test-plan.mts owns the Linux Node plan, not this job. resolveLocalVitestScheduling honors the override before resource inference. Without an override, the shared ≤16-GiB tier would still select two workers on the delivered four-CPU/14-GiB allocation.

Commit 806803b7efe2 (#29580) reduced Windows from four workers to one, with the comment “Windows shard 2 has shown intermittent instability at 2 workers.” That PR did not record the failing files or root cause. Commit 9ef5d85e40b later renamed the environment variable and removed the explanation while keeping the pin. PR #135177 separately restored serial project processes because native allocation can be smaller than the label; this change preserves that boundary.

The Windows invocations also need --fileParallelism: tooling, infrastructure, and other serial configs otherwise resolve to one effective worker despite the larger environment ceiling. Existing test-projects.mts argument handling strips pnpm's separator and forwards this option to Vitest. The two single-file package-contract and fake-timer selections retain their explicit one-worker budgets; every multi-file Windows project resolved four workers in the native evidence.

Evidence

Three consecutive clean pairs at four workers on 16

Every run used attempt 1 on a distinct pushed head. The test trees were byte-identical; the second and third commits only supplied new certification heads. No workflow reruns or test retries were used. All six jobs passed, with 399 module receipts, no failed modules or unhandled errors, and exact 75/58-file inventories without extras, omissions, or duplicates. All jobs delivered four available CPUs and 14 GiB.

Sample Head Part 1 test / job wall Part 2 test / job wall Pair estimate
1 6ab02e7efb4273eda36852b4a5e6aab3b1db0af7 420 / 516 s 429 / 531 s $1.117
2 006fcd8928ad8c1fe161563bde72e9ecf90fc717 463 / 575 s 449 / 547 s $1.197
3 ab8e7d68f60afd6f455d50b6af7bff875be0164c 427 / 529 s 430 / 572 s $1.174
Windows part One worker: test / job wall Four workers: median test / median job wall Test-wall saving
Part 1 613 / 717 s 427 / 529 s 186 s (30.3%)
Part 2 626 / 729 s 430 / 547 s 196 s (31.3%)

The one-worker baseline used the same 75/58 partition and 133 unique targets, verified against its tested base b73d0e4541eff60e3f24eb50c84c26b98a77d30f. Its tested merge revision was 289f9d29b9abdcbe0a825b898ecbc0eb8a607dc9; this worker branch started from 700ce434cebfe8d08a0d93804d57f14e120bdab5. Source revisions differ, so this is a historical comparison, not a same-source controlled estimate. The three four-worker pairs use identical source.

Median pair cost falls from $1.542 to $1.174 (23.9%). The pair's job-wall tail is 8m51s–9m35s, median 9m32s. Per-part medians and median pair cost are calculated independently, not by summing median rows. Setup remains included in job wall; part 2's third setup took 133 s versus 89–92 s in the other samples. The temporary experiment uses pinned actions/checkout instead of the ordinary CI harness checkout, matching the baseline experiment; it is not a measurement of full workflow queue-to-gate latency.

Failing files and owner fixes

Failing file Assertion Classification Owner fix
None in the three four-worker Windows pairs None No fixture/shared-state or product defect observed None needed; assertions and timeouts unchanged

The historical serial-pin PR does not provide a failing-file inventory to reproduce. Its instability is therefore not claimed as repaired; the current complete Windows selection has the three-run native proof above.

Eight workers on 32

Do not switch to 32: the single attempt at 0af1c7bb2eb46ddd7a512713f8adcac826fc1bf7 passed all 133 files, with eight effective workers in every multi-file project and delivered eight CPUs/28 GiB, but its tail was 8m55s, still above eight minutes.

32-class / eight workers Setup Test wall Job wall Estimate
Part 1 125 s 401 s 535 s $1.141
Part 2 146 s 364 s 518 s $1.105
Pair — — 8m55s tail $2.246

That is 91.3% more than the 16/four median pair cost for a 37-second improvement over its median tail; it is four seconds slower than the best 16/four tail. This is one sample with slower setup, not a universal hardware-speed claim. Even substituting the 16-class median setup into 32's measured Part 1 would leave approximately 8m23s, so setup variation alone does not demonstrate the requested threshold.

The remaining critical path contains indivisible files. In the first four-worker pair, Part 1 tooling took 140.6 s and its worker-artifact file spanned 139.8 s. Part 2 process took 142.5 s and its native execution integration file spanned 139.3 s, including a deliberate 60-second timeout case. More file workers cannot split these contracts. No assertion or deadline was weakened to improve the result.

Production remains 16-class/four workers, with two rows. The 32-class comparison also had no failed file or unhandled error; the complete campaign therefore produced 532 module receipts without a failed module.

Validation and closeout

  • P2 autoreview: final base-to-candidate diff is scoped-clean, with no accepted/actionable P0–P2 findings. An initial workflow expression-context finding was fixed before the first Windows push by moving runner.environment to step-level env. A later pnpm-separator concern was disproven by the actual plan builder and native worker/reporter receipts; subsequent P2 review was scoped-clean.
  • Focused workflow guards: five selected cases passed on Linux through Crabbox/Blacksmith Testbox tbx_01m30sbj39bacqr009rq4dfb36, run 35551102405, Vitest wall 6.34 s. That initial snapshot's workflow check caught the expression-context error above. Corrected focused guards passed on macOS (22.42 s Vitest / 26.28 s wrapper); the changed serial-project guard itself took 59 ms in the Linux sample.
  • Corrected pnpm check:workflows passed, including actionlint/zizmor; the selected check-changed gate passed, including test-root types, lint, formatting, and dead-export checks. Workflow validation and docs formatting also passed after removing the temporary workflow. No full-repository test run was requested; native Windows coverage is complete.
  • The temporary branch-restricted certification workflow is removed from the final diff. Production rows remain two, with max-parallel 2; the selected files remain 75/58. Normal broad CI stays skipped while this PR is draft. No merge or release was attempted.

Final head: ebaa12895a778b3a1410eb3c387622e0b948f75f. Relative to the third certified head, only documentation and removal of the temporary workflow change; the production Windows invocation, test code, configs, and inventory remain identical.

Price estimates use Blacksmith's published Windows rates: $0.064/min for 16 and $0.128/min for 32, multiplied by unrounded job-wall minutes. They exclude assignment wait and are list-price estimates, not invoices.

@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 size: S maintainer Maintainer-authored PR labels Sep 21, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 maintainer review before merge. Reviewed September 21, 2026, 12:26 AM ET / 04:26 UTC (Revision 3).

ClawSweeper review

What this changes

Selects Blacksmith’s Windows 16 class, enables four test-file workers while retaining one hosted worker, and updates runner documentation and workflow guards.

Merge readiness

✅ Ready for maintainer review

The change remains useful and has convincing native Windows evidence, with no actionable correctness findings. The later maintainer-enabled squash auto-merge supersedes the earlier hold; routine merge gates remain.

Priority: P3
Reviewed head: db8ac95c758b077c6e4529f609200bc73b3683fd

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused scheduling change with strong native evidence and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The real Windows partition commands ran successfully with four workers on Blacksmith's 16-class across three certification pairs; both production Windows checks also passed on the reviewed head. This directly exercises the changed CI behavior, while the body clearly limits historical timing comparisons.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The real Windows partition commands ran successfully with four workers on Blacksmith's 16-class across three certification pairs; both production Windows checks also passed on the reviewed head. This directly exercises the changed CI behavior, while the body clearly limits historical timing comparisons.
Evidence reviewed 9 items Introduced change: The pinned introduced diff changes Windows runner sizing, moves the worker ceiling to step scope, and enables file parallelism. Existing routing predicates, permissions, two-job concurrency, serial project execution, deadlines, and test selections remain intact.
Existing scheduling owner: The existing scheduler honors OPENCLAW_VITEST_MAX_WORKERS before resource inference. The project argument parser consumes the pnpm separator and forwards --fileParallelism to Vitest; no parallel scheduling implementation is added.
Current-main necessity: Fetched main still selects the Windows 8-class, pins one worker, and invokes both partitions without the file-parallelism override.
Findings None None.
Security None None.

How this fits together

Windows CI runs two selected platform-test partitions after preflight. Runner routing and worker limits determine how those tests execute before reporting results to the CI gate.

flowchart TD
  A[CI event and backend setting] --> B[Windows runner routing]
  B --> C[Blacksmith 16 class]
  B --> D[Hosted Windows]
  C --> E[Four file workers]
  D --> F[One file worker]
  E --> G[Two partitions with serial projects]
  F --> G
  G --> H[CI results]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +4, Docs 0, Config 0. Total +4 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 7 3 +4
Docs 1 11 11 0
Config 1 5 5 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 23 19 +4

Review metrics

Metric Value Why it matters
Worker and admission budgets Blacksmith 1 → 4 workers; hosted 1; project processes 1; concurrent jobs 2 The change uses measured machine capacity without adding runner registrations or parallel project processes.

Technical review

Best possible solution:

Keep runner sizing and worker budgets in the existing workflow owner, preserving complete native coverage, serial projects, and the hosted fallback.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a product bug: the one-worker bottleneck is explicit in current main, and native Windows runs demonstrate the proposed scheduling.

Is this the best way to solve the issue?

Yes. Adjusting the existing workflow and forwarding Vitest's existing option is a narrow solution supported by native execution; the timing comparison remains historical rather than controlled.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9d9dac054cf4.

Labels

Label justifications:

  • P3: This is bounded internal CI performance tuning without a product behavior change or urgent regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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 real Windows partition commands ran successfully with four workers on Blacksmith's 16-class across three certification pairs; both production Windows checks also passed on the reviewed head. This directly exercises the changed CI behavior, while the body clearly limits historical timing comparisons.
  • proof: sufficient: Contributor real behavior proof is sufficient. The real Windows partition commands ran successfully with four workers on Blacksmith's 16-class across three certification pairs; both production Windows checks also passed on the reviewed head. This directly exercises the changed CI behavior, while the body clearly limits historical timing comparisons.

Evidence

What I checked:

  • Introduced change: The pinned introduced diff changes Windows runner sizing, moves the worker ceiling to step scope, and enables file parallelism. Existing routing predicates, permissions, two-job concurrency, serial project execution, deadlines, and test selections remain intact. (.github/workflows/ci.yml:4809, db8ac95c758b)
  • Existing scheduling owner: The existing scheduler honors OPENCLAW_VITEST_MAX_WORKERS before resource inference. The project argument parser consumes the pnpm separator and forwards --fileParallelism to Vitest; no parallel scheduling implementation is added. (scripts/lib/vitest-local-scheduling.mts:126, db8ac95c758b)
  • Current-main necessity: Fetched main still selects the Windows 8-class, pins one worker, and invokes both partitions without the file-parallelism override. (.github/workflows/ci.yml:4721, 9d9dac054cf4)
  • Latest release comparison: The supplied latest release, v2026.9.5, also retains the Windows 8-class and one-worker ceiling. Its workflow was inspected through GitHub because the local tag/blob was unavailable. (.github/workflows/ci.yml:4682, ec9c1a13db89)
  • Native certification: GitHub job metadata confirms both partitions succeeded on the Windows 16-class in runs 35551639594, 35552313481, and 35552949964. The inspected certification workflow invokes the production partition commands with four workers, file parallelism, and serial projects. The captured body reports 399 successful module receipts and median test walls of 427/430 seconds; its historical baseline and different checkout setup are explicitly disclosed. (.github/workflows/windows-worker-certification.yml:24, ab8e7d68f60a)
  • Current-head Windows execution: Both production Windows checks succeeded for the reviewed head in run 35560201421, jobs 106211665392 and 106211665455. This supplements the earlier native certification after main integration. (.github/workflows/ci.yml:4806, db8ac95c758b)

Likely related people:

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

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 (2 earlier review cycles)
  • reviewed 2026-09-21T01:48:44.125Z sha 6ab02e7 :: blocked before merge. :: none
  • reviewed 2026-09-21T02:50:04.926Z sha 71b3794 :: blocked before merge. :: none

@steipete steipete changed the title ci: certify four Windows workers on the 16 class ci: use four Windows workers on the 16 class Sep 21, 2026
@steipete
steipete marked this pull request as ready for review September 21, 2026 02:30
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Sep 21, 2026
@steipete
steipete enabled auto-merge (squash) September 21, 2026 04:06
@steipete
steipete merged commit 537d562 into main Sep 21, 2026
110 checks passed
@steipete
steipete deleted the ci-burden/w1-windows-workers branch September 21, 2026 04:30
vincentkoc added a commit to jb510/openclaw that referenced this pull request Sep 21, 2026
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (49 commits)
  fix(ci): remove duplicate database worker test entry
  fix(voice): keep audio flowing while the Gateway is busy (openclaw#154119)
  docs: reserve Team live updates for Night Watch (openclaw#154425)
  test(meeting-bot): control browser retry fixture clocks (openclaw#149174)
  fix(ui): use remote defaults for manual worktree creation (openclaw#154364)
  fix(proxy): keep WebChat and Codex loopback calls direct (openclaw#154013)
  fix(pr): revalidate head reads and reuse repository locators (openclaw#154212)
  fix(browser): start control when the Gateway has activated the plugin (openclaw#154255)
  improve: publish CI dependencies promptly and warm hosted JavaScript caches (openclaw#154156)
  improve: speed up streaming text with inline brackets (openclaw#154398)
  test: isolate historical Node runner policy from CI
  fix: refresh stale Gateway shutdown budgets during updates and Doctor (openclaw#153636)
  ci: use four Windows workers on the 16 class (openclaw#154261)
  feat: verify GitHub credit from trusted OIDC claims (openclaw#153940)
  feat(sessions): support explicit local placement for child sessions (openclaw#153912)
  fix(ui): prevent stale copies after text changes (openclaw#154259)
  perf(gateway): reuse session list candidates across viewers (openclaw#154003)
  perf(codex): bound progressive local catalog waits (openclaw#154362)
  docs: keep update requests owned through acceptance (openclaw#154111)
  perf(state): reduce main-thread coordinator waits (openclaw#154244)
  ...
vincentkoc added a commit that referenced this pull request Sep 21, 2026
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (58 commits)
  fix(ci): remove duplicate database worker test entry
  fix(voice): keep audio flowing while the Gateway is busy (#154119)
  docs: reserve Team live updates for Night Watch (#154425)
  test(meeting-bot): control browser retry fixture clocks (#149174)
  fix(ui): use remote defaults for manual worktree creation (#154364)
  fix(proxy): keep WebChat and Codex loopback calls direct (#154013)
  fix(pr): revalidate head reads and reuse repository locators (#154212)
  fix(browser): start control when the Gateway has activated the plugin (#154255)
  improve: publish CI dependencies promptly and warm hosted JavaScript caches (#154156)
  improve: speed up streaming text with inline brackets (#154398)
  test: isolate historical Node runner policy from CI
  fix: refresh stale Gateway shutdown budgets during updates and Doctor (#153636)
  ci: use four Windows workers on the 16 class (#154261)
  feat: verify GitHub credit from trusted OIDC claims (#153940)
  feat(sessions): support explicit local placement for child sessions (#153912)
  fix(ui): prevent stale copies after text changes (#154259)
  perf(gateway): reuse session list candidates across viewers (#154003)
  perf(codex): bound progressive local catalog waits (#154362)
  docs: keep update requests owned through acceptance (#154111)
  perf(state): reduce main-thread coordinator waits (#154244)
  ...
vincentkoc added a commit that referenced this pull request Sep 21, 2026
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (58 commits)
  fix(ci): remove duplicate database worker test entry
  fix(voice): keep audio flowing while the Gateway is busy (#154119)
  docs: reserve Team live updates for Night Watch (#154425)
  test(meeting-bot): control browser retry fixture clocks (#149174)
  fix(ui): use remote defaults for manual worktree creation (#154364)
  fix(proxy): keep WebChat and Codex loopback calls direct (#154013)
  fix(pr): revalidate head reads and reuse repository locators (#154212)
  fix(browser): start control when the Gateway has activated the plugin (#154255)
  improve: publish CI dependencies promptly and warm hosted JavaScript caches (#154156)
  improve: speed up streaming text with inline brackets (#154398)
  test: isolate historical Node runner policy from CI
  fix: refresh stale Gateway shutdown budgets during updates and Doctor (#153636)
  ci: use four Windows workers on the 16 class (#154261)
  feat: verify GitHub credit from trusted OIDC claims (#153940)
  feat(sessions): support explicit local placement for child sessions (#153912)
  fix(ui): prevent stale copies after text changes (#154259)
  perf(gateway): reuse session list candidates across viewers (#154003)
  perf(codex): bound progressive local catalog waits (#154362)
  docs: keep update requests owned through acceptance (#154111)
  perf(state): reduce main-thread coordinator waits (#154244)
  ...
vincentkoc added a commit to vyctorbrzezowski/openclaw that referenced this pull request Sep 21, 2026
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (44 commits)
  fix(ci): remove duplicate database worker test entry
  fix(voice): keep audio flowing while the Gateway is busy (openclaw#154119)
  docs: reserve Team live updates for Night Watch (openclaw#154425)
  test(meeting-bot): control browser retry fixture clocks (openclaw#149174)
  fix(ui): use remote defaults for manual worktree creation (openclaw#154364)
  fix(proxy): keep WebChat and Codex loopback calls direct (openclaw#154013)
  fix(pr): revalidate head reads and reuse repository locators (openclaw#154212)
  fix(browser): start control when the Gateway has activated the plugin (openclaw#154255)
  improve: publish CI dependencies promptly and warm hosted JavaScript caches (openclaw#154156)
  improve: speed up streaming text with inline brackets (openclaw#154398)
  test: isolate historical Node runner policy from CI
  fix: refresh stale Gateway shutdown budgets during updates and Doctor (openclaw#153636)
  ci: use four Windows workers on the 16 class (openclaw#154261)
  feat: verify GitHub credit from trusted OIDC claims (openclaw#153940)
  feat(sessions): support explicit local placement for child sessions (openclaw#153912)
  fix(ui): prevent stale copies after text changes (openclaw#154259)
  perf(gateway): reuse session list candidates across viewers (openclaw#154003)
  perf(codex): bound progressive local catalog waits (openclaw#154362)
  docs: keep update requests owned through acceptance (openclaw#154111)
  perf(state): reduce main-thread coordinator waits (openclaw#154244)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
* ci: certify four Windows workers on the 16 class

* ci: record second Windows worker certification head

* ci: record third Windows worker certification head

* ci: measure eight Windows workers on the 32 class once

* ci: retain verified four-worker Windows policy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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