Skip to content

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

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

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

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

test-macos.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors, 1 warning, and 1 notice
test-macOS
Process completed with exit code 2.
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.438875ms)\n' + 'βœ– Imported module Fail (0.107083ms)\n' + 'β–Ά /Users/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js\n' + ' βœ” verify setup was executed (0.278625ms)\n' + ' βœ” another simple test (0.06ms)\n' + 'βœ” /Users/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js (0.471208ms)\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 12.518292\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.107083ms)\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: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:///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: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.438875ms)\n' + 'βœ– Imported module Fail (0.107083ms)\n' + 'β–Ά /Users/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js\n' + ' βœ” verify setup was executed (0.278625ms)\n' + ' βœ” another simple test (0.06ms)\n' + 'βœ” /Users/runner/work/node/node/node/test/fixtures/test-runner/global-setup-teardown/test-file.js (0.471208ms)\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-enqueue-file-syntax-error.js#L0
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-enqueue-file-syntax-error.js
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.434458\n' + " type: 'test'\n" + ' ...\n' + ' 1..1\n' + 'ok 1 - index.test.js\n' + ' ---\n' + ' duration_ms: 1.418792\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.147417\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: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.232042\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.034792\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.06375\n' + " type: 'test'\n" + ' ...\n' + ' 1..1\n' + 'ok 4 - test/random.cjs\n' + ' ---\n' + ' duration_ms: 0.119625\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.071583\n' + " type: 'test'\n" + ' ...\n' + ' # Subtest: this should be executed\n' + ' ok 2 - this should be executed\n' + ' ---\n' + ' duration_ms: 0.053208\n' + " type: 'test'\n" + ' ...\n' + ' 1..2\n' + 'ok 5 - test/skip_by_name.cjs\n' + ' ---\n' + ' duration_ms: 0.211959\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.038\n' + " type: 'suite'\n" + ' ...\n' + ' # Subtest: this is a test\n' + ' ok 2 - this is a test\n' + ' ---\n' + ' duration_ms: 0.037792\n' + " type: 'test'\n" + ' ...\n' + ' 1..2\n' + 'ok 6 - test/suite_and_test.cjs\n' + ' ---\n' + ' duration_ms: 0.168375\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 21.804042\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:interna
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. 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
75% - 3672 hits, 1193 misses, 0 errors