Skip to content

ci: shorten Windows checks with the measured 16-vCPU class - #154166

Closed
steipete wants to merge 2 commits into
mainfrom
ci-burden/w1-windows-class
Closed

steipete wants to merge 2 commits into
mainfrom
ci-burden/w1-windows-class

Conversation

@steipete

@steipete steipete commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Windows CI remains the long tail after project regrouping. The current 8-vCPU Blacksmith label delivers two CPUs; this PR selects the larger class with the better measured latency/cost tradeoff.

User Impact

Both Windows test parts request blacksmith-16vcpu-windows-2025 from the single runner-label owner in ci.yml. All 133 targets, assertions, worker ceilings, serial project execution, deadlines, concurrency limits and hosted fallbacks remain intact. No product behavior changes. Keep this PR unmerged.

Why This Change Was Made

Choose 16: both classes passed both parts once. The 16-class delivered four CPUs and 14.00 GiB RAM; the 32-class delivered eight CPUs and 28.00 GiB. The job-wall tail was 12m09s on 16 and 11m53s on 32. Including assignment wait from the common job-created timestamp, class completion was 12m42s versus 12m32s. Saving another 16 seconds (2.2%) on 32 consumed 739.73 requested-vCPU minutes, versus 385.60 on 16 (91.8% more).

The preference threshold of an approximately eight-minute tail was not met. The comparison still favors 16 as the useful intermediate allocation: against the prior successful 8-class result with the same 75/58 partition, its observed tail is 81 seconds shorter (10.0%) and its test tail is 117 seconds shorter (15.7%), at 1.84× nominal requested-vCPU minutes. This is an unpaired historical comparison with source/setup differences, not a controlled causal estimate. The simultaneous 16-versus-32 comparison uses identical source and setup.

The temporary experiment workflow was removed after its only run. Production selection remains in one ci.yml expression, and the existing routing guards now expect 16. This PR does not touch the separately landed regrouping PR #154107.

Evidence

Final branch head: b26af0c735d2fa5180af06dacf2c4ea4d5918a90. P2-reviewed final diff: four files; temporary experiment removed.

Four first-attempt Windows measurements

Experiment run 35545416856 passed all four matrix jobs on attempt 1. No Windows job or test was rerun. Blacksmith's official runner labels document both 16/32 Windows Server 2025 classes; all four jobs were assigned within 45 seconds.

Branch head 88616ccb52e907ec1c54581cca73d2aa8bc01f3f was created from origin/main at 21f3d71a09d4356e2f9af53532ac5877136d0a0c. Every experiment job checked out the same PR merge revision 289f9d29b9abdcbe0a825b898ecbc0eb8a607dc9, whose base b73d0e4541eff60e3f24eb50c84c26b98a77d30f includes the independently landed regrouping. Its Windows scripts exactly match that prior corrected candidate: 75/58 targets and 16/15 project processes, with 133 unique targets.

Job CPUs RAM GiB Assignment s Setup s Tests s Job wall s Workers Requested vCPU-min List-price estimate
windows-16-part-1 4 14.00 45 95 613 717 1 191.20 $0.765
windows-16-part-2 4 14.00 28 93 626 729 1 194.40 $0.778
windows-32-part-1 8 28.00 44 99 567 674 1 359.47 $1.438
windows-32-part-2 8 28.00 39 95 610 713 1 380.27 $1.521

Assignment = job created_at to started_at; all rows were immediately eligible with no predecessor or matrix admission wait. Setup = job start to test-step start. Tests = complete test-step wall including prerequisite builds. Job wall includes setup and completion. REST timestamps have one-second resolution. Setup matches production Windows steps except pinned actions/checkout replaces CI's harness-owned checkout; no ordinary-CI setup speedup is claimed.

CPU count comes from [Environment]::ProcessorCount; RAM comes from CIM TotalPhysicalMemory. Runner names and the full resource records are in each linked job's Report delivered Windows resources step. Node's available parallelism agrees with 4/8 CPUs. Each class emitted 133 unique module receipts, all passed or intentionally skipped; all 62 Vitest project resource receipts resolve one worker. checks-windows explicitly sets OPENCLAW_VITEST_MAX_WORKERS=1, which takes precedence over detected-core sizing; there is no Linux-style resource configuration step for Windows. The next lever belongs to the planner's Windows resource profile and needs a separate native measurement. This PR does not silently raise worker concurrency.

Cost basis: Blacksmith's published price selector explicitly lists Windows 8 at $0.032/min, 16 at $0.064/min, and 32 at $0.128/min (the fetched page’s data-win values for each vCPU option). At unrounded job-wall minutes, excluding assignment wait, the pairs estimate $1.542 on 16 and $2.959 on 32. The billing conversion documentation also confirms proportional vCPU-minute consumption: 16:32 costs 1:2 per minute. Estimates are not billing receipts and exclude discounts, rounding and free credits. Advertised vCPUs determine nominal cost; delivered CPUs describe capacity. The prior 8-class pair totaled 209.20 units / $0.837 (759/810 seconds), versus 385.60 and 739.73 units here.

The experiment added four registrations once; the final production diff adds none and retains max-parallel: 2. The pooled rate-limit response reported a 20,000-registration bucket, but does not establish organization-wide usage. Production concurrency and backend variables were not changed.

Validation

Both Windows parts passed on both classes, exactly once. Initial and final P2 autoreview are scoped-clean. Actionlint, formatting, docs discovery and git diff --check passed; the experiment’s Workflow Sanity run passed. No full product suite or additional Windows attempt was run.

The existing routing guard was run once on macOS, using node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts --maxWorkers=1: 622 passed, 12 skipped, 3 failed, 1565.37s wrapper wall (1548.24s Vitest). Both modified cases passed: encodes GitHub, Blacksmith, and hybrid runner-backend shapes in 77ms and uses bundled Node shards and telemetry-backed runner sizes in 2687ms. No test was added, and CI duration for this guard on the final draft head is unavailable. Preserve these unresolved failures; do not call the full guard green:

  • ci-workflow-guards.test.ts:7348, resolves the pull request base and changed files from the shallow security checkout: the first git init --initial-branch=main hit the existing 5000ms child timeout (spawnSync git ETIMEDOUT). It never reached the security-checkout assertions.
  • ci-workflow-guards.test.ts:8013, preserves pnpm hard links and validates cached importers and supply-chain policy offline: hit the existing 120000ms test timeout (reported case wall 161984ms).
  • ci-workflow-guards.test.ts:12729, keeps the preflight manifest import closure dependency-free: its Node subprocess hit the existing 30000ms timeout; result.status was null instead of 0.

These fixture bodies and their owning workflow sections are unchanged by the label-only change. The deeper timeout causes remain unresolved; no timeout, assertion or fixture was weakened and no guard test was rerun. This draft is not ready to land over those failures.

The first changed-file check identified a concrete dependency mismatch: this branch pins acpx 0.18.0 but the previous worktree installation still had 0.17.1, whose RequestedModelUnsupportedError lacks the ambiguous field used by existing extensions/acpx/src/model-ref.ts:32. Frozen dependency reconciliation completed successfully and the root test typecheck then passed. The complete changed-file check then exited successfully, including root test types, all three export scans, scripts lint and changed-test lint; no package/lockfile version change is part of this PR.

The first Crabbox preparation was stopped before a remote lease/test command because local source discovery stalled. Task-owned disposable proof checkouts are gone. No new Linux-side measurement was executed; historical Linux evidence below was reused.

Earlier unresolved UI focus failure

Run 35540375501, job 106156965934, checks-ui-e2e (7/13), attempt 1, head cae1304239e77b3da5d992927dd1afdc6527f664: ui/src/e2e/session-owner-assignment.e2e.test.ts:484, Control UI session owner assignment mocked Gateway E2E > assigns a renamed teammate from a 1,000-person directory at width 1280.

Immediately after await search.press("ArrowDown"), await expectBrowser(match).toBeFocused() failed: expected focused; received inactive; timeout 5000 ms. The locator getByRole('menuitemradio', { name: 'Renamed teammate', exact: true }) resolved 14 times. The case took 6486 ms; its width-390 sibling passed in 1505 ms. The public diagnostic artifact contains failure.public.json.

Root cause remains unproven: the log establishes inactive focus after ArrowDown, not that focus was acquired and then stolen. A later corrected-head run passing the shard did not resolve this defect. No rerun or assertion change was made for this investigation.

Windows-contract narrowing proposal (no removals)

The proposal audits the initial branch inventory at 21f3d71a09d4: 133 targets (part 1: 50; part 2: 83), with no count drift. The later experiment merge keeps these same targets in the independently landed 75/58 partition; the Part column below records the audit snapshot, not the experiment placement. The assertion audit classifies 33 native Windows targets, 80 mixed/uncertain targets to retain, and 20 portable assertion targets worth considering for Linux-only routing in a separate change. Windows-policy tests under mocks remain valuable tests; a Windows filename does not by itself require an additional native execution. Nothing in this proposal changes the inventory.

The 20 candidates account for 12.972 cumulative test seconds out of 954.475s across both parts (1.36%). Their largest member is transform-cache invalidation at 8.464s. These are test-body seconds, not projected job-wall savings: the historical logs do not attribute import, transformation, runtime build, or per-project startup to individual targets. Runner/worker sizing remains the more promising immediate lever.

Timing provenance. The 16/32 columns use each experiment module’s native Vitest diagnostic duration: file test execution including hooks, excluding collection, setup and preparation. They are not whole-file process wall; skipped modules contribute zero. The 8-class column reports the median per-target sum of executed Vitest case durations over three successful main-push samples and one successful PR sample: runs 35526569333, 35518915535, 35512907828, and 35538213398. The logs use the 8-vCPU label. The errno target has 17 cases skipped on Windows and 0 executed test seconds; other 0.000 rows are sub-millisecond/rounded passing cases. No measurement was rerun.

