Skip to content

test_runner: scope file-level hooks per file in --test-isolation=none #82240

test_runner: scope file-level hooks per file in --test-isolation=none

test_runner: scope file-level hooks per file in --test-isolation=none #82240

Triggered via pull request March 16, 2026 17:59
Status Failure
Total duration 32m 4s
Artifacts

test-linux.yml

on: pull_request
Matrix: test-linux
Fit to window
Zoom out
Zoom in

Annotations

8 errors, 2 warnings, and 2 notices
test-linux (ubuntu-24.04-arm)
Process completed with exit code 2.
test-linux (ubuntu-24.04-arm): 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.770607ms)\n' + 'βœ– Imported module Fail (0.193301ms)\n' + 'β–Ά /home/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js\n' + ' βœ” verify setup was executed (0.337322ms)\n' + ' βœ” another simple test (0.132492ms)\n' + 'βœ” /home/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js (0.731357ms)\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 16.723385\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.193301ms)\n' + ' Error: fail\n' + ' at TestContext.<anonymous> (file:///home/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:1201:25)\n' + ' at Test.processPendingSubtests (node:internal/test_runner/test:831:18)\n' + ' at Test.postRun (node:internal/test_runner/test:1330:19)\n' + ' at Test.run (node:internal/test_runner/test:1258:12)\n' + ' at async startSubtestAfterBootstrap (node:internal/test_runner/harness:385:3)\n' at TestContext.<anonymous> (file:///home/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:1208:7) at async Suite.processPendingSubtests (node:internal/test_runner/test:831:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Global setup executed\n' + 'βœ” Imported module Ok (0.770607ms)\n' + 'βœ– Imported module Fail (0.193301ms)\n' + 'β–Ά /home/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js\n' + ' βœ” verify setup was executed (0.337322ms)\n' + ' βœ” another simple test (0.132492ms)\n' + 'βœ” /home/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js (0.731357ms)\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 /home/runner/work/node/node/node/test/parallel/test-runner-global-setup-teardown.mjs
test-linux (ubuntu-24.04-arm): test/parallel/test-runner-enqueue-file-syntax-error.js#L0
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/node/node/node/test/parallel/test-runner-enqueue-file-syntax-error.js
test-linux (ubuntu-24.04-arm): 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.506143\n' + " type: 'test'\n" + ' ...\n' + ' 1..1\n' + 'ok 1 - index.test.js\n' + ' ---\n' + ' duration_ms: 1.442722\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.252007\n' + " type: 'test'\n" + " location: '/home/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:///home/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:1201:25)\n' + ' Test.start (node:internal/test_runner/test:1096:17)\n' + ' node:internal/test_runner/test:1617: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.397523\n' + " type: 'suite'\n" + " location: '/home/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.060066\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.949964\n' + " type: 'test'\n" + ' ...\n' + ' 1..1\n' + 'ok 4 - test/random.cjs\n' + ' ---\n' + ' duration_ms: 1.213468\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.641298\n' + " type: 'test'\n" + ' ...\n' + ' # Subtest: this should be executed\n' + ' ok 2 - this should be executed\n' + ' ---\n' + ' duration_ms: 4.819604\n' + " type: 'test'\n" + ' ...\n' + ' 1..2\n' + 'ok 5 - test/skip_by_name.cjs\n' + ' ---\n' + ' duration_ms: 5.92086\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.038337\n' + " type: 'suite'\n" + ' ...\n' + ' # Subtest: this is a test\n' + ' ok 2 - this is a test\n' + ' ---\n' + ' duration_ms: 0.064225\n' + " type: 'test'\n" + ' ...\n' + ' 1..2\n' + 'ok 6 - test/suite_and_test.cjs\n' + ' ---\n' + ' duration_ms: 0.247608\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 69.681934\n' at Object.<anonymous> (/home/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:internal
test-linux (ubuntu-24.04)
Process completed with exit code 2.
test-linux (ubuntu-24.04): 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 (1.215868ms)\n' + 'βœ– Imported module Fail (0.275858ms)\n' + 'β–Ά /home/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js\n' + ' βœ” verify setup was executed (0.43785ms)\n' + ' βœ” another simple test (0.126793ms)\n' + 'βœ” /home/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js (0.899939ms)\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 18.327418\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.275858ms)\n' + ' Error: fail\n' + ' at TestContext.<anonymous> (file:///home/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:1201:25)\n' + ' at Test.processPendingSubtests (node:internal/test_runner/test:831:18)\n' + ' at Test.postRun (node:internal/test_runner/test:1330:19)\n' + ' at Test.run (node:internal/test_runner/test:1258:12)\n' + ' at async startSubtestAfterBootstrap (node:internal/test_runner/harness:385:3)\n' at TestContext.<anonymous> (file:///home/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:1208:7) at async Suite.processPendingSubtests (node:internal/test_runner/test:831:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'Global setup executed\n' + 'βœ” Imported module Ok (1.215868ms)\n' + 'βœ– Imported module Fail (0.275858ms)\n' + 'β–Ά /home/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js\n' + ' βœ” verify setup was executed (0.43785ms)\n' + ' βœ” another simple test (0.126793ms)\n' + 'βœ” /home/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js (0.899939ms)\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 /home/runner/work/node/node/node/test/parallel/test-runner-global-setup-teardown.mjs
test-linux (ubuntu-24.04): test/parallel/test-runner-enqueue-file-syntax-error.js#L0
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/node/node/node/test/parallel/test-runner-enqueue-file-syntax-error.js
test-linux (ubuntu-24.04): 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.681371\n' + " type: 'test'\n" + ' ...\n' + ' 1..1\n' + 'ok 1 - index.test.js\n' + ' ---\n' + ' duration_ms: 1.704195\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: 3.431144\n' + " type: 'test'\n" + " location: '/home/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:///home/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:1201:25)\n' + ' Test.start (node:internal/test_runner/test:1096:17)\n' + ' node:internal/test_runner/test:1617: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: 3.643971\n' + " type: 'suite'\n" + " location: '/home/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.100741\n' + " type: 'suite'\n" + ' ...\n' + '# Subtest: test/random.cjs\n' + ' # Subtest: this should pass\n' + ' ok 1 - this should pass\n' + ' ---\n' + ' duration_ms: 1.074245\n' + " type: 'test'\n" + ' ...\n' + ' 1..1\n' + 'ok 4 - test/random.cjs\n' + ' ---\n' + ' duration_ms: 1.238591\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.618383\n' + " type: 'test'\n" + ' ...\n' + ' # Subtest: this should be executed\n' + ' ok 2 - this should be executed\n' + ' ---\n' + ' duration_ms: 0.875013\n' + " type: 'test'\n" + ' ...\n' + ' 1..2\n' + 'ok 5 - test/skip_by_name.cjs\n' + ' ---\n' + ' duration_ms: 2.555631\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.060044\n' + " type: 'suite'\n" + ' ...\n' + ' # Subtest: this is a test\n' + ' ok 2 - this is a test\n' + ' ---\n' + ' duration_ms: 0.08809\n' + " type: 'test'\n" + ' ...\n' + ' 1..2\n' + 'ok 6 - test/suite_and_test.cjs\n' + ' ---\n' + ' duration_ms: 0.476461\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 74.092192\n' at Object.<anonymous> (/home/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:internal
test-linux (ubuntu-24.04-arm)
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. 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/
test-linux (ubuntu-24.04)
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. 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
78% - 3786 hits, 1074 misses, 0 errors
sccache stats
85% - 4133 hits, 714 misses, 0 errors