Repository navigation
ci: use four Windows workers on the 16 class - #154261
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 maintainer review before merge. Reviewed September 21, 2026, 12:26 AM ET / 04:26 UTC (Revision 3). ClawSweeper reviewWhat this changesSelects 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 Review scores
Verification
How this fits togetherWindows 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +4, Docs 0, Config 0. Total +4 across 3 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
* 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) ...
* 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) ...
* 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) ...
* 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) ...
* 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
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.ymlsets the Windows environment;ci-node-test-plan.mtsowns the Linux Node plan, not this job.resolveLocalVitestSchedulinghonors 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. Commit9ef5d85e40blater 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. Existingtest-projects.mtsargument 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.
6ab02e7efb4273eda36852b4a5e6aab3b1db0af7006fcd8928ad8c1fe161563bde72e9ecf90fc717ab8e7d68f60afd6f455d50b6af7bff875be0164cThe one-worker baseline used the same 75/58 partition and 133 unique targets, verified against its tested base
b73d0e4541eff60e3f24eb50c84c26b98a77d30f. Its tested merge revision was289f9d29b9abdcbe0a825b898ecbc0eb8a607dc9; this worker branch started from700ce434cebfe8d08a0d93804d57f14e120bdab5. 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/checkoutinstead 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
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
0af1c7bb2eb46ddd7a512713f8adcac826fc1bf7passed 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.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
runner.environmentto step-levelenv. A later pnpm-separator concern was disproven by the actual plan builder and native worker/reporter receipts; subsequent P2 review was scoped-clean.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.pnpm check:workflowspassed, including actionlint/zizmor; the selectedcheck-changedgate 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.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.