Repository navigation
test(hosts): wait for killed hosts before deleting the update-worker temp dir - #379
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 37 minutes. View limit details
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. CodeRabbit Verify
|
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Code Review Roast 🔥Verdict: No Issues Found | Recommendation: Merge Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything. This incremental bump doubles the 📊 Overall: Like a second pancake — the first one stuck to the pan, but this one slid out clean. Files Reviewed (1 file)
Previous Review Summaries (2 snapshots, latest commit d1df0a4)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit d1df0a4)Verdict: No Issues Found | Recommendation: Merge Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything. This is a thoughtful fix for Windows file locking issues in tests, and the upload resume logic is well-implemented. The state machine handles transport changes, deadlines, backoffs correctly. Tests cover the edge cases nicely. 📊 Overall: Like finding a unicorn in production — I didn't think clean PRs existed anymore, but here we are. Files Reviewed (13 files)
Fix these issues in Kilo Cloud Previous review (commit 1a9c785)Verdict: No Issues Found | Recommendation: Merge Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything. 📊 Overall: Like finding a unicorn in production — I didn't think clean PRs existed anymore, but here we are. Files Reviewed (2 files)
Reviewed by free · Input: 247.3K · Output: 21.8K · Cached: 192K |
1a9c785 to
d1df0a4
Compare
…temp dir The suite's teardown SIGTERMed the relaunched hosts (cwd inside the temp dir) and deleted the dir at once. Windows keeps a process's cwd locked until it exits, so the delete failed with EBUSY as an unhandled error between tests (twice on #372's Windows runs). Wait up to 5 s for every killed process, then delete with rmSync's EBUSY retries.
|
Rebased onto #381, which landed the same Windows fix as a 2 s |
d1df0a4 to
e262747
Compare
Fixes a Windows-only flake in
lib/hosts/update-worker.test.mjsthat fails the wholeVerify (windows-latest)job with an unhandled error after every test has passed:It hit #372 twice (runs 41549034406 and 41594672526), with 2438 and 2445 tests passing and 0 failing.
Cause:
update-worker.tsrelaunches the host withcwd: d.cwd, a directory inside the suite's temp dir. Theafterhook sent SIGTERM to those hosts and calledrmSyncon the same tick. On Windows the kill returns before the process has exited, and a running process keeps its cwd locked, so the delete failed withEBUSY.Fix (test only): the hook now waits up to 5 s for every killed process (the spawned "old daemons" and the relaunched hosts) to exit. It then deletes the directory with
rmSync's built-inmaxRetries/retryDelayfor any handle Windows releases late.Verification: the file passes on Linux (27 pass, 0 fail) and leaves no
host-update-worker-*directory behind. TheEBUSYitself only happens on Windows, so this PR's Windows CI job is the real check.