Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

@sentry/profiling-node crashes vitest  #228

Closed
@capaj

Description

@capaj

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

7.92.0

Framework Version

vitest any

Link to Sentry event

No response

SDK Setup

import * as SentryApi from '@sentry/node';
// Edit an assertion and save to see HMR in action
import { ProfilingIntegration } from '@sentry/profiling-node';

SentryApi.init({
  integrations: [new ProfilingIntegration()],
});

Steps to Reproduce

I tried to setup a minimal repro here: https://stackblitz.com/edit/vitest-dev-vitest-1gd3e9?file=src%2Fsentry.ts

but I failed, because profiling integration does not run on stackblitz.
So what you need to do:

  1. download from stackblitz
  2. extract
  3. pnpm i
  4. pnpm test
  5. hit enter to restart the tests for few seconds(10 times probably+-)

Expected Result

Vitest does not crash

Actual Result

vitest crashes after a few runs
Screencast from 5.1.2024 17:53:35.webm

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions