-
Notifications
You must be signed in to change notification settings - Fork 30k
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
test: whitelist the expected modules in test-bootstrap-modules.js #26531
Conversation
This is a draft because I highly suspect it will fail The list(s) of modules are what is currently there at the moment (basically I kept running with and without worker threads and added the modules shown in the assertion failure message until the test passed). (As an aside I found the default |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ede623a
to
0cefbac
Compare
Pushed a small fixup. New CI is yellow: https://ci.nodejs.org/job/node-test-pull-request/21416/ This should be good to go, pending reviews. |
4c06af2
to
4ce459a
Compare
Forced pushed to fix after recent changes (#26523 and #26513 (not shown below as Travis doesn't run coverage)) changed the list: https://travis-ci.com/nodejs/node/jobs/184020354#L5847-L5868
Note that #26523 actually reduced the number of modules loaded (🎉), but didn't reduce the count in the version of |
Sorry, I was reprovisioning a smartos17 machine when this was running. Submitted a resume @ https://ci.nodejs.org/job/node-test-commit-smartos/24405/ |
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
Need to adjust the test for #26501 (comment). |
For posterity, these are the adjustments required: -bash-4.2$ ./tools/test.py --worker test/parallel/test-bootstrap-modules.js
=== release test-bootstrap-modules ===
Path: parallel/test-bootstrap-modules
events.js:174
throw er; // Unhandled 'error' event
^
AssertionError [ERR_ASSERTION]: These modules were unexpectedly loaded:
Internal Binding heap_utils,
Internal Binding stream_wrap,
Internal Binding uv,
NativeModule internal/stream_base_commons
at Object.<anonymous> (/home/users/riclau/sandbox/github/nodejs/test/parallel/test-bootstrap-modules.js:123:8)
at Module._compile (internal/modules/cjs/loader.js:813:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:824:10)
at Module.load (internal/modules/cjs/loader.js:680:32)
at tryModuleLoad (internal/modules/cjs/loader.js:612:12)
at Function.Module._load (internal/modules/cjs/loader.js:604:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:876:12)
at MessagePort.port.on (internal/main/worker_thread.js:119:25)
at MessagePort.emit (events.js:198:13)
at MessagePort.onmessage (internal/worker/io.js:69:8)
Emitted 'error' event at:
at Worker.[kOnErrorMessage] (internal/worker.js:147:10)
at Worker.[kOnMessage] (internal/worker.js:157:37)
at MessagePort.Worker.(anonymous function).on (internal/worker.js:90:57)
at MessagePort.emit (events.js:198:13)
at MessagePort.onmessage (internal/worker/io.js:69:8)
Command: out/Release/node --expose-internals /home/users/riclau/sandbox/github/nodejs/tools/run-worker.js /home/users/riclau/sandbox/github/nodejs/test/parallel/test-bootstrap-modules.js
[00:00|% 100|+ 0|- 1]: Done
-bash-4.2$ |
4ce459a
to
d568ae4
Compare
New CI: https://ci.nodejs.org/job/node-test-pull-request/21512/ (✔️) Could I get another review? This test is obviously sensitive to bootstrap refactorings that have been going on and I have had to adjust the lists of modules in the test twice now as other PRs have landed (arguably those PRs should have been adjusting the test with or without the changes in this PR as they affected which modules are loaded by the bootstrap process). |
Be explicit on the modules that are expected to be loaded and add an appropriate assertion failure message to help debug when the list changes. Fixes: nodejs#23884 PR-URL: nodejs#26531 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
d568ae4
to
0c1e93b
Compare
Landed in 0c1e93b. |
Be explicit on the modules that are expected to be loaded and add an appropriate assertion failure message to help debug when the list changes. Fixes: nodejs#23884 PR-URL: nodejs#26531 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Be explicit on the modules that are expected to be found and add an
appropriate assertion failure message to help debug when the list
changes.
Fixes: #23884
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes