Skip to content

test(deno): Run more Node suites on Deno with runtime-aware expectations - #26643

Merged
mydea merged 3 commits into
developfrom
test/deno-node-suites-test-only-fixes
Nov 23, 2026
Merged

mydea merged 3 commits into
developfrom
test/deno-node-suites-test-only-fixes

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What

Removes Deno excludes that are out of date, and changes the shared Node scenarios and expectations to fit @sentry/deno where its behavior is valid. These are the loopback address, the SDK name, denoHttpIntegration, and the @sentry/node/import preload. The Deno-only orchestrion duplicates for fastify, graphql, koa, postgresjs and the mysql channel are removed. No SDK code changes.

Why

A known Deno gap, like require() of an ES module, or a real SDK difference, like mysql pool span parenting, now gates only the affected case instead of the whole file. Global handlers and process sessions are SDK differences, so they stay excluded.

via @mydea.

--

View Session [Sentry]

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: a60288c (PR test merge using develop at 3950f4a)

Against: 3950f4a (develop) · base run #67492

✅ Baseline matches: this diff contains only this PR's changes.

Path Size % Change Change
@sentry/browser 30.26 kB - -
@sentry/browser - with treeshaking flags 28.45 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.33 kB - -
@sentry/browser (incl. Tracing) 52.9 kB - -
@sentry/browser (incl. Tracing Core) 40.32 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.9 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.77 kB - -
@sentry/browser (incl. Tracing, Replay) 92.95 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.78 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 97.3 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 110.88 kB - -
@sentry/browser (incl. Feedback) 48.2 kB - -
@sentry/browser (incl. sendFeedback) 30.84 kB - -
@sentry/browser (incl. FeedbackAsync) 35.87 kB - -
@sentry/browser (incl. Metrics) 31.58 kB - -
@sentry/browser (incl. Logs) 31.86 kB - -
@sentry/browser (incl. Metrics & Logs) 32.52 kB - -
@sentry/react 32.27 kB - -
@sentry/react (incl. Tracing) 55.49 kB - -
@sentry/vue 38.45 kB - -
@sentry/vue (incl. Tracing) 55.82 kB - -
@sentry/svelte 30.27 kB - -
@sentry/effect (client) 301.05 kB - -
@sentry/effect (client, incl. Tracing) 308.22 kB - -
@sentry/effect (client, incl. Tracing, Logs, Metrics) 311.08 kB - -
@sentry/remix (Remix 3 client bundle) 58.52 kB - -
CDN Bundle 32.19 kB - -
CDN Bundle (incl. Tracing) 53.28 kB - -
CDN Bundle (incl. Logs, Metrics) 34.97 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 55.84 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 76.05 kB - -
CDN Bundle (incl. Tracing, Replay) 91.2 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 93.82 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 96.63 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.17 kB - -
CDN Bundle - uncompressed 93.98 kB - -
CDN Bundle (incl. Tracing) - uncompressed 157.52 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 102.32 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 165.14 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 232.55 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 277.79 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 285.42 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 289.72 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 297.34 kB - -
@sentry/nextjs (client) 59.26 kB - -
@sentry/sveltekit (client) 54.15 kB - -
@sentry/core/server 45.75 kB - -
@sentry/core/browser 14.41 kB - -
@sentry/node 155.89 kB -0.01% -2 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.46 kB - -
@sentry/node - without tracing 88.94 kB - -
@sentry/node - without channel injection 144.83 kB +0.01% +3 B 🔺
@sentry/aws-serverless 99.56 kB -0.01% -5 B 🔽
@sentry/cloudflare (withSentry) - minified 209.05 kB - -
@sentry/cloudflare (withSentry) 485.09 kB - -
@sentry/cloudflare (withSentry, instrumented CommonJS package) - minified 1.04 MB - -
@sentry/nextjs/cloudflare (withSentry) - minified 234.28 kB - -

View base workflow run

import { loggingTransport } from '@sentry-internal/node-integration-tests';

// `@sentry/deno` has the same options in `denoHttpIntegration`.
const httpIntegration = Sentry.httpIntegration ?? Sentry.denoHttpIntegration;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe for a follow-up, does it make sense to actually export this as httpIntegration from deno too? 🤔 cc @isaacs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it does. @sentry/bun already re-exports httpIntegration under that name, and denoHttpIntegration takes the same options for the cases these scenarios use (ignoreRequestBody, sessionFlushingDelayMS). An httpIntegration alias in @sentry/deno would remove this ?? fallback, and it would probably let more of the 17 Node scenarios that call Sentry.httpIntegration(...) leave NO_SENTRY_DENO_EXPORT, for example tracing/httpIntegration and with-http/maxIncomingRequestBodySize. Not all of them, though: some use Node-only options.

One thing to decide: the integration name is DenoHttp, so an alias would need to keep that name or change it. Either way it's an SDK change, so I've kept it out of this test-only PR.

@sentry-junior
sentry-junior Bot force-pushed the test/deno-node-suites-test-only-fixes branch from 07dec57 to c492397 Compare November 19, 2026 15:25
@sentry-junior
sentry-junior Bot force-pushed the test/deno-node-suites-test-only-fixes branch from c492397 to 58f5631 Compare November 19, 2026 15:30
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

Some optional checks were not successful. They do not block the merge. 2 not successful, 58 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) Failing after 2m Details
❌ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Failing after 1m Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) Successful in 50s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-without-tracing-send-to-sentry Test (optional) Successful in 53s Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E deno (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 53s Details
✅ CI: Optional E2E Tests / E2E astro-7 (static trace lifecycle) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (deno) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) Successful in 57s Details
✅ CI: Optional E2E Tests / E2E cloudflare-think Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-14-supabase Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-flue Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-eve (content off) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 43s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (latest) Test (optional) Successful in 51s Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) Successful in 54s Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (cloudflare) Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 33s Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) Successful in 58s Details
✅ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Successful in 34s Details
✅ CI: Optional E2E Tests / E2E node-eve (0.x) Test (optional) Successful in 54s Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) Successful in 53s Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (bun) Test (optional) Successful in 59s Details
✅ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) Successful in 31s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (development) Test (optional) Successful in 58s Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry (static trace lifecycle) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 28s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-eve Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-tunnel Test (optional) Successful in 42s Details
✅ CI: Optional E2E Tests / E2E solidstart-2-tunnel Test (optional) Successful in 51s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 32s Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions Test (optional) Successful in 30s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 33s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-cloudflare Test (optional) Successful in 34s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (kv-cache) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 50s Details
✅ CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-tunnel (cloudflare) Test (optional) Successful in 35s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 58s Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions (latest) Test (optional) Successful in 37s Details

@sentry-junior
sentry-junior Bot force-pushed the test/deno-node-suites-test-only-fixes branch from 6890f53 to 835c50e Compare November 19, 2026 16:26
@sentry-junior
sentry-junior Bot force-pushed the fix/deno-stack-frames branch from 1934573 to 1950fa1 Compare November 19, 2026 16:26
@sentry-junior
sentry-junior Bot force-pushed the test/deno-node-suites-test-only-fixes branch 3 times, most recently from 88e3b31 to 8d07011 Compare November 20, 2026 09:07
@mydea
mydea marked this pull request as ready for review November 20, 2026 09:10
@sentry-junior
sentry-junior Bot requested a review from mydea November 20, 2026 09:10

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@sentry-junior
sentry-junior Bot force-pushed the test/deno-node-suites-test-only-fixes branch from 8d07011 to 7411449 Compare November 20, 2026 10:37
@mydea
mydea force-pushed the fix/deno-stack-frames branch from 4cd6f3c to 55b47ed Compare November 23, 2026 08:40
@sentry-junior
sentry-junior Bot force-pushed the test/deno-node-suites-test-only-fixes branch from 7411449 to 6e35062 Compare November 23, 2026 08:53
@sentry-junior
sentry-junior Bot removed this pull request from stack #26639 November 23, 2026 09:46
@sentry-junior
sentry-junior Bot force-pushed the fix/deno-stack-frames branch from 55b47ed to 5df6777 Compare November 23, 2026 09:46
@sentry-junior
sentry-junior Bot force-pushed the test/deno-node-suites-test-only-fixes branch from 6e35062 to bb45d76 Compare November 23, 2026 09:46
@sentry-junior
sentry-junior Bot changed the base branch from fix/deno-stack-frames to develop November 23, 2026 09:46
@mydea
mydea enabled auto-merge (squash) November 23, 2026 09:55
sentry-junior Bot and others added 3 commits November 23, 2026 11:13
Un-exclude Node suites that pass on Deno as-is or with test-only changes: a shared
loopback address matcher, the SDK name from EXPECTED_SDK_NAME, an import map entry
for the @sentry/node/import preload, and denoHttpIntegration where a scenario
configures httpIntegration. Tests that hit a Deno require(esm) bug or an SDK
difference are gated per test instead of excluding the whole suite. Drop the
synthetic orchestrion suites that the real Node suites now cover on Deno.

Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
Expected failures fail loudly once Deno or the SDK fixes them, so the gate does
not outlive the bug.

Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
The mysql Node suite now runs on Deno and covers it.

Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
@mydea
mydea force-pushed the test/deno-node-suites-test-only-fixes branch from bb45d76 to 615c189 Compare November 23, 2026 10:14

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 615c189. Configure here.

'suites/sessions/crashed-session-aggregate/test.ts',
'suites/sessions/errored-session-aggregate/test.ts',
'suites/sessions/exited-session-aggregate/test.ts',
'suites/sessions/server-without-process-session/test.ts',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Postgresjs Deno coverage was dropped

Medium Severity

The Deno-only postgresjs channel test was removed as a duplicate of the shared Node suite, but suites/tracing/postgresjs/test.ts and suites/tracing/postgresjs-tracing-channel/test.ts remain in STACK_FRAMES_DIFFER. Deno no longer has any postgresjs span coverage.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 615c189. Configure here.

@mydea
mydea merged commit f74f9ed into develop Nov 23, 2026
97 checks passed
@mydea
mydea deleted the test/deno-node-suites-test-only-fixes branch November 23, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant