Repository navigation
fix(test): run the run_custom SIGTERM test in its own process - #4417
Merged
Merged
Conversation
A child killed by SIGTERM publishes cancellation to every live foreground scope in the process, so a concurrently running test between ForegroundSignals::install() and spawn saw its spawn error as an interruption. Re-exec the signal test alone, as signal_forwarder's operation-lifetime test already does. Closes #4416
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.
run_custom_propagates_signal_exit_coderuns a child that dies of SIGTERM, andwait_foreground_childthen callscancel_foreground(SIGTERM), which marks every live foreground scope in the process as interrupted. Whenrun_custom_spawn_failure_resolves_trace(or any other test in thewtbinary that installsForegroundSignals, such as theoutput::concurrenttests) had installed its scope but not yet spawned, its spawn error came back asWorktrunkError::Interrupted("Terminated"). The signal test now re-execs the test binary filtered to itself, the same isolationsignal_forwarder's operation-lifetime test uses, so its process-wide cancellation can't reach a sibling test. Production code is unchanged.Looping the
commands::customtests 200 times failed 16 times before this change and 0 times after it.Closes #4416 — automated triage