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-process-exec-argv flakiness #6575

Closed

Conversation

santigimeno
Copy link
Member

Checklist
  • tests and code linting passes
  • the commit message follows commit guidelines
Affected core subsystem(s)

test

Description of change

Wait for the close event before parsing the child stdout output.

Fixes: #6480

I was able to reproduce the error reported in #6480 in my OS X box. This change fixed the issue.

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label May 4, 2016
@cjihrig
Copy link
Contributor

cjihrig commented May 4, 2016

LGTM

@santigimeno
Copy link
Member Author

@mscdex mscdex added the child_process Issues and PRs related to the child_process subsystem. label May 4, 2016
@bnoordhuis
Copy link
Member

LGTM. CI is green except for Jenkins issues on armv8-ubuntu1404.

@jasnell
Copy link
Member

jasnell commented May 6, 2016

LGTM

@mhdawson
Copy link
Member

6000+ runs on test-process-exec-argv on a machine were we'd seen it fail 0.4% of the time without this change so LGTM

@bnoordhuis
Copy link
Member

By the way, the upcoming libuv release (libuv/libuv#867) contains a fix that quite possibly also resolves this.

@santigimeno
Copy link
Member Author

@bnoordhuis should this be merged anyway or just wait for the fix?

@bnoordhuis
Copy link
Member

It would be interesting to find out if it fixes the test but don't let it block you.

Wait for the `close` event before parsing the child stdout output.

Fixes: nodejs#6480
PR-URL: nodejs#6575
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@santigimeno
Copy link
Member Author

CI green expect unrelated failures: https://ci.nodejs.org/job/node-test-pull-request/2605/

santigimeno added a commit that referenced this pull request May 12, 2016
Wait for the `close` event before parsing the child stdout output.

Fixes: #6480
PR-URL: #6575
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@santigimeno
Copy link
Member Author

Landed in dffafde. Thanks!

@santigimeno santigimeno deleted the fix_text_process_exec_argv branch May 12, 2016 16:45
@santigimeno santigimeno mentioned this pull request May 13, 2016
2 tasks
evanlucas pushed a commit that referenced this pull request May 17, 2016
Wait for the `close` event before parsing the child stdout output.

Fixes: #6480
PR-URL: #6575
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@MylesBorins
Copy link
Contributor

This does not land cleanly in LTS. Added dont-land label. Please feel free to manually backport

@santigimeno santigimeno mentioned this pull request Jun 3, 2016
2 tasks
@santigimeno
Copy link
Member Author

@thealphanerd PR with the backport here: #7128

santigimeno added a commit to santigimeno/node that referenced this pull request Jun 3, 2016
Wait for the `close` event before parsing the child stdout output.

Fixes: nodejs#6480
Ref: nodejs#6575
PR-URL: nodejs#7128
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
MylesBorins pushed a commit that referenced this pull request Jun 4, 2016
Wait for the `close` event before parsing the child stdout output.

Fixes: #6480
Ref: #6575
PR-URL: #7128
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
MylesBorins pushed a commit that referenced this pull request Jun 24, 2016
Wait for the `close` event before parsing the child stdout output.

Fixes: #6480
Ref: #6575
PR-URL: #7128
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
MylesBorins pushed a commit that referenced this pull request Jun 24, 2016
Wait for the `close` event before parsing the child stdout output.

Fixes: #6480
Ref: #6575
PR-URL: #7128
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
child_process Issues and PRs related to the child_process subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intermittent failures in test-process-exec-argv
8 participants