Skip to content

test(update): run the surviving process-group repair case only on POSIX - #168079

Merged
steipete merged 1 commit into
mainfrom
upd/upd-l1530
Oct 10, 2026
Merged

steipete merged 1 commit into
mainfrom
upd/upd-l1530

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

checks-windows-node-test-2 on main (hourly 38012190614) fails in src/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.
  • The failing Windows job log shows expected "error" to be called with 0 calls for exactly this case. The ENOENT report.json lines in that log come from unrelated supervisor fixtures.
  • Type check clean for the touched file.

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.
@clawsweeper

clawsweeper Bot commented Oct 10, 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.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS labels Oct 10, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The surviving-group case expects guidance from a production branch that Windows never executes.
  • After: Windows runs the live, uninspectable, and EPERM cases; POSIX also runs the surviving-group case.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-supported; validation evidence is a reported harness run, and reviewed-head checks are still pending.
Proof confidence 🦐 gold shrimp (3/6) This test-only correction changes no shipped behavior; the body reports a passing macOS suite, while source inspection establishes the Windows expectation mismatch.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The Windows test shard fails because a POSIX-specific repair expectation is applied on Windows.
Reason: The restriction corrects an invalid platform expectation while retaining the original safety regression on POSIX.

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
Reviewed head: 0345ced11b5fd783b0420d6e310ae36581ded08f

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Surviving child process-group regression keeps the original intent (6f32dc6: Protect surviving bound descendants from repair reclamation, alongside live and uninspectable owner refusal cases.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +6. Total +6 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 7 1 +6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 7 1 +6

Labels

Label changes:

  • add P3: This is a focused test correction with no production behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a focused test correction with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

Reviewed October 9, 2026, 9:40 PM ET / October 10, 2026, 01:40 UTC.

@steipete
steipete merged commit ec37e1b into main Oct 10, 2026
104 checks passed
@steipete
steipete deleted the upd/upd-l1530 branch October 10, 2026 01:45
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 10, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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