-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: fix test-vm-sigint flakiness #7854
Conversation
Set the `SIGUSR2` handler before spawning the child process to make sure the signal is always handled.
Maybe fixes #7767 ? |
LGTM CI: https://ci.nodejs.org/job/node-test-commit/4238/ |
Unfortunately, I don't think the stress test means #7767 is fixed because the stress test doesn't fail on current master either. (Or at least it hasn't yet. 1000 runs and counting: https://ci.nodejs.org/job/node-stress-single-test/815/nodes=centos5-32/console) So there's probably some weird interaction with a previous test or a specific build peculiarity or something like that going on. Regardless, if this is an improvement to the test, then awesome. I'm OK with a "maybe fixes". |
@Trott I couldn't reproduce it running the test multiple times sequentially in my |
@Trott does this LGTY? |
@santigimeno Yes, LGTM. If it fixes it (which, judging from what you say, it does) then great. If it turns out that it doesn't fix it, then it's a harmless change. |
@santigimeno Great! (I don't think there's anything holding up #7859 if you want to land it, is there?) |
You're right. Just landed it. |
LGTM |
1 similar comment
LGTM |
Now that there's code added to print the signal, it fails like this:
https://ci.nodejs.org/job/node-test-commit-linux/4427/nodes=centos5-64/console |
|
Yup, sounds good. I don’t think there’s anything speaking against landing this (and adding a |
Landed in 93ac2ea, thanks! |
Set the `SIGUSR2` handler before spawning the child process to make sure the signal is always handled. Fixes: #7767 PR-URL: #7854 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Set the `SIGUSR2` handler before spawning the child process to make sure the signal is always handled. Ref: nodejs#7854 Fixes: nodejs#7981
Set the `SIGUSR2` handler before spawning the child process to make sure the signal is always handled. Fixes: #7767 PR-URL: #7854 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
test
Description of change
Set the
SIGUSR2
handler before spawning the child process to make surethe signal is always handled.
The test was sometimes crashing in my
OS X
box when running the test suite because ofSIGUSR2
not being handled.