Uh oh!
There was an error while loading. Please reload this page.
src: check whether inspector is doing io - #13504
Conversation
ef98c6c to
29c4083Comparesam-github
commented
Jun 6, 2017
sam-github
commented
Jun 6, 2017
@refack Thanks for your suggestion, it was a good one. |
sam-github
commented
Jun 6, 2017
There was a problem hiding this comment.
DRY: if (auto io = env->inspector_agent()->io()) port = io->port();?
Should it check io->IsStarted()? The inspector has a venerable multitude of IsStarted methods...
There was a problem hiding this comment.
No. IsStarted() should be called IsInitialized(), and it always happens if the Agent was constructed, unless I very much misremember. I'll check again, but I'm pretty sure. And I agree, the word "start" in method names is a bit overused in node's c++ source.
There was a problem hiding this comment.
yes, IsStarted() means its newed a NodeInspectorClient client_, its the io_ that means its listening on a port.
a5dadff to
b5ee5a2Comparesam-github
commented
Jun 8, 2017
I changed the C++, so ci again: https://ci.nodejs.org/job/node-test-pull-request/8565/ |
sam-github
commented
Jun 9, 2017
OS X failed on
@addaleax (in the absence of an at-nodejs/async-hooks) AIX failed on
@gireeshpunathil would you know anything about that? Neither look related. |
addaleax
commented
Jun 9, 2017
we do have @nodejs/async_hooks ;) I don’t really know how that test would be flaky. |
gibfahn
commented
Jun 9, 2017
#13577 was just raised, so I believe you're okay there. |
sam-github
commented
Jun 9, 2017
ci: https://ci.nodejs.org/job/node-test-pull-request/8578/ to see if the async hooks test always fails |
gibfahn
commented
Jun 9, 2017
1000 runs on my machine (macOS sierra) with no failures, I think this is good to go. |
AndreasMadsen
commented
Jun 9, 2017
It is a real mystery. See: #13527 |
sam-github
commented
Jun 9, 2017
OK, everything passed this time except for
on centos: https://ci.nodejs.org/job/node-test-commit-linux/10482/nodes=centos7-64/ |
Inspector start means that it exists, but doesn't mean it is listening on a port, that only happens if it is doing I/O (i.e. has an io object). PR-URL: nodejs#13504Fixes: nodejs#13499 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
b5ee5a2 to
c4a61b3Comparegibfahn
commented
Jun 9, 2017
Should really have fixed that flaky test before landing this @sam-github 😉 |
Inspector start means that it exists, but doesn't mean it is listening
on a port, that only happens if it is doing I/O (i.e. has an io object).
Fixes: #13499
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
src,inspector