test: fix flakyness with yes.exe#12821
Conversation
|
/cc @Trott |
| 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.
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.
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'); |
There was a problem hiding this comment.
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: James M Snell <[email protected]>
|
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #12821 Fixes: #12817 Refs: #12658 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: James M Snell <[email protected]>
|
@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. |
PR-URL: #12821 Fixes: #12817 Refs: #12658 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: James M Snell <[email protected]>
Kills
yes.exewith fire cause it's evilFixes: #12817
Ref: #12658
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test, benchmark