-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Modules bootstrap refactoring #29937
Conversation
880166a
to
aa4e8b5
Compare
e662b3e
to
c4b3832
Compare
@nodejs/modules-active-members This could use some reviews. |
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.
RSLGTM assuming tests are all passing.
c4b3832
to
521f518
Compare
dfd3398
to
ab9f8cd
Compare
ab9f8cd
to
c750488
Compare
PR-URL: #29937 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Landed in a6b030d. |
PR-URL: #29937 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: #29937 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: nodejs#29937 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
this lands cleanly on v12.x-staging, but it breaks a test:
|
/cc @bmeck @guybedford could you please take a look... i did some digging and can't figure out what is broken here... seems related to domains 😅 |
I had a quick look at this this morning, and it seems like this is some interaction with domain where the error being thrown in I'm not sure what code paths this would be corresponding to personally. @joyeecheung @addaleax perhaps you have some ideas on this? |
@targos @MylesBorins I finally tracked down where in the PR this code change was coming from. The following patch should fix the issue:
|
PR-URL: #29937 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
@guybedford it looks like the repl test isn't failing on 13.x because #30907 refactored the code that was throwing. Thanks @BridgeAR I don't think we need a backport-pr anymore tbh and have pushed to staging. |
PR-URL: #29937 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This PR includes refactoring parts of the
--experimental-modules
unflagging in #29866, without actually unflagging--experimental-modules
yet, in turn simplifying the unflagging PR.The main aspect of this is separating out the runMain bootstrap from CJS, and very carefully ensuring that the async bootstrap and modules promise creation only applies when absolutely necessary, to avoid any async hooks noise.
The various other changes are there to fix test cases that fail under unflagging, I will provide context with code comments below.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes