Uh oh!
There was an error while loading. Please reload this page.
test: fix test-debugger-pid - #6584
Conversation
santigimeno
commented
May 4, 2016
cjihrig
commented
May 5, 2016
The test in question failed during the CI run. |
santigimeno
commented
May 5, 2016
It looks like the output in Does anyone know if it has been always like this? |
bnoordhuis
commented
May 6, 2016
@santigimeno Grep for the Windows version of DebugProcess() in src/node.cc. That error you're seeing is the 'uncaughtException' event handler in lib/_debugger.js. I speculate this code fails with the error message from OpenProcess() call in DebugProcess() instead of the expected ESRCH exception, and that ends up triggering the handler. |
d4b7364 to
67c75b5Comparesantigimeno
commented
May 10, 2016
@bnoordhuis yes, thanks for looking into it. I can confirm your speculation and the error reported in I have updated the PR so it handles the Windows case accordingly. CI run: https://ci.nodejs.org/job/node-test-commit/3248/. Apart from the usual suspects the run looks good. |
bnoordhuis
commented
May 10, 2016
I think I'd rather just skip the test on Windows instead of checking for that 'There was an internal error' message. |
santigimeno
commented
May 10, 2016
I'm also checking for the |
bnoordhuis
commented
May 10, 2016
Some test coverage is better than no coverage, I suppose. I'll leave it up to you, LGTM either way. |
santigimeno
commented
May 10, 2016
/cc @nodejs/testing what do you think? It's fine by me either way |
Trott
commented
May 11, 2016
LGTM the way it is. Fine skipping on Windows too. Slight preference for leaving it the way it is so that if the behavior ever becomes consistent, we find out rather than forever skipping the test. |
The current format that prints the process PID before the actual message. Adapt the test so it also passes on Windows, that emits a different message from the rest of platforms. Move the test to parallel. PR-URL: nodejs#6584 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
santigimeno
commented
May 11, 2016
One last CI run: https://ci.nodejs.org/job/node-test-pull-request/2573/ and it's green. |
santigimeno
commented
May 11, 2016
Finally I left the |
Trott
commented
May 11, 2016
Looks like this was landed in 588cfc5 |
The current format that prints the process PID before the actual message. Adapt the test so it also passes on Windows, that emits a different message from the rest of platforms. Move the test to parallel. PR-URL: #6584 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
MylesBorins
commented
Jun 2, 2016
@Trott lts? |
Trott
commented
Jun 2, 2016
@thealphanerd I think perhaps you meant to ping @santigimeno rather than me? |
santigimeno
commented
Jun 3, 2016
@thealphanerd No, it should not be backported. It works as expected in 4.x. |
Checklist
Affected core subsystem(s)
test
Description of change
And move it to parallel.