Skip to content

Channel closed error as of recent version of Vitest #8201

@breadadams

Description

@breadadams

Describe the bug

Apologies beforehand, vague bug report incoming...

As of a recent Vitest update (potentially between v3.1.4 and v3.2.3) we're seeing the following error in CI, where it appears the channel is closed before our tests have finished running:

⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯
Error: Channel closed
 ❯ target.send node:internal/child_process:753:16
 ❯ ProcessWorker.send ../../node_modules/tinypool/dist/index.js:140:41
 ❯ MessagePort.<anonymous> ../../node_modules/tinypool/dist/index.js:146:62
 ❯ [nodejs.internal.kHybridDispatch] node:internal/event_target:831:20
 ❯ MessagePort.<anonymous> node:internal/per_context/messageport:23:28

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_IPC_CHANNEL_CLOSED' }

Opening this issue hoping that maybe someone could point me in the right direction.

Reproduction

Unsure how to reproduce 😬

System Info

Vitest version: `v3.2.3`


System:
  OS: Linux 6.11 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
  CPU: (16) x64 AMD EPYC 7763 64-Core Processor
  Memory: 60.17 GB / 62.80 GB
  Container: Yes
  Shell: 5.1.16 - /bin/bash
Binaries:
  Node: 20.19.2 - /__t/node/20.19.2/x64/bin/node
  Yarn: 1.22.22 - /usr/bin/yarn
  npm: 10.8.2 - /__t/node/20.19.2/x64/bin/npm

Used Package Manager

yarn

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions