Skip to content

fix(jest-runner): Handle unsafe worker_threads structureClone with function type in matchers #13416

fix(jest-runner): Handle unsafe worker_threads structureClone with function type in matchers

fix(jest-runner): Handle unsafe worker_threads structureClone with function type in matchers #13416

Triggered via pull request March 1, 2024 10:27
Status Failure
Total duration 1h 31m 31s
Artifacts

nodejs.yml

on: pull_request
prepare-yarn-cache-ubuntu  /  Prepare yarn cache for ubuntu-latest
13s
prepare-yarn-cache-ubuntu / Prepare yarn cache for ubuntu-latest
prepare-yarn-cache-macos  /  Prepare yarn cache for macos-latest
1m 16s
prepare-yarn-cache-macos / Prepare yarn cache for macos-latest
prepare-yarn-cache-windows  /  Prepare yarn cache for windows-latest
31s
prepare-yarn-cache-windows / Prepare yarn cache for windows-latest
TypeScript Compatibility
5m 46s
TypeScript Compatibility
Typecheck Examples and Tests
3m 46s
Typecheck Examples and Tests
Lint
1m 55s
Lint
Validate Yarn dependencies and constraints
19s
Validate Yarn dependencies and constraints
Node LTS on Ubuntu with leak detection
1m 13s
Node LTS on Ubuntu with leak detection
Matrix: test-coverage
Matrix: test-ubuntu
Matrix: test-macos
Matrix: test-windows
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 7 warnings
can press "u" to update snapshots: e2e/__tests__/watchModeUpdateSnapshot.test.ts#L50
expect(received).toMatchSnapshot(hint) Snapshot name: `can press "u" to update snapshots: test results 1` - Snapshot - 0 + Received + 1 @@ -14,7 +14,8 @@ | ^ at Object.toMatchSnapshot (__tests__/bar.spec.js:1:35) › 1 snapshot failed. + A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them. Snapshot Summary › 1 snapshot failed from 1 test suite. Inspect your code changes or press `u` to update them." at Object.toMatchSnapshot (e2e/__tests__/watchModeUpdateSnapshot.test.ts:50:18)
--findRelatedTests flag › coverage configuration is applied correctly: node:internal/child_process#L512
Could not find test summary in the output. OUTPUT: PASS __tests__/a.test.js ✓ a (5 ms) node:events:497 throw er; // Unhandled 'error' event ^ Error: kill EPERM at ChildProcess.kill (node:internal/child_process:512:26) at listOnTimeout (node:internal/timers:573:17) at processTimers (node:internal/timers:514:7) Emitted 'error' event on ChildProcess instance at: at ChildProcess.kill (node:internal/child_process:512:12) [... lines matching original stack trace ...] at processTimers (node:internal/timers:514:7) { errno: -4048, code: 'EPERM', syscall: 'kill' } Node.js v21.6.2 at extractSummary (e2e/Utils.ts:243:11) at Object.<anonymous> (e2e/__tests__/findRelatedFiles.test.ts:244:43)
async-transformer › should transform with transformer with only async transforms: e2e/__tests__/transform.test.ts#L299
expect(received).toMatch(expected) Expected pattern: /PASS/ Received string: "FAIL __tests__/test.js·· ● Test suite failed to run· kill EPERM· at ChildProcessWorker.killChild (../../../packages/jest-worker/build/index.js:999:17)· Test Suites: 1 failed, 1 total Tests: 2 passed, 2 total Snapshots: 0 total Time: 0.639 s Ran all test suites." at Object.toMatch (e2e/__tests__/transform.test.ts:299:20)
--findRelatedTests flag › coverage configuration is applied correctly: e2e/Utils.ts#L105
EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\find-related-tests-test' at rmSync (e2e/Utils.ts:105:8) at Object.<anonymous> (e2e/__tests__/findRelatedFiles.test.ts:16:24)
Node crawler does not pick up symlinked files by default: e2e/Utils.ts#L105
EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\crawl-symlinks-test' at rmSync (e2e/Utils.ts:105:8) at Object.<anonymous> (e2e/__tests__/crawlSymlinks.test.ts:36:10)
Should throw if watchman used with haste.enableSymlinks: e2e/Utils.ts#L105
EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\crawl-symlinks-test' at rmSync (e2e/Utils.ts:105:8) at Object.<anonymous> (e2e/__tests__/crawlSymlinks.test.ts:15:10)
allows a single non-root project: e2e/__tests__/multiProjectRunner.test.ts#L204
expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 at toBe (e2e/__tests__/multiProjectRunner.test.ts:204:22)
Windows with shard 3/4 / Node v21.x
Final attempt failed. Child_process exited with error code 1
notify › does not report --notify flag: e2e/__tests__/detectOpenHandles.ts#L111
expect(received).toBe(expected) // Object.is equality Expected: "" Received: "Jest did not exit one second after the test run has completed.· 'This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue." at Object.toBe (e2e/__tests__/detectOpenHandles.ts:111:27)
Windows with shard 1/4 / Node LTS using jest-jasmine2
Attempt 1 failed. Reason: Child_process exited with error code 1
Windows with shard 2/4 / Node v21.x
Attempt 1 failed. Reason: Child_process exited with error code 1
Windows with shard 2/4 / Node v21.x
Attempt 2 failed. Reason: Child_process exited with error code 1
Windows with shard 4/4 / Node LTS using jest-jasmine2
Attempt 1 failed. Reason: Child_process exited with error code 1
Windows with shard 3/4 / Node v21.x
Attempt 1 failed. Reason: Child_process exited with error code 1
Windows with shard 3/4 / Node v21.x
Attempt 2 failed. Reason: Child_process exited with error code 1
macOS with shard 2/3 / Node LTS using jest-jasmine2
Attempt 1 failed. Reason: Child_process exited with error code 1