-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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,benchmark: stabilize child-process #13457
Conversation
if (process.platform !== 'win32') | ||
messagesLength.push(32768); | ||
const bench = common.createBenchmark(main, { | ||
// Windows does not support arguments that long |
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.
Just a suggestion, feel free to ignore: I would replace arguments
with command lines
as Windows does not really have a concept of arguments. You could even be more specific, Windows does not support command lines longer than 8191 characters
(there is no reason to believe that Microsoft is going to raise that limit).
child_process.execSync(`taskkill /f /t /pid ${child.pid}`); | ||
if (isWindows) { | ||
// Sometimes there's a yes.exe process left hanging around on Windows. | ||
try { |
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.
This try
should get rid of this error, right?
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.
Yep, just wrote #13457 (comment)
@nodejs/platform-windows @gireeshpunathil help me think about this Today in https://ci.nodejs.org/job/node-test-binary-windows/8986/RUN_SUBSET=2,VS_VERSION=vs2015,label=win2012r2/console I got:
|
Kill stress after 1000 good iterations. I call "stable". |
Prepare for landing: https://ci.nodejs.org/job/node-test-pull-request/8524/ |
also some cleanup PR-URL: nodejs#13457 Refs: nodejs#12817 Reviewed-By: Tobias Nießen <tniessen@tnie.de>
b0fff66
to
8d2bd5f
Compare
Landed in 8d2bd5f |
Extra sanity of |
This does not land cleanly in LTS. Please feel free to manually backport. Please also feel free to replace do-not-land if it is being backported |
also some cleanup
Ref: #12817
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test,benchmark