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 flakyness with yes.exe #12821

Closed
wants to merge 0 commits into from
Closed

Conversation

refack
Copy link
Contributor

@refack refack commented May 4, 2017

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
Copy link
Contributor Author

refack commented May 4, 2017

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

Copy link
Member

@Trott Trott left a comment

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
Copy link
Contributor Author

refack commented May 4, 2017

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

const os = require('os');
const child_process = require('child_process');
Copy link
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
Copy link
Contributor Author

refack commented May 4, 2017

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
Copy link
Contributor Author

refack commented May 6, 2017

landed in 68c933c

@refack refack deleted the fix-12817 branch May 6, 2017 12:23
@refack
Copy link
Contributor Author

refack commented May 6, 2017

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
Copy link
Member

gibfahn commented Jun 20, 2017

@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
Copy link
Contributor Author

refack commented Jun 20, 2017

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