Skip to content

test(hono): Check the SDK info of each entry in its real runtime - #26712

Merged
JPeer264 merged 1 commit into
developfrom
jp/hono-sdk-tests-all-runtimes
Nov 23, 2026
Merged

JPeer264 merged 1 commit into
developfrom
jp/hono-sdk-tests-all-runtimes

Conversation

@JPeer264

Copy link
Copy Markdown
Member

closes #24050
closes JS-3585

Description

This adds an e2e test to hono-4-legacy that checks the sdk info of an error event in the Node, Bun and Deno variants: the Hono SDK name and packages, and that the default Hono integration is not installed. A unit test checks the same filter for the Cloudflare entry, which has no variant there.

Why

The runtime SDKs install the Hono integration by default, and the sentry() middleware instruments Hono itself. No test failed when an entry kept the default integration. The other checks from the issue (ignoreSpans, repeated init()) already have unit tests for each runtime.

Test decisions

The issue asks for one parameterized unit test. This tests the real entries in their runtimes instead, so no runtime SDK is mocked.

The new e2e test in `hono-4-legacy` runs in the Node, Bun and Deno
variants against the real `@sentry/hono` entries. It checks the `sdk`
info of an error event: the Hono SDK name and packages, and that `Hono`
is not in `sdk.integrations`. The runtime SDKs install the Hono
integration by default and the `sentry()` middleware instruments Hono
itself, so an entry that keeps the default instruments Hono twice. No
other test found this.

`hono-4-legacy` has no Cloudflare variant in CI, so a unit test checks
that the Cloudflare entry removes Hono from the default and the user
integrations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Nov 20, 2026

Copy link
Copy Markdown

JS-3585

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 2e6b842 (PR test merge using develop at ef89ae2)

Against: ef89ae2 (develop) · base run #67338

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

Path Size % Change Change
@sentry/browser 30.23 kB - -
@sentry/browser - with treeshaking flags 28.43 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.33 kB - -
@sentry/browser (incl. Tracing) 52.81 kB - -
@sentry/browser (incl. Tracing Core) 40.33 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.81 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.69 kB - -
@sentry/browser (incl. Tracing, Replay) 92.88 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.7 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 97.22 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 110.8 kB - -
@sentry/browser (incl. Feedback) 48.17 kB - -
@sentry/browser (incl. sendFeedback) 30.81 kB - -
@sentry/browser (incl. FeedbackAsync) 35.84 kB - -
@sentry/browser (incl. Metrics) 31.55 kB - -
@sentry/browser (incl. Logs) 31.83 kB - -
@sentry/browser (incl. Metrics & Logs) 32.49 kB - -
@sentry/react 32.24 kB - -
@sentry/react (incl. Tracing) 55.45 kB - -
@sentry/vue 38.45 kB - -
@sentry/vue (incl. Tracing) 55.75 kB - -
@sentry/svelte 30.24 kB - -
@sentry/remix (Remix 3 client bundle) 58.46 kB - -
CDN Bundle 32.16 kB - -
CDN Bundle (incl. Tracing) 53.19 kB - -
CDN Bundle (incl. Logs, Metrics) 34.95 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 55.76 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 76.02 kB - -
CDN Bundle (incl. Tracing, Replay) 91.1 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 93.71 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 96.51 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.07 kB - -
CDN Bundle - uncompressed 93.91 kB - -
CDN Bundle (incl. Tracing) - uncompressed 157.26 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 102.24 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 164.88 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 232.48 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 277.53 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 285.16 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 289.46 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 297.08 kB - -
@sentry/nextjs (client) 59.15 kB - -
@sentry/sveltekit (client) 54.06 kB - -
@sentry/core/server 45.28 kB - -
@sentry/core/browser 14.41 kB - -
@sentry/node 154.01 kB -0.01% -7 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.33 kB - -
@sentry/node - without tracing 88.81 kB - -
@sentry/node - without channel injection 142.98 kB -0.01% -4 B 🔽
@sentry/aws-serverless 99.41 kB -0.01% -3 B 🔽
@sentry/cloudflare (withSentry) - minified 208.5 kB - -
@sentry/cloudflare (withSentry) 483.88 kB - -
@sentry/cloudflare (withSentry, instrumented CommonJS package) - minified 1.02 MB - -
@sentry/nextjs/cloudflare (withSentry) - minified 233.74 kB - -

View base workflow run

@JPeer264
JPeer264 marked this pull request as ready for review November 20, 2026 19:16
@JPeer264 JPeer264 self-assigned this Nov 20, 2026
@JPeer264
JPeer264 merged commit c8a53bd into develop Nov 23, 2026
115 checks passed
@JPeer264
JPeer264 deleted the jp/hono-sdk-tests-all-runtimes branch November 23, 2026 13:34
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.

hono: Only the Node entry has SDK tests

2 participants