module,src: add --experimental-entry-url
flag
#40003
Triggered via pull request
September 30, 2023 07:51
Status
Failure
Total duration
2h 16m 26s
Artifacts
–
Annotations
6 errors
test-asan:
test/es-module/test-esm-loader-search.js#L13
--- stderr ---
node:assert:635
throw err;
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
Comparison {
+ code: 'ERR_INVALID_URL',
+ message: 'Invalid URL',
+ name: 'TypeError'
- code: 'ERR_MODULE_NOT_FOUND',
- message: /Cannot find package 'target'/,
- name: 'Error'
}
at Object.<anonymous> (/home/runner/work/node/node/test/es-module/test-esm-loader-search.js:13:8)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1201:32)
at Module._load (node:internal/modules/cjs/loader:1017:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:106:12)
at node:internal/main/run_main_module:24:47 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: TypeError: Invalid URL
at new URL (node:internal/url:783:36)
at defaultResolve (node:internal/modules/esm/resolve:1072:16)
at assert.throws.code (/home/runner/work/node/node/test/es-module/test-esm-loader-search.js:14:9)
at getActual (node:assert:756:5)
at Function.throws (node:assert:902:24)
at Object.<anonymous> (/home/runner/work/node/node/test/es-module/test-esm-loader-search.js:13:8)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1201:32)
at Module._load (node:internal/modules/cjs/loader:1017:12) {
code: 'ERR_INVALID_URL',
input: 'target'
},
expected: {
code: 'ERR_MODULE_NOT_FOUND',
name: 'Error',
message: /Cannot find package 'target'/
},
operator: 'throws'
}
Node.js v21.0.0-pre
Command: out/Release/node --expose-internals --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/es-module/test-esm-loader-search.js
|
test-asan:
test/es-module/test-esm-resolve-type.mjs#L1
--- stderr ---
node:internal/url:783
this.#updateContext(bindingUrl.parse(input, base));
^
TypeError: Invalid URL
at new URL (node:internal/url:783:36)
at defaultResolve (node:internal/modules/esm/resolve:1072:16)
at file:///home/runner/work/node/node/test/es-module/test-esm-resolve-type.mjs:88:27
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:328:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:86:12) {
code: 'ERR_INVALID_URL',
input: 'test-module-mainjs'
}
Node.js v21.0.0-pre
Command: out/Release/node --expose-internals --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/es-module/test-esm-resolve-type.mjs
|
test-asan:
test/es-module/test-esm-type-flag-loose-files.mjs#L1
--- stderr ---
node:internal/modules/cjs/loader:1198
throw new ERR_REQUIRE_ESM(filename, true);
^
[Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/node/node/test/es-module/test-esm-type-flag-loose-files.mjs not supported.
Instead change the require of /home/runner/work/node/node/test/es-module/test-esm-type-flag-loose-files.mjs to a dynamic import() which is available in all CommonJS modules.] {
code: 'ERR_REQUIRE_ESM'
}
Node.js v21.0.0-pre
Command: out/Release/node --experimental-default-type=module --experimental-wasm-modules --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/es-module/test-esm-type-flag-loose-files.mjs
|
test-asan:
test/es-module/test-esm-type-flag-errors.mjs#L14
--- stdout ---
::debug::starting to run --experimental-default-type=module should not affect the interpretation of files with unknown extensions
βΆ --experimental-default-type=module should not affect the interpretation of files with unknown extensions
β should error on an entry point with an unknown extension (315.436077ms)
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /ERR_UNKNOWN_FILE_EXTENSION/. Input:
'(node:167115) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.\n' +
'(Use `node --trace-warnings ...` to show where the warning was created)\n' +
'/home/runner/work/node/node/test/fixtures/es-modules/package-type-module/extension.unknown:1\n' +
"export default 'unknown';\n" +
'^^^^^^\n' +
'\n' +
"SyntaxError: Unexpected token 'export'\n" +
' at internalCompileFunction (node:internal/vm:73:18)\n' +
' at wrapSafe (node:internal/modules/cjs/loader:1279:20)\n' +
' at Module._compile (node:internal/modules/cjs/loader:1333:27)\n' +
' at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)\n' +
' at Module.load (node:internal/modules/cjs/loader:1201:32)\n' +
' at Module._load (node:internal/modules/cjs/loader:1017:12)\n' +
' at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:106:12)\n' +
' at node:internal/main/run_main_module:24:47\n' +
'\n' +
'Node.js v21.0.0-pre\n'
at TestContext.<anonymous> (file:///home/runner/work/node/node/test/es-module/test-esm-type-flag-errors.mjs:14:14)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:632:9)
at async Promise.all (index 0)
at async Suite.run (node:internal/test_runner/test:948:7)
at async startSubtest (node:internal/test_runner/harness:216:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '(node:167115) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.\n(Use `node --trace-warnings ...` to show where the warning was created)\n/home/runner/work/node/node/test/fixtures/es-modules/package-type-module/extension.unknown:1\nexport default \'unknown\';\n^^^^^^\n\nSyntaxError: Unexpected token \'export\'\n at internalCompileFunction (node:internal/vm:73:18)\n at wrapSafe (node:internal/modules/cjs/loader:1279:20)\n at Module._compile (node:internal/modules/cjs/loader:1333:27)\n...',
expected: /ERR_UNKNOWN_FILE_EXTENSION/,
operator: 'match'
}
::debug::starting to run should error on an entry point with an unknown extension
::error title=should error on an entry point with an unknown extension,file=test/es-module/test-esm-type-flag-errors.mjs,line=14,col=14::Error [ERR_TEST_FAILURE]: The input did not match the regular expression /ERR_UNKNOWN_FILE_EXTENSION/. Input:
'(node:167115) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.\n' +
'(Use `node --trace-warnings ...` to show where the warning was created)\n' +
'/home/runner/work/node/node/test/fixtures/es-modules/package-type-module/extension.unknown:1\n' +
"export default 'unknown';\n" +
'^^^^^^\n' +
'\n' +
"SyntaxError: Unexpected token 'export'\n" +
' at internalCompileFunction (node:internal/vm:73:18)\n' +
' at wrapSafe (node:internal/modules/cjs/loader:1279:20)\n' +
' at Module._compile (node:internal/modules/cjs/loader:1333:27)\n' +
' at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)\n' +
' at Module.load (node:internal/modules/cjs/loader:1201:32)\n' +
' at Module._load (node:internal/modules/cjs/loader:1017:12)\n' +
' at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:106:12)\n' +
' at node:internal/main/run_main_module:24:47\n' +
'\n' +
'Node.js v21.0.0-pre\n'
at async Promise.all (index 0) {
|
test-asan:
test/es-module/test-esm-type-flag-package-scopes.mjs#L1
--- stderr ---
node:internal/modules/cjs/loader:1198
throw new ERR_REQUIRE_ESM(filename, true);
^
[Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/node/node/test/es-module/test-esm-type-flag-package-scopes.mjs not supported.
Instead change the require of /home/runner/work/node/node/test/es-module/test-esm-type-flag-package-scopes.mjs to a dynamic import() which is available in all CommonJS modules.] {
code: 'ERR_REQUIRE_ESM'
}
Node.js v21.0.0-pre
Command: out/Release/node --experimental-default-type=module --experimental-wasm-modules --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/es-module/test-esm-type-flag-package-scopes.mjs
|
test-asan
Process completed with exit code 2.
|