Repository navigation
test(update): run the surviving process-group repair case only on POSIX - #168079
Conversation
Process-group survival detection is POSIX-only in the handoff child reader, so on Windows repair has no detached group to preserve and the case cannot emit its guidance. Keep the case on POSIX and the other preserved-owner cases on every platform.
|
🦞👀 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 runs the surviving process-group repair test only on POSIX while retaining the other owner-preservation cases on Windows. Example: The repair-handoff suite runs on Windows.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR corrects a verified platform mismatch in the repair tests while preserving applicable coverage; no introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe registered update repair command consults the handoff lease owner and process observations to reclaim dead leases or preserve unresolved owners; this PR changes only its test case selection. flowchart LR
A[Repair test cases] --> B[Registered update repair]
B --> C[Handoff repair owner]
C --> D[Child identity reader]
D --> E[Platform process observations]
C --> F[Lease settlement or guidance]
Technical reviewBest possible solution: Land the focused platform restriction once the existing required checks pass. Do we have a high-confidence way to reproduce the issue? Current main unconditionally selects the surviving-group fixture, but its production reader bypasses that probe on Windows, making the expected refusal unreachable; no tests were executed during this read-only review. Is this the best way to solve the issue? The platform restriction matches the existing process-tree contract and preserves the meaningful cross-platform refusal cases without modifying production policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e5bc415fed93. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +6. Total +6 across 1 file. Added test files: 0. View PR surface stats
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 October 9, 2026, 9:40 PM ET / October 10, 2026, 01:40 UTC. |
…IX (openclaw#168079) The preserved-owner repair case for a surviving process group, added in openclaw#168043, asserted POSIX-only behavior: the handoff child reader checks process-group survival only off win32, so on Windows the case could not emit its guidance and failed checks-windows-node-test-2 on main. The case now runs only on POSIX; the live, uninspectable and EPERM cases still run everywhere. Test only.
What Problem This Solves
checks-windows-node-test-2onmain(hourly 38012190614) fails insrc/cli/update-cli/update-repair-handoff.test.ts› "repair preserves a surviving group child-lineage owner with actionable guidance". The case was added by #168043 and expects the "descendants remain live or unverified" guidance.Why This Change Was Made
The handoff child reader only checks process-group survival when
process.platform !== "win32"(src/infra/update-managed-service-handoff-children.ts). On Windows there is no detached group to preserve, so repair never emits that guidance, and the case asserts POSIX-only behavior. The fix runs that one case only on POSIX. The live, uninspectable and EPERM cases still run on every platform. Production code is unchanged.User Impact
None. Test only. It restores the Windows test shard.
Evidence
node scripts/run-vitest.mjs src/cli/update-cli/update-repair-handoff.test.ts: 11/11 passed on macOS.expected "error" to be calledwith 0 calls for exactly this case. The ENOENTreport.jsonlines in that log come from unrelated supervisor fixtures.