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

test: fix test-child-process-send-returns-boolean #20136

Closed
wants to merge 1 commit into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Apr 18, 2018

test-child-process-send-returns-boolean was unreliable in CI and
locally.

  • use 'SIGKILL' for more reliable process termination
  • replace callback with assert.ifError()
  • increase interval in fixture from 500ms to 9999ms. It's only purpose
    is to keep the process from exiting.

Fixes: #20135

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

test-child-process-send-returns-boolean was unreliable in CI and
locally.

* use 'SIGKILL' for more reliable process termination
* replace callback with assert.ifError()
* increase interval in fixture from 500ms to 9999ms. It's only purpose
  is to keep the process from exiting.

Fixes: nodejs#20135
@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Apr 18, 2018
@Trott
Copy link
Member Author

Trott commented Apr 18, 2018

@cjihrig
Copy link
Contributor

cjihrig commented Apr 18, 2018

From #20135:

(The timeout also has the unfortunate side effect of leaving a child process running.)

Maybe set the timeout in the child process to a few minutes and have it exit afterwards. By then, it should have either been killed, or we can assume something went wrong with the test.

@Trott
Copy link
Member Author

Trott commented Apr 18, 2018

Stress test against master (should fail): https://ci.nodejs.org/job/node-stress-single-test/1823/

Stress test against this PR (should pass): https://ci.nodejs.org/job/node-stress-single-test/1824/

@Trott
Copy link
Member Author

Trott commented Apr 18, 2018

macOS re-run (failure was in an unrelated test): https://ci.nodejs.org/job/node-test-commit-osx/17928/

@Trott
Copy link
Member Author

Trott commented Apr 20, 2018

Re-run of the macOS re-run: https://ci.nodejs.org/job/node-test-commit-osx/17978/

Trott added a commit to Trott/io.js that referenced this pull request Apr 20, 2018
test-child-process-send-returns-boolean was unreliable in CI and
locally.

* use 'SIGKILL' for more reliable process termination
* replace callback with assert.ifError()
* increase interval in fixture from 500ms to 9999ms. It's only purpose
  is to keep the process from exiting.

Fixes: nodejs#20135

PR-URL: nodejs#20136
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
@Trott
Copy link
Member Author

Trott commented Apr 20, 2018

Landed in 6e6913b

@Trott Trott closed this Apr 20, 2018
jasnell pushed a commit that referenced this pull request Apr 20, 2018
test-child-process-send-returns-boolean was unreliable in CI and
locally.

* use 'SIGKILL' for more reliable process termination
* replace callback with assert.ifError()
* increase interval in fixture from 500ms to 9999ms. It's only purpose
  is to keep the process from exiting.

Fixes: #20135

PR-URL: #20136
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
@Trott Trott deleted the fix-send branch January 13, 2022 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate flaky parallel/test-child-process-send-returns-boolean
7 participants