You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(test): verify native launcher signal delivery directly - #1770
The native launcher signal test could fail on Linux when it probed the executable PID immediately after the launcher exited. Have the fixture record receipt of the targeted SIGTERM and wait for inherited stdio to close. Both launcher modes still require a SIGTERM exit.
Low Risk
Only test harness behavior changes; production native launcher code is untouched.
Overview
The native launcher SIGTERM integration test no longer infers delivery by scraping the child executable’s PID from stdout and probing whether that PID still exists. It now runs a small Node signal fixture that writes SIGTERM to a receipt file when it receives the signal, and the assertion checks that file after the launcher child exits with SIGTERM.
The test waits for a ready line on stdout (with a 15s timeout), signals the launcher PID, waits on close instead of exit, and cleans up with SIGKILL only if the spawned child is still running—reducing Linux flakiness from PID reuse and cleanup races. Both host and without execve modes still expect SIGTERM shutdown.
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
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.
The native launcher signal test could fail on Linux when it probed the executable PID immediately after the launcher exited. Have the fixture record receipt of the targeted
SIGTERMand wait for inherited stdio to close. Both launcher modes still require aSIGTERMexit.Failing Ubuntu Node 24 job