Repository navigation
fix(test): keep update broker transport on the host platform - #200411
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: needs maintainer review before merge. What this changesThis PR keeps native broker endpoint selection on the actual host platform during simulated Windows update tests. Example: Run Windows task-finalization tests on macOS with process.platform simulated as win32.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs a concrete test-fixture platform mismatch still present on main, preserves existing assertions, and introduces no actionable defect. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shared update-test lifecycle fixture connects simulated service control to real native broker and SQLite operations; broker resource-authority creation selects the endpoint passed to the child process. flowchart TD
A[Windows lifecycle tests] --> B[Shared lifecycle fixture]
B --> C[Simulated Windows service control]
B --> D[Scoped host platform]
D --> E[Real resource authority]
E --> F[Native broker socket]
F --> G[SQLite operations]
Technical reviewBest possible solution: Retain the scoped call-through fixture repair so real broker transport follows the host without weakening Windows service assertions. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the mismatch between the simulated parent platform and real child platform; the PR reports matching base failures, but this read-only review ran no tests. Is this the best way to solve the issue? This is the smallest complete fix: reuse the existing synchronous host-platform scope at endpoint creation, restore the platform immediately, and retain real broker behavior and existing cases. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b4254cb2f6fa. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +7. Total +7 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 17, 2026, 12:07 AM ET / 05:07 UTC. |
|
Merged via squash auto-merge.
|
…the socket directory (#200453) The parent's resource authority decides whether the native resource endpoint has a private socket directory. Since #200216 the broker child re-derived that from its own platform and the endpoint's parent path. A parent that selected a directory-less endpoint while the child ran on POSIX therefore got `mkdir '.'` and EEXIST before readiness. Tests that simulate Windows in the parent hit this on macOS and Linux until #200411 pinned their fixture's authority to the host platform. Forward the authority whole in the broker bootstrap. The broker creates, permissions, and removes exactly the directory it was given, or none, and derives nothing. Attachments still carry only the endpoint and secret.
(cherry picked from commit 029d2af) Release adaptation: none. Exact qualification repair; original failure and focused proof retained in the release handoff. Companion audit: existing consumers and prerequisite contracts are present-equivalent; no interface changes. Broader broker authority repair 22d5c87 is not applicable to this fixture-only batch. Co-authored-by: RomneyDa <[email protected]>
…the socket directory (openclaw#200453) The parent's resource authority decides whether the native resource endpoint has a private socket directory. Since openclaw#200216 the broker child re-derived that from its own platform and the endpoint's parent path. A parent that selected a directory-less endpoint while the child ran on POSIX therefore got `mkdir '.'` and EEXIST before readiness. Tests that simulate Windows in the parent hit this on macOS and Linux until openclaw#200411 pinned their fixture's authority to the host platform. Forward the authority whole in the broker bootstrap. The broker creates, permissions, and removes exactly the directory it was given, or none, and derives nothing. Attachments still carry only the endpoint and secret.
What Problem This Solves
Update lifecycle tests that simulate Windows fail before exercising finalization: the real native broker receives a Windows named-pipe endpoint on a POSIX host.
User Impact
No runtime change. Restore tests of Windows task finalization while retaining real native broker and SQLite behavior.
Why This Change Was Made
Use the existing scoped host-platform fixture helper when the real broker creates its resource authority. Service control continues to use the simulated platform; endpoint selection follows the host running the child.
This is a maintainer-directed repair of failing main CI: https://github.com/openclaw/openclaw/actions/runs/44010442679/job/133796403563.
Evidence