fix(server): skip Windows cleanup for exited child processes #16007
main fromrefs/pull/16007/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
Alb11747(GitHub profile, opens in a new tab) closed this
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
Alb11747(GitHub profile, opens in a new tab) reopened this
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XS
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
coderabbitai[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge added labelsmacroscope-review
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge merged this243c999
juliusmarminge closed this
Sign in to join this conversation.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
68e3e016-d273-401e-92fb-68b4f46f0831📥 Commits
Reviewing files that changed from the base of the PR and between 0471bf997225d3a80aedd6191ba9804079705a3c and 8cee51e04035fa30d5ce0ae98a88006c3baf6485.
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml📒 Files selected for processing (2)
patches/@effect__platform-node-shared@4.0.2.patchpnpm-workspace.yamlIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
Walkthrough#
The patch changes the Windows
taskkillhelpers to skip PID-based tree cleanup when Node has observed the child leader exit. It also updates the cleanup documentation and registers the patch for@effect/platform-node-shared@4.0.2.Changes#
Windows cleanup
patches/@effect__platform-node-shared@4.0.2.patch,pnpm-workspace.yamlonExit(null)and skiptaskkillwhenexitCodeorsignalCodeis non-null. Otherwise, they retain tree termination. The patch documents this behavior and the workspace config applies the patch to version4.0.2.Priority: ➖ Normal
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related PRs
taskkillhelper change to@effect/platform-node-sharedversion4.0.1.Suggested reviewers:
juliusmarmingeMerge Risk: ⚪ Minimal · up to
8cee5The cleanup change is mergeable after normal checks. Native Windows behavior for the rebuilt 4.0.2 package remains unverified, but no specific failure is established.
Architecture Summary#
Architecture risk: 🔵 Low · up to
8cee5The change affects 2 systems.
Changed systems:
patches,pnpm-workspace.yamlArchitecture concerns No architecture-level concerns identified.
Review details
Systems and components
Before / after behavior
taskkillhelper now checks whetherexitCodeorsignalCodeis non-null; if either is, it callsonExit(null)and skipstaskkill. Otherwise, it retains the existing tree-termination command.taskkilltree termination to when the leader is running and states that descendants outliving the leader are not reclaimed by PID-based cleanup.taskkillhelper now checks whetherexitCodeorsignalCodeis non-null; if either is, it callsonExit(null)and skipstaskkill. Otherwise, it retains the existing tree-termination command.@effect/platform-node-shared@4.0.2to its patch file.Pre-merge checks |
4
✅ Passed checks (4 passed)
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands.