Repository navigation
fix(ci): run Windows checks for declared native test changes - #133208
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 5:07 AM ET / 09:07 UTC. ClawSweeper reviewWhat this changesThis PR derives Windows CI test-change routing from the two declared Windows test scripts, removes a duplicated test whitelist, and adds documentation and regression coverage. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep this focused maintainer-authored repair open for normal landing review. The introduced change makes the package scripts that the Windows matrix already executes the single source of truth for test-only routing; no correctness or security defect was found, but exact-head CI is still incomplete. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s changed-scope script maps pull-request file paths to CI jobs. The Windows package scripts declare the test inventory, and the selector determines whether the existing two-part Windows lane runs. flowchart LR
A[Pull request file paths] --> B[Changed-scope selector]
C[Windows package-script inventory] --> B
B --> D{Windows coverage needed?}
D -->|Yes| E[Two Windows CI jobs]
D -->|No| F[Other selected CI jobs]
Decision needed
Why: The item has a protected maintainer label and incomplete exact-head checks, so final landing remains an explicit maintainer action. Before merge
Agent review detailsSecurityNone. PR surfaceTests +36, Docs 0, Other -1. Total +35 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the package scripts as the canonical Windows test inventory while preserving the existing explicit owner routing for paths outside that inventory. Do we have a high-confidence way to reproduce the issue? Yes. The linked report provides a plain-Node selector scenario, and the pre-change source shows that its separate whitelist excludes declared test paths such as the integration test named in the report. Is this the best way to solve the issue? Yes. Reading the existing Windows job and its two package scripts shows this removes the duplicate inventory at the owner boundary rather than expanding Windows coverage policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3483c892e22e. 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
|
|
Exact-head CI 33302959177 completed successfully on The stored-data note is not applicable: this diff changes the plain-Node CI selector, two test files, and CI documentation; it does not change vector metadata, runtime persistence, or a database schema. Native Windows jobs were intentionally unselected for this tooling-only change under the existing workflow policy. The changed selector is covered through the actual zero-install CLI, the independent 74-target inventory regression, and the 659-path before/after routing audit; no workflow or runner policy was changed or forced. The canonical owner remains the two existing package scripts. All previously selected owner routes are preserved; only the 17 declared test targets missing from the old whitelist become selected. Local gates, autoreview, separate exact-commit review, and independent source/hash verification are complete with no actionable findings. Proceeding through the normal native landing flow; #126874 remains separate and open. |
|
Merged via squash.
|
Closes #133207
What Problem This Solves
Resolves a problem where changing a test already scheduled in Windows CI could leave the native Windows jobs skipped. The same argv assertions passed a test-only PR when placed in
exec.windows.integration.test.ts, then exposed seven failures on native Windows when moved towindows-command.test.ts.Why This Change Was Made
The execution lists and routing whitelist had drifted: 17 of the 74 declared Windows test files did not select their own native lane. Derive test membership from the existing two package scripts, remove the obsolete test whitelist, and collapse duplicated owner checks while retaining existing runtime-owner routing.
The integration-test omission dates to #105274: raw-parent comparison confirms the test and Windows execution-list entry were added without the matching selector change. This repair keeps the existing inventory, two-job matrix, runner limits, optional-lane policy, and unrelated-test exclusions unchanged. It does not expand the separate coverage-envelope discussion in #126874.
User Impact
Test-only changes to declared Windows CI targets now exercise the Windows lane. No OpenClaw runtime, configuration, protocol, dependency, or persistence change.
Evidence
OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs test/package-scripts.test.ts src/scripts/ci-changed-scope.test.ts src/scripts/ci-changed-scope.windows.test.ts.git diff --checkpass.a207b6e81e81219bfbfbd67fc65e8b78fe83fbec. The complete changed-check gate passed, including core/root test typechecks, core/scripts lint, policy guards, and three dead-export scans.