-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Reject test runs when forks exit with an unexpected signal #680
Conversation
The child process is no longer killed from the main process, instead it exits upon receiving an 'exit' message. This makes the changes from <#155> redundant.
By analyzing the blame information on this pull request, we identified @floatdrop, @ingro and @naptowncode to be potential reviewers |
I tested this branch. (no dependencies cache on these builds)
|
@thangngoc89 it seems fine locally (checked out MoOx/phenomic@f89c116). Maybe somehow strangely it did cache something? The dependency cache is based on the package version which hasn't changed in master. |
Oops hardcoded slashes in the assertions so the tests fail on Windows :( |
Yeah. I cleaned all cache. And tests are passing on node 5.
|
CI passes now. |
LGTM ;) |
LGTM |
As discovered in #604 child processes can be killed by outside parties. In this case there is no exit code, though a signal is present. With this PR test runs are rejected with an appropriate error message, rather than the misleading "no test results received" message.
I've also cleaned up now redundant Node 0.10 SIGTERM handling (#155) and added a test for the existing test run rejection behavior.