Skip to content

fix(ci): replay frozen Windows failures with exact test selection - #155223

Merged
roboclaw-bot merged 2 commits into
mainfrom
fix/windows-ci-exact-replay
Sep 21, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
fix/windows-ci-exact-replay

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

A native Windows CI teardown failure cannot currently be replayed with its exact frozen source, runtime, worker count, and ordered test selection through the existing probe workflow.

Related: #154565. Original failure: CI run 35646578317, Windows test shard 5.

User Impact

No production behavior changes. Maintainers can compare a recorded failure with its baseline through two serialized, source-pinned Windows diagnostic runs. Normal CI policy, deadlines, assertions, resources, and failure requirements remain unchanged.

Why This Change Was Made

Extend the existing Windows Testbox Probe with a structured exact-replay input. It validates the frozen source and toolchain, invokes the existing test dispatcher with literal file arguments, and retains runtime, dependency, project-order, and outcome evidence. Replay is separate from broad CI, installed-startup, private Node, WSL, and keepalive modes.

The original dispatcher still owns test lifetime. A test process exit does not establish descendant settlement; final Actions runner teardown must be inspected separately. No new controller, SSH route, retry, failure waiver, or production logging is introduced.

Evidence

  • Selected source proposal reconciled unchanged against main eba2d9f5da8c68a6276b481386fddb8374c89ebc.
  • Fresh independent source review found no P0–P2 issues. The AutoReview CLI was attempted but unavailable; a separate native reviewer checked the complete workflow and frozen dispatcher contracts.
  • Repository workflow checks pass, including pinned Actionlint, Zizmor, generated CI ownership, composite input interpolation, and conflict markers.
  • Formatting, docs MDX, docs listing, link audit (14,281 links; zero broken), and git diff --check pass.
  • Original 23-file/seven-project order and both dispatch inputs match the retained failure receipt. Baseline and failing input objects differ only in source SHA; all eleven frozen dependency/setup/dispatcher comparisons were rehashed.
  • Targeted workflow guards pass: 658 tests, 225.89 seconds. The adjacent workflow-owner tests pass: 11 tests, 17.72 seconds including transform (under one second of test execution).
  • Initial CI correctly caught stale routing-condition expectations in that sibling test. They now preserve replay exclusion and exact Node-pin selection; fresh independent review found no P0–P2 issues in this test-only correction. Exact-head hosted CI35660043405 passes, including all five Windows shards.
  • Native replay validation and execution now ran after landing at workflow commit 953882c74a1fb8ea39a8d24437aafcc5fe62b148:
  • Both preserved all 23 files/seven projects, with 386 passed and 135 existing platform-skipped tests. Node binary, Node 24.19.0, npm 11.17.0, pnpm 12.4.0, Vitest 5.0.0, dependency inputs, argv/environment and four actual CPUs match. Reported total RAM differed by 24 KiB (15,028,236,288 vs 15,028,211,712 bytes); no byte-identical capacity/image claim is made.
  • Both artifact ZIP digests were verified. Distinct native runners executed serially; post-checkout and final runner steps succeeded, with provider shutdown hooks and Actions orphan cleanup recorded. Frozen-runner retained-namespace warnings remain: per-test descendant settlement and independent final VM destruction are not attested.
  • The original UV_HANDLE_CLOSING / worker-exit failure did not reproduce in this pair. This is not a root-cause finding, repair claim, unrelatedness determination, or CI waiver.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 21, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 21, 2026 21:52
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: M maintainer Maintainer-authored PR labels Sep 21, 2026
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Sep 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 6:05 PM ET / 22:05 UTC.

ClawSweeper review

What this changes

Adds a Windows CI replay mode that accepts frozen runtime pins and ordered test selections, retains diagnostic evidence, and updates documentation and workflow guards.

Merge readiness

✅ Ready for maintainer review

Keep open: this is a useful, bounded diagnostic capability absent from current main. No introduced correctness or security defect was established, and the protected maintainer label also prevents cleanup closure.

Priority: P2
Reviewed head: 86512c13084ac54faad2a9ed67fce4d67dddc60f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, coherent diagnostic extension with no established blocking defect and clearly disclosed native execution limits.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer/bot contributor-proof exemption applies. Supplied evidence covers static workflow checks and tests; the new native replay entrypoint and runner teardown remain explicitly unexecuted, with no runtime success claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer/bot contributor-proof exemption applies. Supplied evidence covers static workflow checks and tests; the new native replay entrypoint and runner teardown remain explicitly unexecuted, with no runtime success claimed.
Evidence reviewed 8 items Pinned introduced change: Reviewed the merge-base-to-head delta: replay validation, runtime selection, dispatcher invocation, outcome recording, documentation, and updated routing assertions. The supplied test merge is stale and was not used to infer removal of main-branch behavior.
Still necessary on main: Fetched main and the pinned base contain the identical probe blob fda4757d0c0dc72bd6b6aa1ad4d4d2c87fdabace. Its existing broad Windows test mode lacks the new frozen replay input.
Latest release comparison: The v2026.9.5 workflow exposes broad Windows CI and native task proof, without the proposed replay mode. The local release-blob read failed; the GitHub contents API supplied the release source successfully.
Findings None None.
Security None None.

How this fits together

The Windows Testbox Probe is a manually dispatched CI workflow. It prepares a selected source revision and runtime, invokes OpenClaw’s existing test dispatcher, and uploads results for maintainers.

flowchart TD
  A[Maintainer replay inputs] --> B[Validate source and toolchain pins]
  B --> C[Prepare native Windows runtime]
  C --> D[Existing test dispatcher]
  D --> E[Check observed project sequence]
  E --> F[Upload diagnostic evidence]
  D --> G[Actions runner teardown]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +4, Docs +38, Config +185. Total +227 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 8 4 +4
Docs 1 38 0 +38
Config 1 196 11 +185
Generated 0 0 0 0
Other 0 0 0 0
Total 3 242 15 +227

Review metrics

Metric Value Why it matters
Replay input contract 1 optional JSON input; 6 required fields; 1–4 workers The diagnostic mode bounds operator selection without changing normal CI worker policy.
Executable versus test growth Application code +0; workflow tooling +185; tests +4 net lines Executable growth is justified by frozen-input validation and retained replay evidence inside the existing workflow.

Technical review

Best possible solution:

Keep frozen replay in the existing probe, with the dispatcher owning test lifetime and diagnostic results clearly separated from runner-teardown qualification.

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

Not applicable to the diagnostic capability itself; source confirms the missing replay mode. The motivating native teardown failure has not been reproduced by this review.

Is this the best way to solve the issue?

Yes: extending the existing probe and invoking the frozen dispatcher avoids a competing test controller while preserving ordinary CI behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 1fab25b37f95.

Labels

Label changes:

  • add P2: This bounded CI diagnostic improvement helps investigate native Windows failures without changing shipped application 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: The maintainer/bot contributor-proof exemption applies. Supplied evidence covers static workflow checks and tests; the new native replay entrypoint and runner teardown remain explicitly unexecuted, with no runtime success claimed.

Label justifications:

  • P2: This bounded CI diagnostic improvement helps investigate native Windows failures without changing shipped application 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: The maintainer/bot contributor-proof exemption applies. Supplied evidence covers static workflow checks and tests; the new native replay entrypoint and runner teardown remain explicitly unexecuted, with no runtime success claimed.

Evidence

What I checked:

  • Pinned introduced change: Reviewed the merge-base-to-head delta: replay validation, runtime selection, dispatcher invocation, outcome recording, documentation, and updated routing assertions. The supplied test merge is stale and was not used to infer removal of main-branch behavior. (.github/workflows/windows-testbox-probe.yml:96, 86512c13084a)
  • Still necessary on main: Fetched main and the pinned base contain the identical probe blob fda4757d0c0dc72bd6b6aa1ad4d4d2c87fdabace. Its existing broad Windows test mode lacks the new frozen replay input. (.github/workflows/windows-testbox-probe.yml:40, 1fab25b37f95)
  • Latest release comparison: The v2026.9.5 workflow exposes broad Windows CI and native task proof, without the proposed replay mode. The local release-blob read failed; the GitHub contents API supplied the release source successfully. (.github/workflows/windows-testbox-probe.yml:40, ec9c1a13db89)
  • Existing execution owner retained: Normal Windows CI already invokes test-projects.mts with literal targets and --fileParallelism, serial project scheduling, and the same heap setting. Replay preserves that invocation; dispatcher source retains scheduling, failure propagation, and worker disposal. (.github/workflows/ci.yml:4930, 86512c13084a)
  • Security and supply-chain boundary: Replay uses validated JSON through environment variables and literal process arguments. Existing read-only permissions, credential-free checkout, pinned Actions, and package-manager setup remain intact; Windows setup does not restore or publish the shared pnpm cache. No new authority transfer or credential exposure was identified. (.github/workflows/windows-testbox-probe.yml:574, 86512c13084a)
  • Declared validation and limits: The supplied complete PR body reports passing workflow checks and focused tests, including 11 adjacent workflow-owner tests in 17.72 seconds. It explicitly states native PowerShell execution, paired replays, and final runner teardown have not run. The related status PR remains open and describes the motivating teardown failure: fix(daemon): keep native service checks within their timeout #154565 . This diagnostic change does not claim to fix that failure. (86512c13084a)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

@roboclaw-bot
roboclaw-bot merged commit 953882c into main Sep 21, 2026
103 of 104 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the fix/windows-ci-exact-replay branch September 21, 2026 22:11
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
…enclaw#155223)

* fix(ci): replay frozen Windows failures with exact test selection

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>

* fix(ci): align Windows replay routing guards

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>
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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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