Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 12:48 PM ET / 16:48 UTC. ClawSweeper reviewWhat this changesThe PR runs up to two selected Vitest projects concurrently on self-hosted Windows CI, keeps hosted fallbacks serial, and rebalances the two existing Windows test inventories using selection-aware costs. Merge readinessKeep open for maintainer review. The branch is not on current main, its scheduling and cleanup path is coherently bounded, and no introduced correctness defect was found; native self-hosted Windows evidence remains necessary before landing the concurrency increase. Priority: P3 Review scores
Verification
How this fits togetherThe Windows CI job dispatches two explicit test inventories to the project runner. The runner prepares shared runtime artifacts, orders selected projects by observed or estimated cost, then runs them under the workflow’s process and Vitest-worker limits. flowchart LR
A[Windows CI matrix] --> B[Runner environment]
B --> C[Two test inventories]
C --> D[Shared runtime preparation]
D --> E[Cost-aware project ordering]
E --> F[Bounded Vitest processes]
F --> G[Joined cleanup and results]
Decision needed
Why: Source and simulated workflow coverage establish the intended limits, but they cannot establish actual Windows runner allocation or concurrent fixture behavior. Before merge
Agent review detailsSecurityNone. PR surfaceTests +98, Docs +5, Config +8, Other +27. Total +138 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: After the parent stack is reconciled with main, retain the bounded self-hosted-only concurrency design and attach redacted native Windows receipts demonstrating actual classification, two-project execution, resource state, and cleanup. Do we have a high-confidence way to reproduce the issue? Not applicable: this is an internal CI scheduling change, not a reported product bug. The relevant validation is an exact-head native Windows workflow run rather than a user reproduction. Is this the best way to solve the issue? Yes, conditionally: selection-aware ordering plus a self-hosted-only process cap reuses the existing runner and cleanup owners; native Windows evidence is still needed to validate the performance and capacity premise. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d01486f283cc. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Implemented through #134038, merged as 4ee565c6d2a, including complete Windows inventory with cost-aware project admission. The integration preserves the connected main changes and removes the superseded duplicate paths. Exact-head CI33434384581 completed successfully with all applicable Testboxes green. Both Windows jobs, all 16 UI jobs and the macOS Node job passed. The integration PR records the focused source-owner and regression proof, including the Windows readiness repair and trusted-wrapper merge checks. This source PR is superseded by that verified landing. |
What Problem This Solves
The two Windows test jobs have uneven project costs and execute selected projects one at a time. Whole-config weights also misprice small selections, leaving the longer job on CI's critical path.
Why This Change Was Made
Use the existing project concurrency of two on self-hosted Windows runners, while retaining one on the hosted fallback and one Vitest worker per project. Rebalance three complete files between the existing two jobs. Runtime preparation stays ahead of every reader, and the runner still joins admitted work before cleanup.
Selected projects use their recorded selection duration when available, otherwise the existing per-file estimates. Whole-config and glob selections retain their existing weights and ordering. Timing keys and file estimates move into one dependency-free metadata owner, so the preflight planner does not acquire persistence or runtime imports.
User Impact
The same 80 Windows files run in the same two jobs, with 32/48 files and 14/15 project invocations. There are no new jobs, configuration options, dependencies, deadlines or matrix concurrency limits. A Node resource receipt records OS-visible CPUs, affinity parallelism and memory; requested runner labels alone do not establish actual resource allocation.
Evidence
node --import ./scripts/tsx.mjs scripts/test-projects.mts test/scripts/test-projects.test.ts test/scripts/vitest-shard-timings.test.ts test/scripts/ci-node-test-plan.test.ts test/scripts/ci-workflow-guards.test.ts test/scripts/test-projects-build-admission.test.ts test/package-scripts.test.ts: 725 passed, two existing skips. Null/empty selection regression fails before its repair.Runtime production is unchanged. Tooling scripts +165/-138 (net +27), workflow +8/-0, package scripts +2/-2, tests +99/-1, docs/skill +6/-1. The small tooling growth provides selection-aware ordering while sharing the existing timing facts without a heavyweight import closure.
This PR is stacked on #134096, which accounts for measured build/runtime costs and partitions the complete plugin catch-all. The projected Windows project phases are about 174/177 seconds on the retained timing sample; these are scheduling estimates, not native candidate measurements. Native Windows elapsed time and memory receipts remain required before landing. Whole CI below five minutes is not yet proven.