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 |
test/parallel/test-preload.js
Outdated
There was a problem hiding this comment.
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/--requireshould 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.