Skip to content

test(cloudflare): Add Bun E2E test for Durable Object private fields behind withSentry - #27058

Merged
andreiborza merged 1 commit into
ab/fix-do-stub-private-fieldsfrom
ab/e2e-do-stub-private-fields-bun
Dec 2, 2026
Merged

andreiborza merged 1 commit into
ab/fix-do-stub-private-fieldsfrom
ab/e2e-do-stub-private-fields-bun

Conversation

@andreiborza

Copy link
Copy Markdown
Member

What

Adds an E2E app that runs a withSentry Worker under bun test with a fake Durable Object namespace. The Durable Object uses a #private field.

Why

This is the setup from the issue. The test fails on the released SDK with the same error as the report, and passes with the fix below it in the stack.

…behind withSentry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andreiborza
andreiborza added this pull request to stack #27059 December 2, 2026 09:26
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: ca265b5 (PR test merge using base PR #27057 at 0bc372c)

Against: d7c3c1e (base PR #27057) · base run #68524

⚠️ Baseline mismatch: 5 commit(s) in the baseline are missing from the PR build. Their size changes also affect this comparison. Compare commits. Update this PR and base PR #27057 with their base branches to compare against an up-to-date baseline.

Path Size % Change Change
@sentry/browser 30.64 kB - -
@sentry/browser - with treeshaking flags 28.73 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.62 kB - -
@sentry/browser (incl. Tracing) 53.98 kB - -
@sentry/browser (incl. Tracing Core) 40.82 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 53.98 kB - -
@sentry/browser (incl. Tracing, Profiling) 56.86 kB - -
@sentry/browser (incl. Tracing, Replay) 93.94 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 82.5 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 98.77 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 111.73 kB - -
@sentry/browser (incl. Feedback) 48.51 kB - -
@sentry/browser (incl. sendFeedback) 31.2 kB - -
@sentry/browser (incl. FeedbackAsync) 36.26 kB - -
@sentry/browser (incl. Metrics) 31.96 kB - -
@sentry/browser (incl. Logs) 32.25 kB - -
@sentry/browser (incl. Metrics & Logs) 32.91 kB - -
@sentry/react 32.5 kB - -
@sentry/react (incl. Tracing) 56.46 kB - -
@sentry/vue 38.99 kB - -
@sentry/vue (incl. Tracing) 57.05 kB - -
@sentry/svelte 30.68 kB - -
@sentry/effect (client) 42.21 kB - -
@sentry/effect (client, incl. Tracing) 55.02 kB - -
@sentry/effect (client, incl. Tracing, Logs, Metrics) 66.5 kB - -
@sentry/remix (Remix 3 client bundle) 59.47 kB - -
CDN Bundle 32.45 kB - -
CDN Bundle (incl. Tracing) 54.12 kB - -
CDN Bundle (incl. Logs, Metrics) 35.2 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 56.57 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 76.15 kB - -
CDN Bundle (incl. Tracing, Replay) 91.93 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 94.44 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.38 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.85 kB - -
CDN Bundle - uncompressed 94.67 kB - -
CDN Bundle (incl. Tracing) - uncompressed 160.02 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 103.01 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 167.65 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 233.4 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 280.45 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 288.08 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 292.39 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 300 kB - -
@sentry/nextjs (client) 59.75 kB - -
@sentry/sveltekit (client) 54.8 kB - -
@sentry/astro (client) - rolldown, without tracing 35.73 kB +0.01% +1 B 🔺
@sentry/core/server 45.91 kB - -
@sentry/core/browser 14.55 kB - -
@sentry/node 157.29 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.63 kB - -
@sentry/node - without tracing 89.66 kB - -
@sentry/node - without channel injection 146.61 kB +0.01% +1 B 🔺
@sentry/aws-serverless 100.57 kB - -
@sentry/cloudflare (withSentry) - minified 212.67 kB - -
@sentry/cloudflare (withSentry) 493.17 kB - -
@sentry/cloudflare (withSentry, instrumented CommonJS package) - minified 215.61 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 238.09 kB - -

View base workflow run

@andreiborza
andreiborza marked this pull request as ready for review December 2, 2026 09:38
@andreiborza
andreiborza requested a review from msonnb December 2, 2026 09:48
@andreiborza
andreiborza merged commit 4281c42 into develop Dec 2, 2026
55 checks passed
@andreiborza
andreiborza deleted the ab/e2e-do-stub-private-fields-bun branch December 2, 2026 09:53
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