-
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
ensure preload modules are always preloaded #2253
Conversation
Will it have impact on startup time? |
No not really. |
@thefourtheye only when the flag is enabled, otherwise we are looking at a few integer checks for preloaded_module_count |
Test is failing on smartos-14 (32 and 64bit):
|
@Fishrock123 even without this patch it should never be empty... that is... concerning |
cc @nodejs/platform-solaris |
is there a person I can talk to about this, as I don't run SmartOS normally, and am completely lost as to how it could be empty/worked prior to this. |
cc @jbergstroem / @misterdjules again |
Seems fine to me. @bmeck how do you feel about just ignoring it on smartos? |
The commit message is too long and commit log has to be improved. |
@thefourtheye improved how |
const fixtureA = fixture('printA.js'); | ||
const fixtureB = fixture('printB.js'); | ||
const fixtureC = fixture('printC.js'); | ||
const fixtureThrows = fixture('throws_error4.js'); |
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 think we'd prefer if you only const
unmodified variables you add, but if you want to do these also I really don't mind.
LGTM otherwise, I'll just add some detail to the commit description if you don't. :) |
I can reproduce this fail but haven't had time to look into it. Would appreciate if @misterdjules had a moment. |
rebased. uses camelcase now. repro'd fail on smartos, trying to reduce it |
@nodejs/platform-solaris i am unsure how to test this exactly, but is closing stdin before it is fully drained dropping the content on smartos? |
ping @No9, perhaps you can lend an eye to this one since you're an Illumos user? |
If anyone else is using illumos/smartos and would like to help out reviewing that'd be great! |
also would love to additional people to @nodejs/platform-solaris if there are any |
@rvagg I'll look in over the weekend |
@No9 would you be interested in being part of the small team of people that (in my case, at least tries to) debugs sunos stuff? |
@jbergstroem Thanks for asking |
added to @nodejs/platform-solaris, thanks @No9! |
Failed on AIX in last night's run as well #6716 |
This is starting to look like some sort of race condition |
@bmeck @Fishrock123 on AIX it looks like a consistent failure. If it helps I can give one or both of you access to run on that machine. |
We should also skip on AIX for now then, but we do need to investigate more. |
This test fails on Solaris, see the PR for discussion. PR-URL: #2253 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
@bmeck looks like there are some regressions here. Adding dont-land for now, but please feel free to open a PR against v4.x-staging if this should be packported |
@thealphanerd No, those are just the result of other issues. this should be fine if it lands with #6728 |
thanks @Fishrock123 will work on that later today |
@thealphanerd onto v4? |
indeed. It is not landing cleanly |
ping @bmeck |
@thealphanerd backported against v4.5.0 (no staging exists right now?) on https://github.com/bmeck/node/tree/backport-2253 , still flaky it seems after running tests |
the staging is If it is still flaky then perhaps we should just mark this don't land? |
@thealphanerd these are just adding tests for expected behavior, if we don't want to land it thats fine |
@bmeck if that is the case then we should land it. Would you be willing to open a PR? |
This test fails on Solaris, see nodejs#2253
For consistency
-r/--require
should always preload modules; right now it works with normal startup, cluster, and eval; having preloading work with stdin and interactive mode would make this more consistent.