Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
test: fix test-debugger-pid#6584
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
Uh oh!
There was an error while loading. Please reload this page.
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 <[email protected]> Reviewed-By: Rich Trott <[email protected]>
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 <[email protected]> Reviewed-By: Rich Trott <[email protected]>
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.