Linux proof. Existing successful CI run 35538213398 supplies the job IDs and passing/skipped counts below; every listed job has a verified Ubuntu runner label. 132 targets appear there: 102 execute passing cases and 30 are entirely skipped. The Docker packaging E2E target is not observed in those Node logs and stays retained. The executed checkout was merge 44c1ff20c728e0daf135876c05fd95ac4b72e4d6 (head 9b3bcf5deaa613bbf96649bea045a93dfd5188e2, base 6b1495903b2105050844c4ed36ad99763b84c911). All 20 candidate test blobs exactly match both that run's head/base and current source. Owners changed since the proof for exec.windows, vitest-worker-artifacts.transforms, and refresh-watch-path; any future routing change needs fresh owner-contract confirmation. The table records historical evidence, not a claim that current head was tested.

Classes: W = native Windows contract; M = mixed or uncertain, retain whole target; C = portable assertions already observed passing on Linux, future routing candidate. P/S = executed passing/skipped cases in the referenced Linux job. Large retained suites were conservatively classified from concrete native assertions and targeted owner inspection, not approved for deletion.

All 133 targets, Windows test seconds, classification and Linux evidence
Audit part Target 8-class case median s 16-class file tests s 32-class file tests s Class Linux P/S Linux job
1 extensions/acpx/src/runtime-argv.process.test.ts 10.799 10.700 10.513 M 8/0 106151136356
1 src/state/openclaw-state-ownership.test.ts 5.510 5.835 5.733 M 29/0 106151136302
1 src/snapshot/local-repository.windows.test.ts 1.625 1.701 1.588 W 0/2 106151136092
1 src/state/openclaw-database-paths.windows.test.ts 5.222 5.503 5.427 W 0/4 106151136099
1 src/infra/update-candidate-state.namespaced-paths.test.ts 10.153 10.758 9.764 W 0/5 106151136201
1 src/infra/update-candidate-state.budget.test.ts 14.210 14.291 13.936 M 17/0 106151136279
1 src/infra/update-candidate-state.cleanup.test.ts 20.135 19.280 18.173 M 26/0 106151136212
1 src/infra/update-candidate-state.online-backup.process.test.ts 3.616 3.300 3.221 M 2/0 106151136279
1 src/node-host/invoke-system-run-allowlist.test.ts 0.041 0.039 0.044 M 8/1 106151136099
1 src/node-host/invoke-agent-cli-claude.test.ts 4.192 3.890 3.513 M 41/0 106151136264
1 src/node-host/node-worker-transfer-client.test.ts 1.377 1.367 1.320 M 11/1 106151136264
1 packages/terminal-core/src/display-string.test.ts 0.009 0.010 0.012 M 6/1 106151136309
1 src/config/sessions/session-accessor.sqlite-archive.worker.test.ts 19.215 14.989 14.058 M 21/0 106151136131
1 src/commands/doctor-gateway-auth-token.windows.test.ts 0.001 0.004 0.003 C 1/0 106151136182
1 src/commands/doctor-lint.state-isolation.test.ts 35.505 43.014 29.887 M 20/0 106151136251
1 src/flows/doctor-health-contributions.windows-cloud-state.test.ts 3.381 3.294 2.980 W 0/10 106151136094
1 src/infra/state-migrations.audit-logs.windows.test.ts 0.814 0.757 0.606 W 0/1 106151136185
1 src/commands/backup-verify.test.ts 0.787 1.210 0.812 M 72/1 106151136182
1 src/commands/agents.commands.list.test.ts 0.087 0.101 0.083 M 14/1 106151136297
1 src/gateway/gateway-cron-process-identity.windows.test.ts 7.364 7.806 6.494 W 0/1 106151136250
1 src/shared/runtime-import.test.ts 0.000 0.001 0.002 C 5/0 106151136212
1 src/shared/worker-bundle-archive.test.ts 3.008 2.587 2.593 M 14/0 106151136212
1 src/node-host/node-worker-bundle-installer.test.ts 1.276 1.044 0.770 M 27/0 106151136092
1 test/scripts/check-openclaw-package-tarball.test.ts 47.908 50.124 48.983 M 102/0 106151138642
1 test/scripts/direct-run-entrypoints.test.ts 15.339 15.621 15.568 M 47/1 106151138631
1 test/scripts/format-generated-module.test.ts 0.004 0.004 0.003 C 3/0 106151137967
1 test/scripts/openclaw-cross-os-installer.windows.test.ts 1.455 1.409 1.405 M 1/1 106151137965
1 test/scripts/openclaw-cross-os-release-workflow.test.ts 1.357 1.279 1.083 M 20/0 106151138653
1 test/scripts/pnpm-runner.test.ts 0.351 0.353 0.352 M 31/0 106151137977
1 extensions/canvas/scripts/pnpm-runner.test.ts 0.243 0.264 0.245 M 7/2 106151137917
1 test/scripts/run-with-env.test.ts 0.282 0.284 0.276 C 15/0 106151138843
1 test/scripts/ui.test.ts 2.552 2.618 2.472 M 31/0 106151138748
1 test/helpers/temp-dir.test.ts 0.016 0.018 0.015 M 9/1 106151138886
1 test/scripts/vitest-process-cache.test.ts 0.351 0.355 0.352 M 3/1 106151139584
1 test/scripts/vitest-process-group.test.ts 0.016 0.020 0.019 C 38/0 106151138886
1 test/scripts/vitest-worker-artifacts.test.ts 203.893 120.690 117.095 M 35/0 106151137927
1 src/agents/tools/media-tool-file-url.windows.test.ts 0.692 0.620 0.595 W 0/1 106151136251
1 extensions/memory-core/src/memory-extra-file-path.windows.test.ts 0.022 0.024 0.022 W 0/3 106151138002
1 src/daemon/schtasks-state-probe.windows.test.ts 0.825 0.604 0.536 W 0/1 106151136092
1 src/daemon/schtasks.startup-fallback.test.ts 2.206 1.959 1.956 M 87/0 106151136277
1 src/daemon/schtasks.env-case.real.test.ts 3.682 3.099 3.263 W 1/5 106151136277
1 src/plugin-sdk/node-host.test.ts 0.385 0.314 0.266 M 1/12 106151136297
1 test/e2e/qa-lab/runtime/package-openclaw-for-docker.e2e.test.ts 16.190 17.296 15.144 M not observed —
1 extensions/lobster/src/lobster-runner.test.ts 0.331 0.353 0.331 C 27/0 106151137889
1 src/gateway/worker-environments/workspace-quiescence.windows.test.ts 0.517 0.507 0.432 W 0/2 106151136302
1 src/infra/git-exec.test.ts 1.107 1.157 1.029 M 65/1 106151136182
1 src/agents/worktrees/git.test.ts 4.233 3.594 3.544 M 24/1 106151136264
1 src/agents/worktrees/filesystem-refs.test.ts 0.011 0.009 0.009 W 0/1 106151136163
1 src/gateway/worker-environments/workspace-result-ref-mutation.test.ts 8.514 8.444 7.884 M 3/0 106151136094
1 extensions/memory-wiki/src/obsidian.discovery.test.ts 0.094 0.105 0.093 M 8/1 106151137987
2 src/infra/sqlite-private-directory.windows.test.ts 1.048 0.727 0.685 W 0/4 106151136185
2 src/cli/update-cli/restart-helper.windows.test.ts 1.312 1.224 1.209 W 1/4 106151136167
2 src/skills/runtime/refresh.windows.test.ts 0.044 0.041 0.036 M 4/1 106151136302
2 src/skills/runtime/refresh-watch-path.test.ts 0.006 0.006 0.007 C 5/0 106151136092
2 src/skills/runtime/refresh-watch-close.test.ts 0.003 0.004 0.004 M 3/0 106151136264
2 src/skills/runtime/refresh.missing-root.integration.test.ts 7.655 5.151 5.025 M 11/0 106151136094
2 src/infra/sqlite-snapshot.test.ts 0.956 0.927 0.782 M 39/2 106151136278
2 src/infra/sqlite-snapshot-staging.cancellation.test.ts 7.205 6.529 6.410 M 3/0 106151136277
2 src/infra/ports.test.ts† 0.375 0.418 0.332 M 61/1 106151136279
2 src/infra/diagnostic-process-siblings.env.test.ts 0.639 0.679 0.600 M 9/0 106151136201
2 src/infra/windows-diagnostic-env.test.ts 1.366 1.421 1.484 M 5/0 106151136182
2 src/infra/windows-encoding.test.ts 0.211 0.181 0.177 C 26/0 106151136182
2 src/infra/windows-process-start.test.ts 0.391 0.379 0.385 C 30/0 106151136182
2 src/infra/windows-process-start.native.test.ts 0.313 0.309 0.277 W 1/1 106151136182
2 src/shared/pid-alive.env.test.ts 0.040 0.034 0.037 C 1/0 106151136212
2 src/infra/advertised-lan-host.windows.test.ts 0.270 0.262 0.235 W 0/1 106151136115
2 src/infra/update-managed-service-handoff-database-publication.test.ts 5.949 4.148 4.107 M 22/0 106151136279
2 src/infra/update-managed-service-handoff-command.test.ts 1.289 1.403 1.397 M 13/0 106151136170
2 src/infra/update-managed-service-handoff-lifecycle.test.ts 0.741 0.637 0.604 M 47/0 106151136090
2 src/infra/executable-path.test.ts 0.278 0.269 0.238 M 34/2 106151136185
2 src/agents/cli-executable-identity.test.ts 2.461 2.825 2.214 M 10/9 106151136236
2 src/plugin-sdk/windows-spawn.test.ts 0.302 0.390 0.346 M 12/1 106151136297
2 src/gateway/control-ui-asset-retention.publication.test.ts 0.925 1.024 0.831 M 29/0 106151136099
2 src/infra/fs-safe-pinned-write-errno.test.ts 0.000 0.000 0.000 C 17/0 106151136380
2 src/config/io.write-effects.windows.test.ts 2.021 1.795 1.768 W 0/5 106151136102
2 src/infra/fs-safe.test.ts 0.160 0.153 0.144 M 37/0 106151136182
2 src/plugin-sdk/fs-safe-compat.test.ts 0.026 0.029 0.032 M 4/0 106151136297
2 src/infra/fs-safe-remove.test.ts 0.834 0.820 0.767 M 13/1 106151136182
2 src/infra/state-migrations.legacy-session-store.test.ts† 0.046 0.057 0.060 M 7/0 106151136185
2 src/infra/windows-install-roots.test.ts 0.101 0.094 0.095 C 9/0 106151136182
2 src/infra/ssh-client.windows.test.ts 0.058 0.063 0.054 W 0/1 106151136380
2 src/infra/exec-allowlist-pattern.test.ts 0.001 0.002 0.002 M 11/3 106151136380
2 src/infra/process-env.test.ts 0.000 0.001 0.001 C 10/0 106151136380
2 src/infra/openclaw-cli-shim.windows.test.ts 1.271 1.205 1.196 W 0/5 106151136115
2 src/agents/sessions/windows-git-bash-path.test.ts 0.067 0.059 0.089 W 0/2 106151136380
2 test/scripts/npm-runner.test.ts 0.001 0.002 0.002 C 9/0 106151136092
2 test/scripts/ts-topology.test.ts 1.026 1.001 0.876 M 8/0 106151136092
2 test/scripts/vitest-worker-artifacts.transforms.test.ts 8.464 7.923 7.831 C 2/0 106151137976
2 test/scripts/ci-platform-checkout.test.ts 41.107 26.893 27.218 M 74/0 106151137992
2 test/scripts/install-ps1.test.ts 17.186 37.397 38.584 M 72/2 106151138886
2 test/scripts/write-plugin-sdk-entry-dts.test.ts 77.328 60.011 59.931 M 12/0 106151137992
2 test/scripts/write-unified-entry-dts.test.ts 65.910 54.880 55.155 M 11/0 106151139558
2 test/scripts/tsdown-declaration-resolution.test.ts 78.950 73.396 70.540 M 16/4 106151138653
2 src/test-utils/openclaw-test-state.test.ts 1.470 1.639 1.553 M 32/0 106151136380
2 test/helpers/openclaw-test-instance.test.ts 25.199 24.602 24.345 M 75/0 106151137965
2 test/scripts/managed-child-process.windows.test.ts 0.403 0.387 0.435 W 0/3 106151137968
2 test/scripts/managed-windows-job.test.ts 0.001 0.001 0.001 C 1/0 106151138631
2 src/agents/mcp-stdio-transport.windows.test.ts 0.125 0.109 0.113 W 0/1 106151136380
2 test/scripts/worker-deploy-build-plugin.test.ts 13.569 34.610 33.590 M 17/0 106151139611
2 src/process/owned-stdio.real.test.ts 0.397 0.389 0.357 M 1/2 106151136092
2 src/process/owned-stdio.windows.test.ts 1.189 1.100 1.203 C 33/0 106151136315
2 test/scripts/managed-child-process.output.test.ts 2.672 2.673 2.680 M 1/0 106151139558
2 src/utils.test.ts 0.012 0.018 0.017 M 41/3 106151136272
2 src/media/local-media-path.windows.test.ts 0.171 0.157 0.149 W 0/4 106151136252
2 src/media/web-media.file-url.windows.test.ts 0.011 0.015 0.011 W 0/5 106151136252
2 src/process/exec.windows.test.ts 1.767 1.888 1.418 C 41/0 106151136315
2 src/process/exec.windows.integration.test.ts 91.227 137.497 129.247 W 0/4 106151136315
2 src/agents/sessions/exec.real.test.ts 6.089 6.065 6.062 M 1/0 106151136252
2 src/process/windows-command.test.ts 6.403 6.314 6.363 M 13/53 106151136315
2 src/process/terminal-pty.test.ts 0.038 0.039 0.039 M 17/5 106151136315
2 src/process/supervisor/supervisor.anchored-shell.real.test.ts 3.391 3.440 3.215 M 12/1 106151136315
2 src/tui/tui.resolve-codex-bin.test.ts 0.125 0.160 0.145 C 5/0 106151136252
2 src/media-understanding/attachments.file-url.windows.test.ts 0.030 0.027 0.029 W 0/5 106151136252
2 src/cli/completion-runtime.windows.test.ts 1.532 1.523 1.542 W 0/4 106151136167
2 src/cli/runtime-cleanup-scope.windows.process.test.ts 2.222 2.312 2.050 W 0/5 106151137909
2 src/cli/daemon-cli/status.print.test.ts 0.181 0.160 0.167 M 54/1 106151136167
2 src/cli/mcp-cli.path-case.windows.test.ts 1.757 1.681 1.519 W 0/1 106151136251
2 src/auto-reply/usage-bar/template.windows.test.ts 0.006 0.008 0.007 W 0/1 106151136122
2 src/auto-reply/reply.triggers.trigger-handling.stages-inbound-media-into-sandbox-workspace.test.ts 1.346 1.534 1.221 M 24/0 106151136122
2 src/agents/provider-local-service.env-case.test.ts 2.372 2.353 2.352 W 1/1 106151136236
2 src/agents/bash-tools.exec.script-preflight.test.ts 0.250 0.178 0.160 M 69/4 106151136099
2 src/agents/agent-tools.read.windows.test.ts 0.205 0.198 0.206 W 0/2 106151136099
2 src/agents/agent-tools.read.host-operations.test.ts 0.023 0.024 0.026 M 11/1 106151136099
2 src/agents/apply-patch.test.ts 0.211 0.214 0.191 M 52/0 106151136099
2 src/agents/sandbox/fs-paths.test.ts 0.116 0.030 0.029 M 17/3 106151136264
2 src/agents/sessions/tools/render-utils.test.ts 0.015 0.019 0.013 M 14/1 106151136264
2 src/agents/sessions/tools/path-utils.test.ts 0.014 0.016 0.018 M 12/1 106151136252
2 extensions/msteams/src/media-helpers.test.ts 0.046 0.039 0.042 C 45/0 106151136249
2 extensions/msteams/src/messenger.test.ts 0.176 0.145 0.140 M 49/0 106151136249
2 extensions/mxc/test/mxc-backend.test.ts 0.273 0.249 0.330 M 1/48 106151137991
2 extensions/mxc/test/fs-bridge.test.ts 0.200 0.158 0.174 M 8/0 106151137971
2 extensions/mxc/test/path-comparison.test.ts 0.002 0.003 0.004 W 0/2 106151137917
2 extensions/mxc/test/sandbox-policy-loader.test.ts 0.034 0.026 0.032 M 0/8 106151137917

† ports and state-migrations.legacy-session-store test source changed since the cited Linux run; both remain retained.

Why the 20 portable-assertion targets are candidates
Target Windows s Assertion/owner rationale
test/scripts/vitest-worker-artifacts.transforms.test.ts 8.464 The complete two-layout sequence asserts Vitest filesystem-transform cache invalidation and compiled/source declaration selection using a controlled two-input/two-output fixture compiler. It has no Windows-only case or assertion: observed values, transform counts, cache metadata, fresh generation identities, and joined removal are host-independent; native path comparisons use path.join/normalize/fileURLToPath. The cited Linux job executes both layouts; the owner changed after that run and needs fresh confirmation before narrowing. This is a Windows-routing proposal, not a recommendation to delete the test.
src/process/exec.windows.test.ts 1.767 Every execution case uses withMockedWindowsPlatform and mocks Execa, executable resolution, and spawnSync code-page probes. Tests validate argv, output decoding, timeout ordering and cleanup policy from synthetic events/bytes, not native Windows behavior. Candidate for Linux-only execution after confirming its full Linux result; keep exec.windows.integration.test.ts.
src/process/owned-stdio.windows.test.ts 1.189 Windows behavior is selected by replacing process.platform; spawn, koffi, native Job bindings, launcher availability and child events are fixtures. Assertions protect admission/cleanup policy and event ordering without calling Win32. Candidate for Linux-only execution after confirming its full Linux result; retain native owned-stdio.real.test.ts.
src/infra/windows-process-start.test.ts 0.391 Koffi, kernel functions and PowerShell/WMIC responses are mocked; explicit Windows globals cover the native branch on Linux. Keep the .native sibling for kernel proof.
extensions/lobster/src/lobster-runner.test.ts 0.331 No Windows-specific case, platform-only gate, command-shell invocation, or native Windows assertion. Tests protect request/envelope translation, workflow path detection, output bounds, approval forwarding, timeout abort, and bare package import. Real temporary files and paths with spaces exercise ordinary filesystem behavior. The cited Linux job executes all 27 assertions. Preserve the test; only duplicate platform routing is a candidate.
test/scripts/run-with-env.test.ts 0.282 Windows command-name decisions are explicitly injected pure logic. All real signal/descendant lifecycle cases are gated away from win32; the cases that run on Windows otherwise cover CLI help, argument validation and force-kill option parsing before child launch. No uniquely native Windows assertion remains in this target.
src/infra/windows-encoding.test.ts 0.211 Encoding probes and OEM registry responses are mocked; assertions cover deterministic buffers, code-page mapping and explicit platform behavior. Native root lookup is incidental, not asserted.
src/tui/tui.resolve-codex-bin.test.ts 0.125 All OS branches are selected with withMockedPlatform/withMockedWindowsPlatform. Windows fixtures are ordinary host files named .cmd/.exe or extensionless; the test never executes them or cmd.exe. Assertions cover selection and constructed argv/options, and all five cases are observed passing on Linux.
src/infra/windows-install-roots.test.ts 0.101 Registry execution is mocked; assertions cover explicit Windows path normalization, trusted root selection, environment fallback and cache lifecycle using path.win32.
extensions/msteams/src/media-helpers.test.ts 0.046 All cases are lexical URL/path/MIME/message-ID transformations. The Windows drive, UNC, and rooted-path assertions exercise regular expressions and string prefixes in isLocalPath; no Windows filesystem, process, native separator result, or platform gate is used. This is a routing candidate only, subject to independently verified Linux coverage.
src/shared/pid-alive.env.test.ts 0.040 The only test forces process.platform to darwin, intercepts ps execution, and launches the host Node binary solely to report diagnostic environment values. No Windows-specific process API, path alias, filesystem error, or shell is asserted; existing Linux output confirms the case passes.
test/scripts/vitest-process-group.test.ts 0.016 All process and platform behavior is injected: EventEmitter child, mocked kill/process listeners, mocked /proc filesystem and fake timers. Windows completion logic is tested with platform:win32 against the same fake child on any OS; no real Windows process or Job is used.
src/skills/runtime/refresh-watch-path.test.ts 0.006 Pure string/path normalization contract with no native filesystem or watcher assertions. On non-Windows the test explicitly injects path.win32.parse, and the POSIX case injects path.posix.parse on Windows, so the same OS-specific lexical semantics are available on Linux. The cited Linux job executes all five assertions; the owner changed after that run and needs fresh confirmation before narrowing.
test/scripts/format-generated-module.test.ts 0.004 All three cases inject spawnSync and assert portable bounded-execution options, output-tail truncation and UTF-8 safety. They never run the formatter or a Windows command parser; temporary file I/O has no Windows-specific assertion. Preserve these contracts on the observed Linux route.
src/commands/doctor-gateway-auth-token.windows.test.ts 0.001 Single case completely mocks the canonical token resolver and checks portable diagnostic forwarding/redaction. Windows path and ACL recovery are string fixtures; it invokes no native ACL, process, path or filesystem assertion. Preserve the test but consider routing this target only through verified Linux coverage.
test/scripts/npm-runner.test.ts 0.001 Every case injects platform, executable path, environment and existsSync. Windows npm.exe/npm.cmd selection, caret escaping and fail-closed policy are returned-data assertions with no subprocess or native filesystem access. They can provide the identical contract on Linux.
test/scripts/managed-windows-job.test.ts 0.001 The sole test proves Windows-oriented JavaScript policy with process.platform overridden to win32. child_process.spawn, node:module/createRequire and createWindowsJobBindings are all mocked; it creates no OS Job or native process. Input copying and case-insensitive NODE_OPTIONS filtering can be asserted identically on Linux. The cited Linux job executes the same assertion; preserve the test itself.
src/shared/runtime-import.test.ts 0.000 All five cases are deterministic Windows/Linux import-specifier logic. They mock process.platform and inject a recording importer; none opens a native Windows path or invokes its loader. The cited Linux job executes all five assertions. This is routing-only eligibility, not a claim the contract is low value.
src/infra/fs-safe-pinned-write-errno.test.ts 0.000 Entire describe is skipIf(win32), because Windows fallback does not invoke the injected dependency fault hook. Windows target supplies collection/startup only.
src/infra/process-env.test.ts 0.000 All tests pass explicit platform plus plain env objects; no native process launch or implicit host path semantics.

The mocked process suites were intentionally added to Windows CI. Native sibling coverage remains required: actual Windows Job lifetime/stdio cleanup, command and PTY argv preservation, PowerShell/kernel PID probes, Windows ACL/path behavior, compiler aliases, SQLite publication/locking, and worker-artifact execution. A later narrowing change must preserve those contracts and obtain its own review; this PR proposes no removals.

@clawsweeper

clawsweeper Bot commented Sep 20, 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 size: S maintainer Maintainer-authored PR labels Sep 20, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 20, 2026
@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 20, 2026, 9:06 PM ET / September 21, 2026, 01:06 UTC (Revision 3).

ClawSweeper review

What this changes

Selects the measured 16-vCPU Blacksmith class for both Windows CI partitions and updates runner documentation and existing routing assertions.

Merge readiness

⛔ Blocked before merge - 2 items remain

The runner selection remains useful: current main and the latest release still request the 8-class. No introduced correctness defect was found, and native measurements support the proposed allocation. The maintainer-authored draft remains explicitly on hold.

Priority: P3
Reviewed head: b26af0c735d2fa5180af06dacf2c4ea4d5918a90

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct allocation change with strong native measurements; the separately recorded guard failures remain a validation blocker.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The native experiment exercised both production Windows test commands on the selected 16-class and comparison 32-class, with successful jobs and recorded timings. This proves the runner allocation can execute the workload; it does not claim identical production checkout timing or a controlled improvement over 8-class.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The native experiment exercised both production Windows test commands on the selected 16-class and comparison 32-class, with successful jobs and recorded timings. This proves the runner allocation can execute the workload; it does not claim identical production checkout timing or a controlled improvement over 8-class.
Evidence reviewed 7 items Introduced production change: The pinned merge-base-to-head diff changes only the Windows Blacksmith label in the workflow. Trust predicates, hosted fallback, permissions, timeout, worker ceiling, and matrix concurrency remain unchanged; documentation and two existing assertions follow the new selection.
Current-main necessity: The fetched main revision still selects blacksmith-8vcpu-windows-2025. Local access to missing historical blobs failed, so the exact revision was inspected through GitHub’s contents API.
Latest release comparison: The supplied latest release, v2026.9.5, also selects the 8-class; the requested runner selection is not present there.
Findings None None.
Security None None.

