Skip to content

fix(test): verify native launcher signal delivery directly - #1770

Open
John-David Dalton (jdalton) wants to merge 1 commit into
v1.xfrom
fix/native-launcher-signal-test
Open

John-David Dalton (jdalton) wants to merge 1 commit into
v1.xfrom
fix/native-launcher-signal-test

Conversation

@jdalton

Copy link
Copy Markdown
Contributor

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.

Failing Ubuntu Node 24 job

@cursor

cursor Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

PR Summary

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.

Reviewed by Cursor Bugbot for commit b314971. Configure here.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant