Repository navigation
Studio: on Windows a run's deadline kills its whole process tree, through a Job Object (#940) - #1017
Merged
Merged
Conversation
…e helper (#940) The rows fail on Windows until the runner kills the whole tree there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ough a Job Object (#940) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…c tells the Job Object (#940) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A 5 s helper ran out on CI's macOS while the run was still ending. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 tasks
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.
Closes #940 (spec #936, "The process runner").
Summary
On Windows a run's deadline now kills the command's whole process tree through a Job Object, as a process group does on Unix. The public surface is unchanged.
test-supportisn't in the ticket's Touches line. The Windows rows need it: theshhelper can't run there, and the fake needed a helper it can start and a cross-platformrunning(pid).Test changes:
a_deadline_kills_the_whole_process_grouptoa_deadline_kills_the_whole_process_tree.a_helper_left_behind_by_a_clean_exit_is_left_alone.exit code: 3on Windows.Evidence
Windows,
windows.ymlon this branch:a_deadline_kills_the_whole_process_treefailed with "the helper 8784 outlived the deadline".a_helper_that_outlives_the_command_cannot_hold_the_run_past_its_deadline, failed with "the helper … outlived the deadline".Break checks on macOS (each behaviour broken for a moment, then restored):
a_helper_left_behind_by_a_clean_exit_is_left_alonefails. The first version of this row passed when it should have failed. On Unix,kill(pid, 0)still counts a killed orphan as running until launchd reaps it. The row now asserts that the helper does not go within the same 2 s window thatgoeswatches.a_run_given_up_while_a_helper_holds_its_output_ends_before_its_deadlinefails on itsgoesassertion.npm run checkandnpm run check:windowspass.On f249909,
macos rustandsnap (1/2)were cancelled at 15 minutes with no step run and no log, so they likely never got a runner. Each was rerun once (gh run rerun --failed), and both passed.Correctness pass
/code-review high(standards, plus spec and correctness):docs/studio/development.mdstill said Windows kills only the command "until Studio: Windows — the process runner on Job Objects (#936) #940".inner_mut()reaches std'sChild.KillOnDrop).macos rustfailed on that row, in run 46613136641: it took 5.067 s, so the helper ran out its own 5 s while the row was still watching. The helper now waitsLONG(20 s). The break check still turns it red.Outside review
skipped: no risk match
Merge Danger
Door: two-way. It's a runner arm and its tests, and reverting restores the interim Windows arm.
Blast Radius: Windows-only. On Unix only the type around the child changed, and the kill and waits are the same calls.
🤖 Generated with Claude Code