Skip to content

test(bun): Run the Bun-only suites with the shared Node runner - #24668

Open
JPeer264 wants to merge 1 commit into
jp/node-suites-runtime-switchfrom
jp/node-suites-bun-shared-runner
Open

JPeer264 wants to merge 1 commit into
jp/node-suites-runtime-switchfrom
jp/node-suites-bun-shared-runner

Conversation

@JPeer264

@JPeer264 JPeer264 commented Sep 23, 2026

Copy link
Copy Markdown
Member

The Bun package had its own copy of the scenario runner and envelope assertions (runner.ts, expect.ts). Now that the shared runner of node-integration-tests can start scenarios with Bun, the Bun-only suites use it too, so one runner serves all scenarios and the copy goes away.

The captureMessage test in basic is removed, because the shared public-api suites already cover it with @sentry/bun.

Part of #23889.

🤖 Generated with Claude Code

The Bun package had its own copy of the scenario runner and envelope
assertions. The Bun-only suites now use the runner of
`node-integration-tests`, so one runner serves all scenarios. The
`captureMessage` test in `basic` is removed, because the shared
`public-api` suites cover it with `@sentry/bun`.

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

linear-code Bot commented Sep 23, 2026

Copy link
Copy Markdown

JS-3515

@JPeer264
JPeer264 added this pull request to stack #24670 September 23, 2026 16:19
@JPeer264 JPeer264 self-assigned this Sep 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 29.23 kB - -
@sentry/browser - with treeshaking flags 27.49 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.4 kB - -
@sentry/browser (incl. Tracing) 51.16 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 51.17 kB - -
@sentry/browser (incl. Tracing, Profiling) 54.16 kB - -
@sentry/browser (incl. Tracing, Replay) 90.75 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 79.85 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 95.45 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 108.42 kB - -
@sentry/browser (incl. Feedback) 46.76 kB - -
@sentry/browser (incl. sendFeedback) 34.29 kB - -
@sentry/browser (incl. FeedbackAsync) 39.39 kB - -
@sentry/browser (incl. Metrics) 30.25 kB - -
@sentry/browser (incl. Logs) 30.5 kB - -
@sentry/browser (incl. Metrics & Logs) 31.16 kB - -
@sentry/react 30.98 kB - -
@sentry/react (incl. Tracing) 53.44 kB - -
@sentry/vue 36.72 kB - -
@sentry/vue (incl. Tracing) 53.69 kB - -
@sentry/svelte 29.25 kB - -
CDN Bundle 30.93 kB - -
CDN Bundle (incl. Tracing) 51.69 kB - -
CDN Bundle (incl. Logs, Metrics) 33.19 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 53.66 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 73.91 kB - -
CDN Bundle (incl. Tracing, Replay) 89.27 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 91.23 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 95.43 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 97.41 kB - -
CDN Bundle - uncompressed 91.4 kB - -
CDN Bundle (incl. Tracing) - uncompressed 153.76 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 97.97 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 159.72 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 227.54 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 273.49 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 279.43 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 287.2 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 293.13 kB - -
@sentry/nextjs (client) 55.78 kB - -
@sentry/sveltekit (client) 51.58 kB - -
@sentry/core/server 39.92 kB - -
@sentry/core/browser 13.63 kB - -
@sentry/node 133.86 kB +0.01% +11 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 82.4 kB - -
@sentry/node - without tracing 90.39 kB +0.02% +14 B 🔺
@sentry/node - without channel injection 112.4 kB +0.01% +11 B 🔺
@sentry/aws-serverless 98.69 kB +0.01% +5 B 🔺
@sentry/cloudflare (withSentry) - minified 206.38 kB - -
@sentry/cloudflare (withSentry) 513.49 kB - -

View base workflow run

@JPeer264
JPeer264 marked this pull request as ready for review September 23, 2026 16:31
@JPeer264
JPeer264 requested a review from a team as a code owner September 23, 2026 16:31
@JPeer264
JPeer264 requested review from andreiborza, isaacs and mydea and removed request for a team September 23, 2026 16:31
Comment thread dev-packages/bun-integration-tests/suites/cjs/index.cjs
@JPeer264
JPeer264 removed this pull request from stack #24670 September 23, 2026 17:26
@JPeer264
JPeer264 added this pull request to stack #24671 September 23, 2026 17:31

@isaacs isaacs left a comment

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.

LGTM!

test('sets sentry.is_localhost on every streamed span', async () => {
const runner = createRunner(__dirname, 'index.ts')
.withMockSentryServer()
.unordered()

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.

This is unnecessary and weakens the test slightly, since there's only one expectation.

Suggested change
.unordered()

Comment thread dev-packages/bun-integration-tests/suites/cjs/index.cjs

This branch has not been deployed

No deployments
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.

2 participants