fix(child_process): release timeout threads after child exit - #9640
fix(child_process): release timeout threads after child exit#9640proggeramlug wants to merge 3 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughTimed child-process waits now cancel their timeout workers when the child exits. Spawn and exec paths pass timeout data into the waiter. Tests verify prompt thread release and deadline-based termination. ChangesChild timeout cancellation
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to Child-process timeout workers are intended to stop promptly after child exit while preserving timeout termination behavior. No current merge-blocking risk is identified. Sequence Diagram(s)sequenceDiagram
participant ChildProcessAPI
participant cp_spawn_waiter
participant ProcessWaiter
participant TimeoutWaiter
ChildProcessAPI->>cp_spawn_waiter: pass timeout and kill signal
cp_spawn_waiter->>ProcessWaiter: wait for child exit
cp_spawn_waiter->>TimeoutWaiter: wait until deadline
ProcessWaiter->>TimeoutWaiter: send cancellation on child exit
ProcessWaiter->>ChildProcessAPI: emit CpEvent::Exited
TimeoutWaiter->>ChildProcessAPI: emit CpEvent::Timeout on deadline
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Description checkExplanation The description provides the issue reference, change summary, concrete implementation details, and validation results. It does not use every template heading, but it is mostly complete and covers the required information. Full details: Linked Issues checkExplanation The changes address issue ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
Landed via merge train #9650 (rebase-merge, authorship preserved). |
Fixes #9592
Summary
Validation
The broader affected-crate runner reaches an unrelated existing perry binary test failure: PERRY_CONCAT_SITE_CACHE is absent from the build-cache env inventory (introduced by #9514); this branch does not touch that code.
Summary by CodeRabbit
Bug Fixes
Tests
Documentation