-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Conversation
/cc @Trott |
There was a problem hiding this 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.
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}`); |
There was a problem hiding this comment.
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..
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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.
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>
landed in 68c933c |
Post land CI: https://ci.nodejs.org/job/node-test-commit/9691/ [update] |
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 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. |
Should be Ok. |
Kills
yes.exe
with fire cause it's evilFixes: #12817
Ref: #12658
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test, benchmark