-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
process: load internal/async_hooks before inspector hooks registration #26866
Conversation
CI: https://ci.nodejs.org/job/node-test-pull-request/21808/ |
8ee5c8b
to
2901d50
Compare
I found a setup in |
That one was set to stress win10. This should be more relevant - |
BTW, this reminds me of.. node/lib/internal/process/execution.js Lines 92 to 98 in 6e9551e
|
Right, I always forget that you need to check the box after the label.. |
|
||
// XXX(joyeecheung): this has to be done after the initial load of | ||
// `internal/async_hooks` otherwise `async_hooks` cannot require | ||
// `internal/async_hooks`. Investigate why. |
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.
These three lines of comments can be removed now?
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.
I don't think the lines added above answers this question..the bug seems to lie in the module loading order or the scope resolution somehow. So I'd prefer to keep it until we figure out why..
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.
Looks like the order of calling setupHooks
is not the key here: https://ci.nodejs.org/job/node-stress-single-test/2192/ for cede98c is still green. (though it improves the spaghetti a bit..)
(Is it worth fast-tracking this?) |
@Trott It should fix a flake that fails 18 out of 58 CI jobs, and it's rather trivial..so I guess it should be fine fast-tracking this. For comparison: This PR (green): https://ci.nodejs.org/job/node-stress-single-test/2190/ cc @nodejs/testing please thumb this up if you are +1 to fast-tracking |
@nodejs/async_hooks Would be great to get this fast-tracked (see above comment) to fix a significant CI issue. |
Otherwise the exports of `internal/async_hooks` may be undefined when the inspector async hooks are registered. PR-URL: nodejs#26866 Fixes: nodejs#26798 Refs: nodejs#26859 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
2901d50
to
0d21299
Compare
Otherwise the exports of `internal/async_hooks` may be undefined when the inspector async hooks are registered. PR-URL: nodejs#26866 Fixes: nodejs#26798 Refs: nodejs#26859 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Otherwise the exports of
internal/async_hooks
may be undefinedwhen the inspector async hooks are registered.
Refs: #26859
Fixes: #26798
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes