Skip to content

test: fix flakyness with yes.exe#12821

Closed
refack wants to merge 0 commit into
nodejs:masterfrom
refack:fix-12817
Closed

test: fix flakyness with yes.exe#12821
refack wants to merge 0 commit into
nodejs:masterfrom
refack:fix-12817

Conversation

@refack

@refack refack commented May 4, 2017

Copy link
Copy Markdown
Contributor

Kills yes.exe with fire cause it's evil

Fixes: #12817
Ref: #12658

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

test, benchmark

@nodejs-github-bot nodejs-github-bot added benchmark Issues and PRs related to the benchmark subsystem. child_process Issues and PRs related to the child_process subsystem. labels May 4, 2017
@refack

refack commented May 4, 2017

Copy link
Copy Markdown
Contributor Author

/cc @Trott
Maybe we should find something more congenial then yes.exe
💡
🤓
Maybe a node script?

@Trott Trott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if CI is green.

@refack

refack commented May 4, 2017

Copy link
Copy Markdown
Contributor Author

child.kill();
if (process.platform === 'win32') {
// Sometimes there's a yes.exe process left hanging around on Windows...
child_process.execSync(`taskkill /f /t /pid ${child.pid}`);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is failing...

ReferenceError: child_process is not defined

Only the child_process.spawn is stored in a variable above..

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 😞
I should keep the late night commits to a minimum...

// output message lengths, and tries to read 8GB of output

const os = require('os');
const child_process = require('child_process');

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per test style guide. Even though it's a benchmark IMHO still a good idea.

@refack

refack commented May 4, 2017

Copy link
Copy Markdown
Contributor Author

refack added a commit to refack/node that referenced this pull request May 6, 2017
PR-URL: nodejs#12821
Fixes: nodejs#12817
Refs: nodejs#12658
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@refack refack closed this May 6, 2017
@refack

refack commented May 6, 2017

Copy link
Copy Markdown
Contributor Author

landed in 68c933c

@refack refack deleted the fix-12817 branch May 6, 2017 12:23
@refack

refack commented May 6, 2017

Copy link
Copy Markdown
Contributor Author

Post land CI: https://ci.nodejs.org/job/node-test-commit/9691/

[update]
CI passed

anchnk pushed a commit to anchnk/node that referenced this pull request May 19, 2017
PR-URL: nodejs#12821
Fixes: nodejs#12817
Refs: nodejs#12658
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@jasnell jasnell mentioned this pull request May 11, 2017
@gibfahn gibfahn mentioned this pull request Jun 15, 2017
3 tasks
gibfahn pushed a commit that referenced this pull request Jun 20, 2017
PR-URL: #12821
Fixes: #12817
Refs: #12658
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@gibfahn

gibfahn commented Jun 20, 2017

Copy link
Copy Markdown
Member

@refack I've landed this on v6.x, seems low risk, and should hopefully reduce CI flakyness on v6.x.

If you think it shouldn't have landed LMK.

@refack

refack commented Jun 20, 2017

Copy link
Copy Markdown
Contributor Author

If you think it shouldn't have landed LMK.

Should be Ok.

MylesBorins pushed a commit that referenced this pull request Jul 11, 2017
PR-URL: #12821
Fixes: #12817
Refs: #12658
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorins MylesBorins mentioned this pull request Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmark Issues and PRs related to the benchmark subsystem. child_process Issues and PRs related to the child_process subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

investigate flaky test-benchmark-child-process on Windows

7 participants