Repository navigation
fix(test): repair Windows compiled worker fixture setup - #149403
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 15, 2026, 11:07 PM ET / September 16, 2026, 03:07 UTC (Revision 4). ClawSweeper reviewWhat this changesRepairs 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 Review scores
Verification
How this fits togetherOpenClaw’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
Before merge
Agent review detailsSecurityNone. PR surfaceTests -6. Total -6 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
|
Merged via squash.
|
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
git diff --checkpass. The canonical changed-check plan was inspected; the remaining hosted lint, type, and global gates passed on the current head.e7dde047904e; both fixture originals and their complete supplied compiler, lifecycle, and SQLite owners are unchanged in publication base2f96a9da9150.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.tshas 701 counted lines against its 700-line limit. The exact CI mergec1d099a6b6f2has parents mainb36b2872ac99and this PR heada6cc583e615f. 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 as6c28739b1aca. The earlier integration at head469c06bb9df9included 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 merge7fd4ff60becafand main6c28739b1aca; this PR changes none of them. These historical failures remain recorded; current-head results follow below.Current head
e7427943cb8eincludes mainca96cfbe3bfcand 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
6c28739b1acapassed 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-2567da8d09489861640635b86256781b1d8d99a9fe01d38c249fdd3cd3f7d91fad2. Audit:wave6-proxy-capture-lifecycle-diagnostic-audit-v1.json, SHA-256736e33fc5b783d55e01ed5af36320e8174aa344986b5e36975c255efda190840. 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_FAILEDin 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.