Uh oh!
There was an error while loading. Please reload this page.
test: whitelist the expected modules in test-bootstrap-modules.js - #26531
Conversation
richardlau
commented
Mar 8, 2019
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 |
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ede623a to
0cefbacComparerichardlau
commented
Mar 11, 2019
richardlau
commented
Mar 11, 2019
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
4ce459aCompareForced 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 |
richardlau
commented
Mar 12, 2019
rvagg
commented
Mar 12, 2019
Sorry, I was reprovisioning a smartos17 machine when this was running. Submitted a resume @ https://ci.nodejs.org/job/node-test-commit-smartos/24405/ |
richardlau
commented
Mar 13, 2019
Need to adjust the test for #26501 (comment). |
richardlau
commented
Mar 13, 2019
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-modulesevents.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
d568ae4CompareNew 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
0c1e93bComparerichardlau
commented
Mar 13, 2019
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