Skip to content

[Bug]: --detectLeaks CPU hammering on Node 20 #15706

@EmrysMyrddin

Description

@EmrysMyrddin

Version

Starting from version 30, was not happening on version 29.

Steps to reproduce

On Node 20, it seems --detectLeaks is causing a massive CPU hammering, making tests super slow and finally failing with a ELIFECYCLE  Command failed.
https://github.com/graphql-hive/graphql-yoga/actions/runs/15902848813/job/44849836112?pr=4088#step:11:55

Expected behavior

To pass tests as in other versions of Node.

Actual behavior

Running with leaks detector on Node 20 fails.

Additional context

No response

Environment

System:
    OS: macOS 15.3
    CPU: (12) arm64 Apple M3 Pro
  Binaries:
    Node: 20.11.1 - ~/.local/share/mise/installs/node/20/bin/node
    npm: 10.2.4 - ~/.local/share/mise/installs/node/20/bin/npm
    pnpm: 10.12.3 - ~/.local/share/mise/installs/node/20/bin/pnpm
    bun: 1.2.17 - ~/Dev/Projects/TheGuild/graphql-yoga/node_modules/.bin/bun
  npmPackages:
    jest: 30.0.3 => 30.0.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions