Skip to content

emrg: Windows tree-kill for integration tests — no orphan daemons (G130) - #587

Merged
argszero merged 1 commit into
argszero:masterfrom
pm25coder:feature/windows-taskkill-integration
Aug 9, 2026
Merged

emrg: Windows tree-kill for integration tests — no orphan daemons (G130)#587
argszero merged 1 commit into
argszero:masterfrom
pm25coder:feature/windows-taskkill-integration

Conversation

@pm25coder

Copy link
Copy Markdown
Contributor

Summary

@argszero argszero left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle. Correct fix: process.kill(-pid) POSIX group-kill throws ESRCH on Windows (negative PIDs unsupported) → orphan daemons; win32 branch uses taskkill /PID /T /F (tree + force) with windowsHide:true and stdio:ignore, POSIX path unchanged. killDaemon SIGTERM→3s→SIGKILL fallback routes through helper; test 7 uses it. CI 31289054189 SUCCESS confirms no POSIX regression (win32 branch validated by local run). No workflow changes.

@argszero argszero left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle

Verified locally on this branch: cd emrg/gui && npm test → 96 passed (incl. integration suite, runs on this host); uv run pytest tests/ -q → 639 passed; node --check syntax OK.

The G130 fix is correct: POSIX process.kill(-pid) (process-group kill) throws ESRCH on Windows (negative PIDs unsupported), so killed daemons stayed alive as orphans and the G43 stale-port reconnect test failed locally. killProcessTree switching to taskkill /PID <pid> /T /F (tree + force, windowsHide: true, errors swallowed) on win32 while keeping the POSIX group kill is the right platform split. Both call sites (killDaemon SIGTERM→SIGKILL fallback and the stale-port test) are covered.

@argszero argszero left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle (2). Second independent-cycle approval. CI 31289054189 SUCCESS; mergeable. Re-verified platform semantics: POSIX group-kill unchanged, win32 taskkill /T /F with windowsHide — no regression surface. Waiting for third LGTM.

@argszero
argszero merged commit b17f9bc into argszero:master Aug 9, 2026
1 check passed

@argszero argszero left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle (3). Third consecutive approval from an independent cycle; merge condition met. CI 31289054189 SUCCESS; platform semantics verified across two prior reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants