@@ -23,62 +23,38 @@ const REQUIRE_OF_ESM_ONLY_DEPENDENCY = [ |
23 | 23 | 'suites/tracing/prisma-orm-v8/test.ts', |
24 | 24 | ]; |
25 | 25 |
|
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. |
29 | 28 | 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', |
34 | 29 | 'suites/tracing/flue/test.ts', |
35 | | - 'suites/tracing/google-genai/test.ts', |
36 | | - 'suites/tracing/groq/test.ts', |
37 | 30 | 'suites/tracing/http-client-spans/http-strip-query/test.ts', |
38 | 31 | 'suites/tracing/ioredis-dc/test.ts', |
39 | 32 | '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', |
44 | 33 | 'suites/tracing/mongodb/test.ts', |
45 | 34 | 'suites/tracing/mongoose-v5/test.ts', |
46 | 35 | 'suites/tracing/mysql/test.ts', |
47 | | - 'suites/tracing/openai/v5/**', |
48 | | - 'suites/tracing/openai/v7/test.ts', |
49 | 36 | 'suites/tracing/orchestrion-lazy-registration/test.ts', |
50 | 37 | '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', |
53 | 39 | ]; |
54 | 40 |
|
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 | | - |
58 | 41 | // The scenarios import `@sentry/deno` in place of `@sentry/node`, see `import-map.json` and |
59 | 42 | // `alias-sentry-deno.ts`. The suites below fail only because of that. |
60 | 43 |
|
61 | 44 | // 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`. |
64 | 46 | 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', |
69 | 47 | 'suites/esm/modules-integration/test.ts', |
70 | 48 | 'suites/express/multiple-init/test.ts', |
71 | 49 | 'suites/express/tracing/request-data/test.ts', |
72 | 50 | 'suites/express/tracing/routing/test.ts', |
73 | 51 | 'suites/express/with-http/maxIncomingRequestBodySize/test.ts', |
74 | 52 | 'suites/fs-instrumentation/test.ts', |
75 | 53 | 'suites/node-runtime-metrics/test.ts', |
76 | | - 'suites/pino/test.ts', |
77 | 54 | 'suites/sessions/crashed-session-aggregate/test.ts', |
78 | 55 | 'suites/sessions/errored-session-aggregate/test.ts', |
79 | 56 | 'suites/sessions/exited-session-aggregate/test.ts', |
80 | 57 | 'suites/sessions/server-without-process-session/test.ts', |
81 | | - 'suites/tracing/bullmq/test.ts', |
82 | 58 | 'suites/tracing/http-client-spans/fetch-forward-request-hook/test.ts', |
83 | 59 | 'suites/tracing/http-client-spans/fetch-headers-to-span-attributes/test.ts', |
84 | 60 | 'suites/tracing/httpIntegration/test.ts', |
@@ -87,7 +63,6 @@ const NO_SENTRY_DENO_EXPORT = [ |
87 | 63 | 'suites/tracing/requests/http-no-trace-propagation/test.ts', |
88 | 64 | 'suites/tracing/requests/http-no-tracing-no-spans/test.ts', |
89 | 65 | 'suites/vercel/keep-alive/test.ts', |
90 | | - 'suites/winston/test.ts', |
91 | 66 | ]; |
92 | 67 |
|
93 | 68 | // The scenario drives the OpenTelemetry tracer of the client (`client.tracer`), which only |
@@ -145,11 +120,16 @@ const FETCH_INTEGRATION_DIFFERS = [ |
145 | 120 | 'suites/tracing/requests/fetch-breadcrumbs/test.ts', |
146 | 121 | ]; |
147 | 122 |
|
| 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 | + |
148 | 127 | // The stack frames of `@sentry/deno` have no `module`, and some have other `function` names. Their |
149 | 128 | // `post_context` also ends with an extra empty line, and in CommonJS scenarios the line numbers can |
150 | 129 | // be off. |
151 | 130 | const STACK_FRAMES_DIFFER = [ |
152 | 131 | 'suites/contextLines/filename-with-spaces/test.ts', |
| 132 | + 'suites/pino/test.ts', |
153 | 133 | 'suites/public-api/captureException/catched-error/test.ts', |
154 | 134 | 'suites/tracing/postgresjs-tracing-channel/test.ts', |
155 | 135 | 'suites/tracing/postgresjs/test.ts', |
@@ -164,14 +144,14 @@ export const NODE_SUITES_EXCLUDE = [ |
164 | 144 | ...PRISMA_ESM_INTEROP, |
165 | 145 | ...REQUIRE_OF_ESM_ONLY_DEPENDENCY, |
166 | 146 | ...NOT_TRIAGED, |
167 | | - ...FLAKY, |
168 | 147 | ...NO_SENTRY_DENO_EXPORT, |
169 | 148 | ...NO_CLIENT_TRACER, |
170 | 149 | ...NO_NODE_LOGGER_PARAMETERS, |
171 | 150 | ...NO_NODE_DEFAULT_INTEGRATION, |
172 | 151 | ...GLOBAL_HANDLERS_DIFFER, |
173 | 152 | ...NO_CLIENT_REPORTS, |
174 | 153 | ...FETCH_INTEGRATION_DIFFERS, |
| 154 | + ...DENO_CONTEXT_ATTRIBUTES, |
175 | 155 | ...STACK_FRAMES_DIFFER, |
176 | 156 | ...REQUEST_IP_DIFFERS, |
177 | 157 | ]; |