Skip to content

fix(ci): run Windows checks for declared native test changes - #133208

Merged
steipete merged 1 commit into
mainfrom
codex/qa-20260830-windows-ci-membership
Aug 30, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-20260830-windows-ci-membership

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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 to windows-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

  • Existing native CI evidence: test-only integration change skipped Windows; same cases moved to the other file ran Windows and exposed failures. The argv repair is separate work.
  • Before: the inventory-wide regression reports exactly 17 missed native targets. After: 185 focused package-script and scope tests pass, including the zero-install CLI, native/unrelated test selection, and conservative full-scope behavior for missing, invalid, or empty manifests.
  • 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.
  • Before/after comparison across all 659 Windows-relevant paths in the frozen 35,444-path repository changes only those 17 declared targets from false to true. No existing Windows route is lost; no other lane changes.
  • Production/tooling LOC +36/-37 (net -1); tests +40/-4; docs +1/-1. Formatting and git diff --check pass.
  • Exact source head: a207b6e81e81219bfbfbd67fc65e8b78fe83fbec. The complete changed-check gate passed, including core/root test typechecks, core/scripts lint, policy guards, and three dead-export scans.
  • Fresh autoreview and separate exact-commit read-only Codex review found no actionable issues. An independent source reviewer also verified the inventory, zero-install contract, preserved routes, and unchanged capacity policy. Required exact-head hosted CI is pending publication and remains a landing gate.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S maintainer Maintainer-authored PR labels Aug 30, 2026
@steipete
steipete marked this pull request as ready for review August 30, 2026 09:00
@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: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 5:07 AM ET / 09:07 UTC.

ClawSweeper review

What this changes

This 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 provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep 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
Reviewed head: a207b6e81e81219bfbfbd67fc65e8b78fe83fbec
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused source-of-truth repair with relevant regression coverage and no identified correctness defect.
Proof confidence 🌊 off-meta tidepool Not applicable: Repository state identifies this as maintainer-authored CI-routing work, so the external-contributor proof gate does not apply; the linked before/after CI evidence and focused test claim remain supplemental validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository state identifies this as maintainer-authored CI-routing work, so the external-contributor proof gate does not apply; the linked before/after CI evidence and focused test claim remain supplemental validation.
Evidence reviewed 5 items Introduced source-of-truth repair: The introduced code reads both declared Windows CI scripts, collects their explicit test paths, and selects Windows when a changed test is in that inventory.
Caller and downstream lane agree: Preflight invokes the selector for pull requests, passes its run_windows result to the matrix, and each matrix part runs the corresponding package script.
Inventory-wide regression coverage: The added package-script test asserts every test named after the Windows runner entrypoint selects the Windows lane; the zero-install test covers valid and unreadable manifest behavior.
Findings None None.
Security None None.

How this fits together

OpenClaw’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]
Loading

Decision needed

Question Recommendation
Should this maintainer-authored CI-routing repair land after exact-head hosted CI succeeds and any outstanding Rank-up moves are confirmed addressed? Land after exact-head CI: Merge the focused repair after all required checks on the reviewed head succeed and no current review action remains.

Why: The item has a protected maintainer label and incomplete exact-head checks, so final landing remains an explicit maintainer action.

Before merge

  • Resolve merge risk (P1) - Required exact-head hosted CI is still in progress; do not land until the selected Windows matrix and gate finish successfully.
  • Resolve merge risk (P1) - The supplied comment snapshot omits the newer ClawSweeper comment, so confirm any current Rank-up moves before landing.
  • Complete next step (P2) - The open maintainer-authored PR already owns the bounded repair; complete exact-head CI and the normal landing review rather than dispatching a parallel fix.
Agent review details

Security

None.

PR surface

Tests +36, Docs 0, Other -1. Total +35 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 40 4 +36
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 36 37 -1
Total 4 77 42 +35

Review metrics

Metric Value Why it matters
Production vs test delta production/tooling -1 (36 added, 37 removed); tests +36 (40 added, 4 removed); docs net 0 The patch removes the duplicate test whitelist while adding inventory-wide and fail-safe routing coverage.

Stored data model

Persistent data-model change detected: vector/embedding metadata: scripts/ci-changed-scope.mjs. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #133207
Summary: This PR is the focused candidate repair for the linked selector/inventory drift.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the package scripts as the canonical Windows test inventory while preserving the existing explicit owner routing for paths outside that inventory.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This fixes CI coverage selection for test-only changes without changing OpenClaw runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Repository state identifies this as maintainer-authored CI-routing work, so the external-contributor proof gate does not apply; the linked before/after CI evidence and focused test claim remain supplemental validation.

Label justifications:

  • P3: This fixes CI coverage selection for test-only changes without changing OpenClaw runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Repository state identifies this as maintainer-authored CI-routing work, so the external-contributor proof gate does not apply; the linked before/after CI evidence and focused test claim remain supplemental validation.

Evidence

What I checked:

  • Introduced source-of-truth repair: The introduced code reads both declared Windows CI scripts, collects their explicit test paths, and selects Windows when a changed test is in that inventory. (scripts/ci-changed-scope.mjs:150, a207b6e81e81)
  • Caller and downstream lane agree: Preflight invokes the selector for pull requests, passes its run_windows result to the matrix, and each matrix part runs the corresponding package script. (.github/workflows/ci.yml:920, a207b6e81e81)
  • Inventory-wide regression coverage: The added package-script test asserts every test named after the Windows runner entrypoint selects the Windows lane; the zero-install test covers valid and unreadable manifest behavior. (test/package-scripts.test.ts:230, a207b6e81e81)
  • Current main still has the divergent whitelist: The fetched current-main selector retains the separate Windows test whitelist, so the central repair is not already implemented on main. (scripts/ci-changed-scope.mjs:71, 3483c892e22e)
  • Recent area history: Recent history for the selector contains several CI-routing changes by steipete. Older raw-parent objects needed to verify the claimed originating PR were unavailable locally, so no introduction attribution is made. (scripts/ci-changed-scope.mjs:145, 4f92b28df82a)

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.

  • Wait for required hosted CI on the exact reviewed head to complete successfully.
  • Confirm that the omitted latest ClawSweeper comment has no unaddressed Rank-up moves.

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.

@steipete

Copy link
Copy Markdown
Contributor Author

Exact-head CI 33302959177 completed successfully on a207b6e81e81219bfbfbd67fc65e8b78fe83fbec, including the required openclaw/ci-gate. I read the latest ClawSweeper review and its two Rank-up moves: the exact-head CI condition is now satisfied, and there is no newer unaddressed review action.

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.

@steipete
steipete merged commit 6ddd598 into main Aug 30, 2026
242 checks passed
@steipete
steipete deleted the codex/qa-20260830-windows-ci-membership branch August 30, 2026 09:13
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S 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.

Native Windows tests can be skipped for their own test-only changes

1 participant