test_runner: scope file-level hooks per file in no-isolation mode #74352
Annotations
6 errors, 1 warning, and 1 notice
|
test-macOS
Process completed with exit code 2.
|
|
test-macOS:
test/test-runner/test-output-randomize-output-cli-none.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'βΆ <project-root>/test/fixtures/test-runner/shards/j.cjs\n' +
+ ' β j.cjs this should pass (*ms)\n' +
+ 'β <project-root>/test/fixtures/test-runner/shards/j.cjs (*ms)\n' +
+ 'βΆ <project-root>/test/fixtures/test-runner/shards/c.cjs\n' +
+ ' β c.cjs this should pass (*ms)\n' +
+ 'β <project-root>/test/fixtures/test-runner/shards/c.cjs (*ms)\n' +
+ 'βΆ <project-root>/test/fixtures/test-runner/shards/e.cjs\n' +
+ ' β e.cjs this should pass (*ms)\n' +
+ 'β <project-root>/test/fixtures/test-runner/shards/e.cjs (*ms)\n' +
+ 'βΆ <project-root>/test/fixtures/test-runner/shards/h.cjs\n' +
+ ' β h.cjs this should pass (*ms)\n' +
+ 'β <project-root>/test/fixtures/test-runner/shards/h.cjs (*ms)\n' +
+ 'βΆ <project-root>/test/fixtures/test-runner/shards/f.cjs\n' +
+ ' β f.cjs this should pass (*ms)\n' +
+ 'β <project-root>/test/fixtures/test-runner/shards/f.cjs (*ms)\n' +
+ 'βΆ <project-root>/test/fixtures/test-runner/shards/b.cjs\n' +
+ ' β b.cjs this should pass (*ms)\n' +
+ 'β <project-root>/test/fixtures/test-runner/shards/b.cjs (*ms)\n' +
+ 'βΆ <project-root>/test/fixtures/test-runner/shards/a.cjs\n' +
+ ' β a.cjs this should pass (*ms)\n' +
+ 'β <project-root>/test/fixtures/test-runner/shards/a.cjs (*ms)\n' +
+ 'βΆ <project-root>/test/fixtures/test-runner/shards/i.cjs\n' +
+ ' β i.cjs this should pass (*ms)\n' +
+ 'β <project-root>/test/fixtures/test-runner/shards/i.cjs (*ms)\n' +
+ 'βΆ <project-root>/test/fixtures/test-runner/shards/g.cjs\n' +
+ ' β g.cjs this should pass (*ms)\n' +
+ 'β <project-root>/test/fixtures/test-runner/shards/g.cjs (*ms)\n' +
+ 'βΆ <project-root>/test/fixtures/test-runner/shards/d.cjs\n' +
+ ' β d.cjs this should pass (*ms)\n' +
+ 'β <project-root>/test/fixtures/test-runner/shards/d.cjs (*ms)\n' +
- 'β j.cjs this should pass (*ms)\n' +
- 'β c.cjs this should pass (*ms)\n' +
- 'β e.cjs this should pass (*ms)\n' +
- 'β h.cjs this should pass (*ms)\n' +
- 'β f.cjs this should pass (*ms)\n' +
- 'β b.cjs this should pass (*ms)\n' +
- 'β a.cjs this should pass (*ms)\n' +
- 'β i.cjs this should pass (*ms)\n' +
- 'β g.cjs this should pass (*ms)\n' +
- 'β d.cjs this should pass (*ms)\n' +
'βΉ Randomized test order seed: 12345\n' +
'βΉ tests 10\n' +
+ 'βΉ suites 10\n' +
- 'βΉ suites 0\n' +
'βΉ pass 10\n' +
'βΉ fail 0\n' +
'βΉ cancelled 0\n' +
'βΉ skipped 0\n' +
'βΉ todo 0\n' +
at assertSnapshot (/Users/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/Users/runner/work/node/node/node/test/common/assertSnapshot.js:208:3)
at async file:///Users/runner/work/node/node/node/test/test-runner/test-output-randomize-output-cli-none.mjs:8:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'βΆ <project-root>/test/fixtures/test-runner/shards/j.cjs\n' +
' β j.cjs this should pass (*ms)\n' +
'β <project-root>/test/fixtures/test-runner/shards/j.cjs (*ms)\n' +
'βΆ <project-root>/test/fixtures/test-runner/shards/c.cjs\n' +
' β c.cjs this should pass (*ms)\n' +
'β <project-root>/test/fixtures/test-runner/shards/c.cjs (*ms)\n' +
'βΆ <project-root>/test/fixtures/test-runner/shards/e.cjs\n' +
' β e.cjs this should pass (*ms)\n' +
'β <project-root>/test/fixtures/test-runner/shards/e.cjs (*ms)\n' +
'βΆ <project-root>/test/fixtures/test-runner/shards/h.cjs\n' +
' β h.cjs this should pass (*ms)\n' +
'β <project-root>/test/fixtures/test-runner/shards/h.cjs (*ms)\n' +
'βΆ <project-root>/test/fixtures/test-runner/shards/f.cjs\n' +
' β f.cjs this should pass (*ms)\n' +
'β <project-root>/test/fixtures/test-runner/shards/f.cjs (*ms)\n' +
'βΆ <project-root>/test/fixtures/test-runner/shards/b.cjs\n' +
' β b.cj
|
|
test-macOS:
test/test-runner/test-output-randomize-nested-scenarios-output-cli-none.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'βΆ <project-root>/test/fixtures/test-runner/randomize/internal-order-nested-scenarios.cjs\n' +
+ ' βΆ nested-scenarios\n' +
+ ' βΆ scenario describe-it\n' +
+ ' βΆ describe-it block\n' +
+ ' βΆ describe-it 2\n' +
+ ' βΆ describe-it 2-2\n' +
+ ' β describe-it 2-2-2 (*ms)\n' +
+ ' β describe-it 2-2-1 (*ms)\n' +
+ ' β describe-it 2-2-3 (*ms)\n' +
+ ' β describe-it 2-2 (*ms)\n' +
+ ' βΆ describe-it 2-1\n' +
+ ' β describe-it 2-1-2 (*ms)\n' +
+ ' β describe-it 2-1-1 (*ms)\n' +
+ ' β describe-it 2-1-3 (*ms)\n' +
+ ' β describe-it 2-1 (*ms)\n' +
+ ' βΆ describe-it 2-3\n' +
+ ' β describe-it 2-3-2 (*ms)\n' +
+ ' β describe-it 2-3-1 (*ms)\n' +
+ ' β describe-it 2-3-3 (*ms)\n' +
+ ' β describe-it 2-3 (*ms)\n' +
+ ' β describe-it 2 (*ms)\n' +
+ ' βΆ describe-it 1\n' +
+ ' βΆ describe-it 1-2\n' +
+ ' β describe-it 1-2-2 (*ms)\n' +
+ ' β describe-it 1-2-1 (*ms)\n' +
+ ' β describe-it 1-2-3 (*ms)\n' +
+ ' β describe-it 1-2 (*ms)\n' +
+ ' βΆ describe-it 1-1\n' +
+ ' β describe-it 1-1-2 (*ms)\n' +
+ ' β describe-it 1-1-1 (*ms)\n' +
+ ' β describe-it 1-1-3 (*ms)\n' +
+ ' β describe-it 1-1 (*ms)\n' +
+ ' βΆ describe-it 1-3\n' +
+ ' β describe-it 1-3-2 (*ms)\n' +
+ ' β describe-it 1-3-1 (*ms)\n' +
+ ' β describe-it 1-3-3 (*ms)\n' +
+ ' β describe-it 1-3 (*ms)\n' +
+ ' β describe-it 1 (*ms)\n' +
+ ' βΆ describe-it 3\n' +
+ ' βΆ describe-it 3-2\n' +
+ ' β describe-it 3-2-2 (*ms)\n' +
+ ' β describe-it 3-2-1 (*ms)\n' +
+ ' β describe-it 3-2-3 (*ms)\n' +
+ ' β describe-it 3-2 (*ms)\n' +
+ ' βΆ describe-it 3-1\n' +
+ ' β describe-it 3-1-2 (*ms)\n' +
+ ' β describe-it 3-1-1 (*ms)\n' +
+ ' β describe-it 3-1-3 (*ms)\n' +
+ ' β describe-it 3-1 (*ms)\n' +
+ ' βΆ describe-it 3-3\n' +
+ ' β describe-it 3-3-2 (*ms)\n' +
+ ' β describe-it 3-3-1 (*ms)\n' +
+ ' β describe-it 3-3-3 (*ms)\n' +
+ ' β describe-it 3-3 (*ms)\n' +
+ ' β describe-it 3 (*ms)\n' +
+ ' β describe-it block (*ms)\n' +
+ ' β scenario describe-it (*ms)\n' +
+ ' βΆ scenario static-no-await\n' +
+ ' βΆ static-no-await block\n' +
+ ' βΆ static-no-await 2\n' +
+ ' βΆ static-no-await 2-2\n' +
+ ' β static-no-await 2-2-2 (*ms)\n' +
+ ' β static-no-await 2-2-1 (*ms)\n' +
+ ' β static-no-await 2-2-3 (*ms)\n' +
+ ' β static-no-await 2-2 (*ms)\n' +
+ ' βΆ static-no-await 2-1\n' +
+ ' β static-no-await 2-1-2 (*ms)\n' +
+ ' β static-no-await 2-1-1 (*ms)\n' +
+ ' β static-no-await 2-1-3 (*ms)\n' +
+ ' β static-no-await 2-1 (*ms)\n' +
+ ' βΆ static-no-await 2-3\n' +
+ ' β static-no-await 2-3-2 (*ms)\n' +
+ ' β static-no-await 2-3-1 (*ms)\n' +
+ ' β static-no-await 2-3-3 (*ms)\n' +
+ ' β static-no-await 2-3 (*ms)\n' +
+ ' β static-no-await 2 (*ms)\n' +
+ ' βΆ static-no-await 1\n' +
+ ' βΆ static-no-await 1-2\n' +
+ ' β static-no-await 1-2-2 (*ms)\n' +
+ ' β static-no-await 1-2-1 (*ms)\n' +
+ ' β static-no-await 1-2-3 (*ms)\n' +
+ ' β static-no-await 1-2 (*ms)\n' +
+ ' βΆ static-n
|
|
test-macOS:
test/parallel/test-runner-global-setup-teardown.mjs#L514
--- stdout ---
Test failure: 'should execute globalSetup and globalTeardown correctly with imported module containing tests'
Location: test/parallel/test-runner-global-setup-teardown.mjs:483:7
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /suites 0/. Input:
'Global setup executed\n' +
'β Imported module Ok (0.394458ms)\n' +
'β Imported module Fail (0.106416ms)\n' +
'βΆ /Users/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js\n' +
' β verify setup was executed (0.209625ms)\n' +
' β another simple test (0.058458ms)\n' +
'β /Users/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js (0.396791ms)\n' +
'Global teardown executed\n' +
'βΉ tests 4\n' +
'βΉ suites 1\n' +
'βΉ pass 3\n' +
'βΉ fail 1\n' +
'βΉ cancelled 0\n' +
'βΉ skipped 0\n' +
'βΉ todo 0\n' +
'βΉ duration_ms 11.114667\n' +
'\n' +
'β failing tests:\n' +
'\n' +
'test at test/fixtures/test-runner/global-setup-teardown/imported-module-with-test.mjs:4:1\n' +
'β Imported module Fail (0.106416ms)\n' +
' Error: fail\n' +
' at TestContext.<anonymous> (file:///Users/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/imported-module-with-test.mjs:4:44)\n' +
' at Test.runInAsyncScope (node:async_hooks:226:14)\n' +
' at Test.run (node:internal/test_runner/test:1272:25)\n' +
' at Test.processPendingSubtests (node:internal/test_runner/test:887:18)\n' +
' at Test.postRun (node:internal/test_runner/test:1401:19)\n' +
' at Test.run (node:internal/test_runner/test:1329:12)\n' +
' at async startSubtestAfterBootstrap (node:internal/test_runner/harness:385:3)\n'
at TestContext.<anonymous> (file:///Users/runner/work/node/node/node/test/parallel/test-runner-global-setup-teardown.mjs:514:16)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1279:7)
at async Suite.processPendingSubtests (node:internal/test_runner/test:887:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'Global setup executed\n' +
'β Imported module Ok (0.394458ms)\n' +
'β Imported module Fail (0.106416ms)\n' +
'βΆ /Users/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js\n' +
' β verify setup was executed (0.209625ms)\n' +
' β another simple test (0.058458ms)\n' +
'β /Users/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js (0.396791ms)\n' +
'Global teardown executed\n' +
'βΉ tests 4\n' +
'βΉ suites 1\n' +
'...',
expected: /suites 0/,
operator: 'match',
diff: 'simple'
}
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /Users/runner/work/node/node/node/test/parallel/test-runner-global-setup-teardown.mjs
|
|
test-macOS:
test/parallel/test-runner-cli.js#L39
--- stderr ---
node:internal/assert/utils:146
throw error;
^
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /not ok 2 - this should fail/. Input:
'TAP version 13\n' +
'# Subtest: index.test.js\n' +
' # Subtest: this should pass\n' +
' ok 1 - this should pass\n' +
' ---\n' +
' duration_ms: 0.299625\n' +
" type: 'test'\n" +
' ...\n' +
' 1..1\n' +
'ok 1 - index.test.js\n' +
' ---\n' +
' duration_ms: 0.769459\n' +
" type: 'suite'\n" +
' ...\n' +
'# Subtest: random.test.mjs\n' +
' # Subtest: this should fail\n' +
' not ok 1 - this should fail\n' +
' ---\n' +
' duration_ms: 0.120333\n' +
" type: 'test'\n" +
" location: '/Users/runner/work/node/node/node/test/fixtures/test-runner/default-behavior/random.test.mjs:3:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'this is a failing test'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (file:///Users/runner/work/node/node/node/test/fixtures/test-runner/default-behavior/random.test.mjs:4:9)\n' +
' Test.runInAsyncScope (node:async_hooks:226:14)\n' +
' Test.run (node:internal/test_runner/test:1272:25)\n' +
' Test.start (node:internal/test_runner/test:1167:17)\n' +
' node:internal/test_runner/test:1688:71\n' +
' node:internal/per_context/primordials:466:82\n' +
' new Promise (<anonymous>)\n' +
' new SafePromise (node:internal/per_context/primordials:435:3)\n' +
' node:internal/per_context/primordials:466:9\n' +
' Array.map (<anonymous>)\n' +
' ...\n' +
' 1..1\n' +
'not ok 2 - random.test.mjs\n' +
' ---\n' +
' duration_ms: 0.188333\n' +
" type: 'suite'\n" +
" location: '/Users/runner/work/node/node/node/test/fixtures/test-runner/default-behavior/random.test.mjs:1:1'\n" +
" failureType: 'subtestsFailed'\n" +
" error: '1 subtest failed'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
'# Subtest: subdir/subdir_test.js\n' +
'ok 3 - subdir/subdir_test.js\n' +
' ---\n' +
' duration_ms: 0.033959\n' +
" type: 'suite'\n" +
' ...\n' +
'# Subtest: test/random.cjs\n' +
' # Subtest: this should pass\n' +
' ok 1 - this should pass\n' +
' ---\n' +
' duration_ms: 0.063875\n' +
" type: 'test'\n" +
' ...\n' +
' 1..1\n' +
'ok 4 - test/random.cjs\n' +
' ---\n' +
' duration_ms: 0.116917\n' +
" type: 'suite'\n" +
' ...\n' +
'# Subtest: test/skip_by_name.cjs\n' +
' # Subtest: this should be skipped\n' +
' ok 1 - this should be skipped\n' +
' ---\n' +
' duration_ms: 0.080209\n' +
" type: 'test'\n" +
' ...\n' +
' # Subtest: this should be executed\n' +
' ok 2 - this should be executed\n' +
' ---\n' +
' duration_ms: 0.053292\n' +
" type: 'test'\n" +
' ...\n' +
' 1..2\n' +
'ok 5 - test/skip_by_name.cjs\n' +
' ---\n' +
' duration_ms: 0.223834\n' +
" type: 'suite'\n" +
' ...\n' +
'# Subtest: test/suite_and_test.cjs\n' +
' # Subtest: this is a suite\n' +
' ok 1 - this is a suite\n' +
' ---\n' +
' duration_ms: 0.026667\n' +
" type: 'suite'\n" +
' ...\n' +
' # Subtest: this is a test\n' +
' ok 2 - this is a test\n' +
' ---\n' +
' duration_ms: 0.033917\n' +
" type: 'test'\n" +
' ...\n' +
' 1..2\n' +
'ok 6 - test/suite_and_test.cjs\n' +
' ---\n' +
' duration_ms: 0.156959\n' +
" type: 'suite'\n" +
' ...\n' +
'1..6\n' +
'# tests 6\n' +
'# suites 7\n' +
'# pass 5\n' +
'# fail 1\n' +
'# cancelled 0\n' +
'# skipped 0\n' +
'# todo 0\n' +
'# duration_ms 19.76275\n'
at Object.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-runner-cli.js:39:12)
at Module._compile (node:internal/modules/cjs/loader:1829:14)
at Object..js (node:internal/modules/cjs/loader:1969:10)
at Module.load (node:inte
|
|
test-macOS:
test/parallel/test-inspector-dom-storage.js#L75
--- stderr ---
Debugger listening on ws://127.0.0.1:58551/d1f91c6d-f019-486f-96e3-c76c015a190f
For help, see: https://nodejs.org/en/docs/inspector
node:inspector:212
emitProtocolEvent(eventName, params);
^
TypeError: Missing newValue in event
at broadcastToFrontend (node:inspector:212:3)
at Object.domStorageItemAdded (node:inspector:233:36)
at itemAdded (node:internal/inspector/webstorage:53:14)
at InspectorLocalStorage.setItem (node:internal/inspector/webstorage:13:7)
at test (/Users/runner/work/node/node/node/test/parallel/test-inspector-dom-storage.js:75:16)
at async testGetData (/Users/runner/work/node/node/node/test/parallel/test-inspector-dom-storage.js:62:3)
at async test (/Users/runner/work/node/node/node/test/parallel/test-inspector-dom-storage.js:167:3)
Node.js v26.0.0-pre
Command: out/Release/node --inspect=0 --experimental-storage-inspection --localstorage-file=./localstorage.db /Users/runner/work/node/node/node/test/parallel/test-inspector-dom-storage.js
|
|
test-macOS
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
sccache stats
61% - 2973 hits, 1896 misses, 0 errors
|