Skip to content

Commit 8a1ab53

Browse files
test(deno): Run the Node suites that now pass on Deno
The cron and Winston suites pass now that `@sentry/deno` exports those integrations. The AI, Apollo GraphQL, Fastify and `tracePropagationTargets` suites also pass on Deno 2.8.3. Pino and BullMQ still fail, but no longer because of a missing export, so they move to the stack frame and context attribute groups.
1 parent a6c2f31 commit 8a1ab53

1 file changed

Lines changed: 10 additions & 30 deletions

File tree

  • dev-packages/deno-integration-tests/node-suites

‎dev-packages/deno-integration-tests/node-suites/excludes.ts‎

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,62 +23,38 @@ const REQUIRE_OF_ESM_ONLY_DEPENDENCY = [
2323
'suites/tracing/prisma-orm-v8/test.ts',
2424
];
2525

26-
// Some or all tests fail on Deno. The cause is not investigated yet. In most AI suites the span
27-
// streaming test fails. `apollo-graphql` (CJS tests only) and `mongodb` fail on Deno 2.8.3 (the CI
28-
// version) and pass on Deno 2.9.0.
26+
// Some or all tests fail on Deno. The cause is not investigated yet. `mongodb` fails on Deno 2.8.3
27+
// (the CI version) and passes on Deno 2.9.0.
2928
const NOT_TRIAGED = [
30-
'suites/tracing/anthropic/test.ts',
31-
'suites/tracing/anthropic/v0.129/test.ts',
32-
'suites/tracing/apollo-graphql/**',
33-
'suites/tracing/fastify/test.ts',
3429
'suites/tracing/flue/test.ts',
35-
'suites/tracing/google-genai/test.ts',
36-
'suites/tracing/groq/test.ts',
3730
'suites/tracing/http-client-spans/http-strip-query/test.ts',
3831
'suites/tracing/ioredis-dc/test.ts',
3932
'suites/tracing/koa/test.ts',
40-
'suites/tracing/langchain/test.ts',
41-
'suites/tracing/langgraph/test.ts',
42-
'suites/tracing/mistral-v2/test.ts',
43-
'suites/tracing/mistral/test.ts',
4433
'suites/tracing/mongodb/test.ts',
4534
'suites/tracing/mongoose-v5/test.ts',
4635
'suites/tracing/mysql/test.ts',
47-
'suites/tracing/openai/v5/**',
48-
'suites/tracing/openai/v7/test.ts',
4936
'suites/tracing/orchestrion-lazy-registration/test.ts',
5037
'suites/tracing/prisma-orm-v7/test.ts',
51-
'suites/tracing/together-ai/test.ts',
52-
'suites/tracing/vercelai/v6_v7/**',
38+
'suites/tracing/vercelai/v6_v7/v7/generation/test.ts',
5339
];
5440

55-
// Passes on Deno when run alone, but failed in about 1 of 3 full runs of this package.
56-
const FLAKY = ['suites/tracing/tracePropagationTargets/**'];
57-
5841
// The scenarios import `@sentry/deno` in place of `@sentry/node`, see `import-map.json` and
5942
// `alias-sentry-deno.ts`. The suites below fail only because of that.
6043

6144
// The scenario uses an `@sentry/node` export that `@sentry/deno` does not have, such as
62-
// `httpIntegration`, `nativeNodeFetchIntegration`, `cron` or the Node logging and queue
63-
// integrations.
45+
// `httpIntegration` or `nativeNodeFetchIntegration`.
6446
const NO_SENTRY_DENO_EXPORT = [
65-
'suites/cron/cron/test.ts',
66-
'suites/cron/node-cron/base/test.ts',
67-
'suites/cron/node-cron/isolateTrace/test.ts',
68-
'suites/cron/node-schedule/test.ts',
6947
'suites/esm/modules-integration/test.ts',
7048
'suites/express/multiple-init/test.ts',
7149
'suites/express/tracing/request-data/test.ts',
7250
'suites/express/tracing/routing/test.ts',
7351
'suites/express/with-http/maxIncomingRequestBodySize/test.ts',
7452
'suites/fs-instrumentation/test.ts',
7553
'suites/node-runtime-metrics/test.ts',
76-
'suites/pino/test.ts',
7754
'suites/sessions/crashed-session-aggregate/test.ts',
7855
'suites/sessions/errored-session-aggregate/test.ts',
7956
'suites/sessions/exited-session-aggregate/test.ts',
8057
'suites/sessions/server-without-process-session/test.ts',
81-
'suites/tracing/bullmq/test.ts',
8258
'suites/tracing/http-client-spans/fetch-forward-request-hook/test.ts',
8359
'suites/tracing/http-client-spans/fetch-headers-to-span-attributes/test.ts',
8460
'suites/tracing/httpIntegration/test.ts',
@@ -87,7 +63,6 @@ const NO_SENTRY_DENO_EXPORT = [
8763
'suites/tracing/requests/http-no-trace-propagation/test.ts',
8864
'suites/tracing/requests/http-no-tracing-no-spans/test.ts',
8965
'suites/vercel/keep-alive/test.ts',
90-
'suites/winston/test.ts',
9166
];
9267

9368
// The scenario drives the OpenTelemetry tracer of the client (`client.tracer`), which only
@@ -145,11 +120,16 @@ const FETCH_INTEGRATION_DIFFERS = [
145120
'suites/tracing/requests/fetch-breadcrumbs/test.ts',
146121
];
147122

123+
// The segment spans also have the context attributes that `denoContextIntegration` adds, such as
124+
// `app.start_time` and `os.name`.
125+
const DENO_CONTEXT_ATTRIBUTES = ['suites/tracing/bullmq/test.ts'];
126+
148127
// The stack frames of `@sentry/deno` have no `module`, and some have other `function` names. Their
149128
// `post_context` also ends with an extra empty line, and in CommonJS scenarios the line numbers can
150129
// be off.
151130
const STACK_FRAMES_DIFFER = [
152131
'suites/contextLines/filename-with-spaces/test.ts',
132+
'suites/pino/test.ts',
153133
'suites/public-api/captureException/catched-error/test.ts',
154134
'suites/tracing/postgresjs-tracing-channel/test.ts',
155135
'suites/tracing/postgresjs/test.ts',
@@ -164,14 +144,14 @@ export const NODE_SUITES_EXCLUDE = [
164144
...PRISMA_ESM_INTEROP,
165145
...REQUIRE_OF_ESM_ONLY_DEPENDENCY,
166146
...NOT_TRIAGED,
167-
...FLAKY,
168147
...NO_SENTRY_DENO_EXPORT,
169148
...NO_CLIENT_TRACER,
170149
...NO_NODE_LOGGER_PARAMETERS,
171150
...NO_NODE_DEFAULT_INTEGRATION,
172151
...GLOBAL_HANDLERS_DIFFER,
173152
...NO_CLIENT_REPORTS,
174153
...FETCH_INTEGRATION_DIFFERS,
154+
...DENO_CONTEXT_ATTRIBUTES,
175155
...STACK_FRAMES_DIFFER,
176156
...REQUEST_IP_DIFFERS,
177157
];

0 commit comments

Comments
 (0)