Repository navigation
test(daemon): stop skipping killStaleDaemon checks on Windows - #13154
Merged
nwparker merged 1 commit intoAug 8, 2026
Merged
Conversation
These three assert PID-record and start-time logic, and the file's daemonTestSocketPath already hands back a real named pipe on win32, so nothing in them needs a Unix socket. Verified by running the suite on a Windows host with the guards stripped: all three pass. That restores Windows coverage of killStaleDaemon's ownership decisions — the code stablyai#12882 changed — on the one platform where none of it was exercised. The fourth guard in this file stays: that test spawns a real child and binds a filesystem socket path, which fails with listen EACCES on Windows.
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThree daemon health tests now run on Windows. The tests cover live-socket preservation, start-time tolerance rejection, and PID identity protection. Test behavior and assertions remain unchanged. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
…ai#13154) Three guards in daemon-health.test.ts skipped tests that assert PID-record and start-time logic. The file's daemonTestSocketPath already returns a real named pipe on win32, so none of them needed a Unix socket — the skips cost coverage for nothing. Verified on a Windows host: the file goes from 29 passed / 4 skipped to 32 passed / 1 skipped, restoring Windows coverage of killStaleDaemon's ownership decisions, which stablyai#12882 changed. The fourth guard stays: that test spawns a real child and binds a filesystem socket path, which fails with listen EACCES on Windows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Removes three
skipIf(process.platform === 'win32')guards indaemon-health.test.ts.Why
While verifying #12882 on a real Windows host, I stripped every win32 guard in the daemon suite and ran it. Most of the skips are structural and must stay — 31 of the unskipped tests fail with
listen EACCES: permission denied C:\Users\...\Temp\..., because they bind Unix domain sockets at filesystem paths, which Windows does not provide.But these three pass on Windows:
does not unlink a live socket when the pid file does not match this daemonreturns false for start times outside tolerancedoes not SIGTERM when the saved startedAtMs mismatches the current processThey assert PID-record and start-time logic, and the file's own
daemonTestSocketPathhelper already returns a real named pipe (\\.\pipe\...) on win32 — so nothing in them needs a Unix socket. The guards were costing coverage for no reason.That matters because
killStaleDaemon's ownership decisions are exactly what #12882 changed, and Windows was the one platform where none of that logic ran.What stays
The fourth guard in this file is kept deliberately. That test spawns a real child process and binds a filesystem socket path, and it genuinely fails on Windows.
Verification
Windows host, full daemon suite with all 31 guards stripped: these three passed. macOS:
daemon-health.test.tsgreen (33 tests) — unchanged there, since the guard only ever applied to win32.The Windows-only failures observed in that run (
daemon-preflight-client-replacement,pty-subprocessWSL) are pre-existing and unrelated — an identical failure set reproduces on the commit before #12882.Made with Orca 🐋