Skip to content

fix(test): repair Windows compiled worker fixture setup - #149403

Merged
steipete merged 3 commits into
mainfrom
codex/fix-compiled-worker-fixtures-7006
Sep 16, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/fix-compiled-worker-fixtures-7006

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Related: #148956, #149257

What Problem This Solves

Windows compiled-worker checks can fail while opening a nested SQLite snapshot or spending their existing deadline on competing and duplicate cold builds.

User Impact

This repairs test fixtures used to validate compiled workers on Windows. Production behavior, test deadlines, and supported platforms are unchanged.

Why This Change Was Made

The generated snapshot probe now uses the existing SQLite opener, which normalizes Windows filesystem paths. The two TUI cases opt out of inherited case concurrency while retaining their real cold preparation and provider-hook assertions. The stale-dist case builds one fresh positive generation and reuses it for runtime and restored source/declaration checks; a separate concurrent-owner case already verifies independent generations. Both intentional build failures, their failure trailers, and cleanup assertions remain.

Evidence

  • A full Windows run before the opener and redundant-build repairs reported 22 passed, seven failed, and five skipped. Four failures were snapshot-open errors, two borrowers exited before their receipt, and stale-dist exceeded its unchanged 120-second deadline. Both serialized TUI cases already passed in that run. The exact failing snapshot path was not captured, and the borrower failures' connection to that open error was inferred.
  • With the final two-file candidate, the complete file passed in its original order and default concurrency: 29 passed, the same five skipped, zero failed. All 34 case names are unchanged. The seven previously failing cases and both TUI cases pass; stale-dist completed in 64.4 seconds within the same 120-second budget. These are sequential observations, not a controlled latency comparison.
  • Proof used a private frozen Windows installation with Node 24.19.0 and pnpm 12.3.4. Source, installed dependency metadata, and runtime hashes were unchanged afterward. All 82 observed process records were absent at final verification. Twelve native Windows warnings about unverified non-group descendants remain recorded; this is not a claim that every possible descendant was observed.
  • Installed formatting and git diff --check pass. The canonical changed-check plan was inspected; the remaining hosted lint, type, and global gates passed on the current head.
  • Fresh independent P0-P2 review found no actionable findings. The Windows proof is bound to base e7dde047904e; both fixture originals and their complete supplied compiler, lifecycle, and SQLite owners are unchanged in publication base 2f96a9da9150.

Historical failing CI and the failed local full-file run remain retained.

Exact-head CI35019925504 failed check-lint-core-2: src/infra/update-managed-service-handoff-boundary.test-support.ts has 701 counted lines against its 700-line limit. The exact CI merge c1d099a6b6f2 has parents main b36b2872ac99 and this PR head a6cc583e615f. Its failing helper is byte-identical to main; #149150 changed that helper after this PR's base. This two-file fixture patch does not change it. Canonical repair #149423 landed as 6c28739b1aca. The earlier integration at head 469c06bb9df9 included it with unchanged two-file patch and original/candidate file bytes. Historical CI35028479864 reports two failed shards. Small-24 has nine alias-wrapper trust-delegation failures; subsequent main changes repaired the fixture setup; #149558 also made dependency linking safe to repeat. Large-2 has one proxy-capture lifecycle failure: the legacy/event child returns null status after approximately 20 seconds. Its diagnostic omits the child error and signal, so the termination cause remains unproven. Both failing tests and the proxy runtime/store owners are byte-identical across exact CI merge 7fd4ff60becaf and main 6c28739b1aca; this PR changes none of them. These historical failures remain recorded; current-head results follow below.

Current head e7427943cb8e includes main ca96cfbe3bfc and preserves #149410's narrower real compiler fixture. The reviewed PR patch remains identical after normalizing only blob IDs and hunk line numbers. Exact-head CI35049961963 completed successfully: all 96 jobs are terminal with no failures, including both Windows jobs. The complete compiled-worker file passed on Windows with 29 passed, five unchanged skips, and zero failures. Source TUI took 9.2 seconds, compiled TUI 25.5 seconds, and stale-dist 37.6 seconds under unchanged deadlines. The formerly failing nine alias-delegation and three spoofed-anchor cases passed; the proxy lifecycle case passed in 535 milliseconds. Its historical termination cause remains unknown. No CI retries or cancellations were used. Native review artifacts are ready for preparation.

A bounded Linux observation at exact main 6c28739b1aca passed the complete unchanged proxy-capture lifecycle file (25 tests) and then the complete diagnostic overlay (25 tests). All six diagnostic children returned status 0, with null error and signal. The original 20-second child budgets and assertions were unchanged. Source was restored and installed dependency/runtime hashes were unchanged; both commands settled, with all 40 observed process records exited. This used one worker and a 2 GiB Node heap in a private frozen Linux installation, unlike the concurrent hosted shard. It did not reproduce the historical null child.status failure; its cause remains unknown. No repair or passing CI gate is established by this observation.

Retained diagnostic receipt: proxy-capture-lifecycle-diagnostic-v1/run.json, SHA-256 7da8d09489861640635b86256781b1d8d99a9fe01d38c249fdd3cd3f7d91fad2. Audit: wave6-proxy-capture-lifecycle-diagnostic-audit-v1.json, SHA-256 736e33fc5b783d55e01ed5af36320e8174aa344986b5e36975c255efda190840. The audit binds all three raw files and all six complete child results.

Separate Windows CI evidence also reports a timeout followed by EPROCESSGROUP_CLEANUP_FAILED in the concurrent shared-lazy-build case. That case and its process cleanup owner are unchanged here. Its local pass does not establish that the reported cleanup failure is fixed.

@steipete steipete self-assigned this Sep 15, 2026
@clawsweeper

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

@steipete
steipete marked this pull request as ready for review September 15, 2026 20:29
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 15, 2026
@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 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 15, 2026, 11:07 PM ET / September 16, 2026, 03:07 UTC (Revision 4).

ClawSweeper review

What this changes

Repairs Windows compiled-worker tests by using the shared SQLite opener, serializing expensive provider-hook cases, and removing a duplicate fixture build.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: this remains a useful, bounded fixture repair that current main does not contain. The merged compiler-fixture optimization is complementary, and no introduced correctness or security defect was found.

Priority: P2
Reviewed head: e7427943cb8e967e3f822d891ae6750052c22962

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture repair with relevant Windows execution evidence, retained behavioral coverage, and no actionable introduced defect.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): Recorded Windows execution exercises the changed fixture through real compilation, SQLite snapshots, and child-process probes, with 29 passes and unchanged skips and deadlines; this supports the repair without claiming latest-head execution or resolution of the separate cleanup failure.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Recorded Windows execution exercises the changed fixture through real compilation, SQLite snapshots, and child-process probes, with 29 passes and unchanged skips and deadlines; this supports the repair without claiming latest-head execution or resolution of the separate cleanup failure.
Evidence reviewed 8 items Verified introduced patch: The local merge-base-to-head diff matches the supplied introduction evidence: only the snapshot opener, provider-hook case scheduling, and duplicate positive build change.
Existing SQLite path owner: The shared opener normalizes filesystem locations through the Windows namespace boundary while preserving SQLite URIs and special locations. The generated probe now consumes that existing behavior.
Meaningful coverage retained: The separate shared-lazy-build case still runs concurrent invocations and asserts distinct generations. The changed stale-artifact case retains runtime rejection, source and declaration freshness checks, both intentional compiler failures, failure trailers, and cleanup assertions.
Findings None None.
Security None None.

How this fits together

OpenClaw’s worker-test harness compiles current source into temporary executables and launches child processes to check runtime behavior. These fixtures verify SQLite snapshots, provider hooks, artifact freshness, and cleanup.

flowchart TD
  A[Current source] --> B[Fixture build owner]
  B --> C[Temporary compiled workers]
  C --> D[SQLite snapshot probe]
  C --> E[Provider hook probes]
  C --> F[Freshness and failure checks]
  D --> G[Test results and cleanup]
  E --> G
  F --> G
Loading

Before merge

  • Resolve merge risk (P2) - The recorded Windows pass predates the latest main integration and does not establish that the separately reported shared-build timeout and process-group cleanup failure are fixed.
Agent review details

Security

None.

PR surface

Tests -6. Total -6 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 10 16 -6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 10 16 -6

Review metrics

Metric Value Why it matters
Fresh fixture builds 2 → 1 positive generations Removes duplicate compilation while independent-generation coverage remains in the concurrent-owner case.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one shared SQLite path owner and focused real-worker fixtures that preserve freshness, failure, and cleanup checks without redundant cold compilation.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep one shared SQLite path owner and focused real-worker fixtures that preserve freshness, failure, and cleanup checks without redundant cold compilation.

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

Unclear for a deterministic current-main failure: source confirms the snapshot probe bypasses Windows path normalization, and the discussion records actual Windows failures, but the failing path and contention triggers were not captured precisely.

Is this the best way to solve the issue?

Yes. Reusing the established opener and removing redundant setup is a narrow repair; the separate concurrent-generation test preserves the coverage removed from the stale-artifact case.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded Windows test-fixture repair supporting validation of active product fixes.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): Recorded Windows execution exercises the changed fixture through real compilation, SQLite snapshots, and child-process probes, with 29 passes and unchanged skips and deadlines; this supports the repair without claiming latest-head execution or resolution of the separate cleanup failure.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded Windows execution exercises the changed fixture through real compilation, SQLite snapshots, and child-process probes, with 29 passes and unchanged skips and deadlines; this supports the repair without claiming latest-head execution or resolution of the separate cleanup failure.

Evidence

What I checked:

  • Verified introduced patch: The local merge-base-to-head diff matches the supplied introduction evidence: only the snapshot opener, provider-hook case scheduling, and duplicate positive build change. (test/scripts/vitest-worker-artifacts.test.ts:574, e7427943cb8e)
  • Existing SQLite path owner: The shared opener normalizes filesystem locations through the Windows namespace boundary while preserving SQLite URIs and special locations. The generated probe now consumes that existing behavior. (src/infra/node-sqlite.ts:128, e7427943cb8e)
  • Meaningful coverage retained: The separate shared-lazy-build case still runs concurrent invocations and asserts distinct generations. The changed stale-artifact case retains runtime rejection, source and declaration freshness checks, both intentional compiler failures, failure trailers, and cleanup assertions. (test/scripts/vitest-worker-artifacts.test.ts:781, e7427943cb8e)
  • Current-main necessity and complementary merged work: Comparing the affected files with fetched main still shows the complete proposed repair. test: bound stale worker fixture compilation #149410 merged a narrower compilation inventory, which remains present in this head; its supplied discussion explicitly distinguishes the two repairs. (test/scripts/vitest-worker-artifacts.test.ts:1329, c1c870a41755)
  • Recorded Windows execution: The supplied PR body reports a complete real Windows fixture run on Node 24.19.0 and pnpm 12.3.4: 29 passed, five unchanged skips, zero failures, with stale-dist completing in 64.4 seconds under its unchanged 120-second deadline. This exercises the actual compiler, child processes, and SQLite path; the evidence retains its earlier source identity rather than claiming execution of the latest integration.
  • Feature-history routing: Current-main history identifies repeated worker-fixture work by Peter Steinberger. GitHub identifies steipete as the author of the merged compilation-inventory repair and supplies its exact patch and recorded parent. (test/scripts/vitest-worker-artifacts.test.ts:1333, 4e2486d7bbab)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-15T21:11:16.024Z sha a6cc583 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T22:48:02.818Z sha 469c06b :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T23:26:47.708Z sha 469c06b :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 027f208 into main Sep 16, 2026
132 checks passed
@steipete
steipete deleted the codex/fix-compiled-worker-fixtures-7006 branch September 16, 2026 03:36
@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

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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