How this fits together

Windows CI runs OpenClaw’s selected platform tests after preflight chooses the job matrix. Runner routing selects Blacksmith or hosted Windows capacity, and the two partitions return validation results to CI.

flowchart TD
  A[CI event and backend setting] --> B[Preflight Windows selection]
  B --> C[Runner routing]
  C --> D[Blacksmith 16 class]
  C --> E[Hosted Windows fallback]
  D --> F[Two serial test partitions]
  E --> F
  F --> G[CI results]
Loading

Before merge

  • Resolve merge risk (P1) - The three recorded workflow-guard timeouts remain undiagnosed. Before landing, resolve their causes or cite an owning fix in flight under repository policy; passing the two modified cases does not clear those failures.
  • Complete next step (P2) - Keep this PR unmerged until the author explicitly lifts the recorded hold.
Agent review details

Security

None.

PR surface

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

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 2 2 0
Docs 2 28 10 +18
Config 1 1 1 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 31 13 +18

Review metrics

Metric Value Why it matters
Measured runner tradeoff 16-class tail 729s; 32-class tail 713s The larger alternative saved 16 seconds while consuming 91.8% more nominal requested-vCPU minutes in the paired experiment.
Concurrency and worker limits 2 concurrent jobs; 1 worker per project; 0 additional registrations The allocation changes without increasing production fanout or worker concurrency.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep runner sizing in the existing workflow owner, preserving native coverage, hosted fallbacks, and concurrency limits while retaining the documented timing and cost tradeoff.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep runner sizing in the existing workflow owner, preserving native coverage, hosted fallbacks, and concurrency limits while retaining the documented timing and cost tradeoff.

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

