Skip to content

test: Wire the managed tunnel by hand in Node, Cloudflare and Next.js - #25785

Open
logaretm wants to merge 3 commits into
awad/tunnel-server-exportsfrom
awad/tunnel-manual-wiring-tests
Open

logaretm wants to merge 3 commits into
awad/tunnel-server-exportsfrom
awad/tunnel-manual-wiring-tests

Conversation

@logaretm

@logaretm logaretm commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

The tunnel helpers from #25783 had no coverage of wiring them by hand in real servers, fixed by adding integration and e2e suites for it.

The tests forward through node:http, HTTP/2, Express, Fastify and Koa (also run on Bun and Deno), Cloudflare in and outside withSentry, and a Next.js Pages API route and middleware under basePath.

@logaretm
logaretm added this pull request to stack #25786 October 27, 2026 21:59
@logaretm logaretm changed the title awad/tunnel manual wiring tests test: Wire the managed tunnel by hand in Node, Cloudflare and Next.js Oct 27, 2026
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: b686c95 (PR test merge using develop at 665318a)

Against: a6c28d0 (develop) · base run #63865

⚠️ Baseline mismatch: 17 develop commit(s) in the PR build are missing from the baseline. Their size changes also affect this comparison. Compare commits. Re-run once develop's baseline build for 665318a finishes.

Path Size % Change Change
@sentry/browser 30.34 kB +0.04% +12 B 🔺
@sentry/browser - with treeshaking flags 28.46 kB +0.05% +12 B 🔺
@sentry/browser - with treeshaking flags tracing without tracing 28.35 kB +0.04% +11 B 🔺
@sentry/browser (incl. Tracing) 52.55 kB +0.03% +11 B 🔺
@sentry/browser (incl. Tracing + Span Streaming) 52.55 kB +0.03% +11 B 🔺
@sentry/browser (incl. Tracing, Profiling) 55.48 kB +0.03% +12 B 🔺
@sentry/browser (incl. Tracing, Replay) 92.31 kB +0.02% +10 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.19 kB +0.02% +12 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 97.05 kB +0.02% +11 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 110.04 kB +0.02% +12 B 🔺
@sentry/browser (incl. Feedback) 47.9 kB +0.02% +8 B 🔺
@sentry/browser (incl. sendFeedback) 35.41 kB +0.04% +12 B 🔺
@sentry/browser (incl. FeedbackAsync) 40.52 kB +0.04% +13 B 🔺
@sentry/browser (incl. Metrics) 31.35 kB +0.04% +12 B 🔺
@sentry/browser (incl. Logs) 31.63 kB +0.04% +11 B 🔺
@sentry/browser (incl. Metrics & Logs) 32.31 kB +0.04% +12 B 🔺
@sentry/react 32.16 kB +0.04% +11 B 🔺
@sentry/react (incl. Tracing) 54.83 kB +0.02% +9 B 🔺
@sentry/vue 38.47 kB +0.03% +10 B 🔺
@sentry/vue (incl. Tracing) 55.46 kB +0.02% +11 B 🔺
@sentry/svelte 30.37 kB +0.04% +12 B 🔺
@sentry/remix (Remix 3 client bundle) 57.6 kB +0.02% +7 B 🔺
CDN Bundle 32.07 kB +0.03% +9 B 🔺
CDN Bundle (incl. Tracing) 53.03 kB +0.03% +11 B 🔺
CDN Bundle (incl. Logs, Metrics) 34.27 kB +0.03% +9 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 55 kB +0.02% +8 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 75.26 kB +0.02% +11 B 🔺
CDN Bundle (incl. Tracing, Replay) 90.75 kB +0.01% +8 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 92.67 kB +0.01% +8 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 96.86 kB +0.02% +11 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 98.83 kB +0.02% +11 B 🔺
CDN Bundle - uncompressed 94.31 kB +0.02% +17 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 157.16 kB +0.02% +17 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.86 kB +0.02% +17 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 163.13 kB +0.02% +17 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 231.07 kB +0.01% +17 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 277.5 kB +0.01% +17 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 283.45 kB +0.01% +17 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 291.2 kB +0.01% +17 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 297.15 kB +0.01% +17 B 🔺
@sentry/nextjs (client) 57.7 kB +0.02% +10 B 🔺
@sentry/sveltekit (client) 53.01 kB +0.03% +11 B 🔺
@sentry/core/server 44.15 kB +1.04% +453 B 🔺
@sentry/core/browser 13.81 kB - -
@sentry/node 154.27 kB +0.03% +44 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 81.62 kB - -
@sentry/node - without tracing 95.57 kB +0.05% +42 B 🔺
@sentry/node - without channel injection 134.93 kB +0.03% +35 B 🔺
@sentry/aws-serverless 103.74 kB +0.04% +33 B 🔺
@sentry/cloudflare (withSentry) - minified 197.4 kB +0.06% +118 B 🔺
@sentry/cloudflare (withSentry) 490.39 kB +0.07% +316 B 🔺
@sentry/nextjs/cloudflare (withSentry) - minified 217.98 kB +0.06% +118 B 🔺

View base workflow run

@logaretm
logaretm force-pushed the awad/tunnel-manual-wiring-tests branch from 04d9cdf to 907a37a Compare October 27, 2026 22:28
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

Some optional checks were not successful. They do not block the merge. 5 not successful, 60 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E node-anthropic-send-to-sentry (latest) Test (optional) Failing after 15s Details
❌ CI: Optional E2E Tests / E2E node-express-send-to-sentry-static Test (optional) Failing after 3m Details
❌ CI: Optional E2E Tests / E2E node-eve (latest) Test (optional) Failing after 2m Details
❌ CI: Optional E2E Tests / E2E node-openai-decisions-send-to-sentry (latest) Test (optional) Failing after 4m Details
❌ CI: Optional E2E Tests / E2E node-openai-decisions-send-to-sentry Test (optional) Failing after 4m Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E angular (canary) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E astro-7-static Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) Successful in 32s Details
✅ CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 41s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E supabase-nextjs Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Successful in 24s Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 49s Details
✅ CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) Successful in 49s Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E angular (canary) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E deno (latest) Test (optional) Successful in 1m 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-14 (canary) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E vue-3 (canary) Test (optional) Successful in 58s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (canary, webpack) Test (optional) Successful in 5m Details
✅ CI: Optional E2E Tests / E2E nextjs-16-standalone (canary, turbopack) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (deno) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-openai-send-to-sentry (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 29s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (canary, turbopack) Test (optional) Successful in 5m Details
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-orpc 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 tanstackstart-react-cloudflare Test (optional) Successful in 24s Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-anthropic-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-eve Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) Successful in 25s Details
✅ CI: Optional E2E Tests / E2E node-openai-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-flue Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 16s Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 (tracer provider) Test (optional) Successful in 20s Details
✅ CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 30s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 23s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Successful in 49s Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 26s Details
✅ CI: Optional E2E Tests / E2E nuxt-3 (canary) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-4 (canary) Test (optional) Successful in 3m 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 25s Details
✅ CI: Optional E2E Tests / E2E nuxt-4-static (canary) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 24s Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) Successful in 57s Details

@logaretm
logaretm marked this pull request as ready for review October 27, 2026 23:43
@logaretm
logaretm requested a review from a team as a code owner October 27, 2026 23:43
@logaretm
logaretm requested review from andreiborza and isaacs and removed request for a team October 27, 2026 23:43

@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 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 907a37a. Configure here.

}

return runner.getPort()!;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HTTP/2 test polls port with sleeps

Low Severity

waitForPort polls getPort() with setTimeout and then non-null-asserts the result. That was flagged because the review rules treat timeouts and sleeps in tests as a flake pattern and ask for a concrete readiness signal instead, the same way makeRequest already waits on the runner’s port-ready promise.

Additional Locations (1)
Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit 907a37a. Configure here.

@logaretm
logaretm requested a review from JPeer264 October 28, 2026 03:21

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.

1 participant