| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
s/path/patch/ ?
Sorry, something went wrong.
There was a problem hiding this comment.
what if it throws because the child exited, wouldn't that be success?
Sorry, something went wrong.
There was a problem hiding this comment.
I'm not sure that I understand the question. Do you mean if Node decides to kill the child process, but in the interim it exits on its own? If exithandler() runs (via the close handler for example), then the error won't be reported because it contains a check to make sure it doesn't run twice.
FWIW, this is the code path being tested.
Sorry, something went wrong.
There was a problem hiding this comment.
node could decided to kill the child, but between when it decided and the child is killed, the child can exit. It would be possible to special case
Line 265 in 3268863
Sorry, something went wrong.
This commit adds code coverage for the scenario where exec() kills a child process, but the call to ChildProcess#kill() throws an exception. PR-URL: nodejs#11038 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
CI: https://ci.nodejs.org/job/node-test-pull-request/6104/ EDIT: CI: https://ci.nodejs.org/job/node-test-pull-request/6342/ |
Sorry, something went wrong.
|
CI was 💚 |
Sorry, something went wrong.
|
It's been sitting for a bit, new CI: https://ci.nodejs.org/job/node-test-pull-request/6461/ |
Sorry, something went wrong.
This commit adds code coverage for the scenario where exec() kills a child process, but the call to ChildProcess#kill() throws an exception. PR-URL: #11038 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
|
We'll have to watch this test carefully. I hadn't landed this yet because it appeared to be flakey on Windows. |
Sorry, something went wrong.
|
Stress test on Windows: https://ci.nodejs.org/job/node-stress-single-test/1141/ |
Sorry, something went wrong.
|
Stress test results: OK: 5844 NOT OK: 4155 TOTAL: 9999. This is looping the test sequentially. @cjihrig should we revert? Mark flaky on windows? |
Sorry, something went wrong.
|
I'd be OK with either. I think there might be a genuine bug with kill() on Windows, so maybe marking it as flaky will keep it on the radar. |
Sorry, something went wrong.
PR-URL: nodejs#12054 Ref: nodejs#12053 Ref: nodejs#11038 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit adds code coverage for the scenario where exec() kills a child process, but the call to ChildProcess#kill() throws an exception. PR-URL: #11038 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
| Back | FazBrowse Home | New Git URL |
This commit adds code coverage for the scenario where exec() kills a child process, but the call to ChildProcess#kill() throws an exception.
Checklist
Affected core subsystem(s)
test