Not applicable as a product bug: this is runner-capacity tuning, supported by four completed native Windows jobs and recorded timings.

Is this the best way to solve the issue?

Yes: changing the existing runner expression is a narrow solution, and the measured 16-versus-32 comparison supports the selected compromise; the historical 8-class comparison does not establish a controlled speedup.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5941d999dc72.

Labels

Label justifications:

  • P3: This is bounded internal CI performance tuning with no product behavior change or demonstrated 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 native experiment exercised both production Windows test commands on the selected 16-class and comparison 32-class, with successful jobs and recorded timings. This proves the runner allocation can execute the workload; it does not claim identical production checkout timing or a controlled improvement over 8-class.
  • proof: sufficient: Contributor real behavior proof is sufficient. The native experiment exercised both production Windows test commands on the selected 16-class and comparison 32-class, with successful jobs and recorded timings. This proves the runner allocation can execute the workload; it does not claim identical production checkout timing or a controlled improvement over 8-class.

Evidence

What I checked:

  • Introduced production change: The pinned merge-base-to-head diff changes only the Windows Blacksmith label in the workflow. Trust predicates, hosted fallback, permissions, timeout, worker ceiling, and matrix concurrency remain unchanged; documentation and two existing assertions follow the new selection. (.github/workflows/ci.yml:4706, b26af0c735d2)
  • Current-main necessity: The fetched main revision still selects blacksmith-8vcpu-windows-2025. Local access to missing historical blobs failed, so the exact revision was inspected through GitHub’s contents API. (.github/workflows/ci.yml:4703, 5941d999dc72)
  • Latest release comparison: The supplied latest release, v2026.9.5, also selects the 8-class; the requested runner selection is not present there. (.github/workflows/ci.yml:4682, ec9c1a13db89)
  • Native runner experiment: GitHub confirms all four jobs in https://github.com/openclaw/openclaw/actions/runs/35545416856 succeeded on attempt 1. The 16-class partitions took 717/729 seconds, including 613/626 seconds in their test steps; the 32-class partitions took 674/713 seconds. The inspected experiment invokes the production Windows commands with unchanged one-worker and serial-project limits. Its standalone checkout differs from production checkout, as the body explicitly discloses. Direct log retrieval was blocked by the artifact-host allowlist; job metadata and supplied observations remain available. (88616ccb52e9)
  • Captured discussion and validation limits: The retrieved body matches captured SHA-256 21c948101ea332c3fa3c42df32a8c1543c70e938e0462a323a2ee4670be1eeb2. Inspection beyond the supplied prefix confirms the explicit do-not-merge instruction and unresolved guard results: 622 passed, 12 skipped, three timeouts. Both modified cases passed, and the changed-file check passed after dependency reconciliation. The author selects 16 while acknowledging its higher nominal cost than the historical 8-class result and the uncontrolled nature of that comparison. (b26af0c735d2)
  • Related merged work and routing history: GitHub verifies ci: shorten Windows jobs by sharing project setup #154107 merged as b73d0e4. It regrouped the Windows partitions while retaining the runner class, so it does not supersede this selection. Current-main documentation history identifies Peter Steinberger as a recent contributor to this area, supporting steipete as a routing candidate independently of this proposal. Public docs: docs/ci/runners.md. (docs/ci/runners.md, b73d0e4541ef)

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.

  • Diagnose the three workflow-guard timeouts and record their fixes or the owning fix in flight without weakening assertions or extending timeouts.

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-20T23:46:46.234Z sha 88616cc :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-20T23:55:09.984Z sha 88616cc :: needs changes before merge. :: none

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 20, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS and removed size: S labels Sep 21, 2026
@steipete steipete changed the title ci: compare larger Windows runner classes ci: shorten Windows checks with the measured 16-vCPU class Sep 21, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 21, 2026
@steipete steipete closed this Sep 21, 2026
@RomneyDa
RomneyDa deleted the ci-burden/w1-windows-class branch October 22, 2026 00:11
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