Skip to content
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

Merged
merged 3 commits into from
Mar 24, 2016

Conversation

novemberborn
Copy link
Member

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.

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.
@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @floatdrop, @ingro and @naptowncode to be potential reviewers

@thangngoc89
Copy link

I tested this branch. (no dependencies cache on these builds)

@novemberborn
Copy link
Member Author

@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.

@novemberborn
Copy link
Member Author

Oops hardcoded slashes in the assertions so the tests fail on Windows :(

@thangngoc89
Copy link

Maybe somehow strangely it did cache something?

Yeah. I cleaned all cache. And tests are passing on node 5.

Oops hardcoded slashes in the assertions so the tests fail on Windows :(

path.join can help

@novemberborn
Copy link
Member Author

CI passes now.

@vadimdemedes
Copy link
Contributor

LGTM ;)

@sindresorhus
Copy link
Member

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants