Skip to content

test(nextjs): Add vinext e2e tests - #25001

Draft
JPeer264 wants to merge 1 commit into
jp/cloudflare-vite-vinext-nextjs-entryfrom
jp/vinext-e2e-tests
Draft

JPeer264 wants to merge 1 commit into
jp/cloudflare-vite-vinext-nextjs-entryfrom
jp/vinext-e2e-tests

Conversation

@JPeer264

@JPeer264 JPeer264 commented Oct 2, 2026

Copy link
Copy Markdown
Member

vinext builds a Next.js app with Vite, so it gets the Next.js tests in two places:

  • nextjs-16 (vinext) and nextjs-16 (vinext, bun) build nextjs-16 with vinext and run the same suite as Next.js. The skips mark SDK gaps on vinext: openai and ioredis get their diagnostics channels from the webpack or Turbopack loader, which vinext does not run. On Bun, vinext replaces globalThis.fetch with a wrapper of the fetch from before Sentry.init, so there are no fetch spans. The OpenNext wrangler config is now wrangler.opennext.jsonc, because vinext refuses to build without the Cloudflare plugin when the project root has a wrangler config.
  • vinext-cf-workers covers vinext on Workers through the Vite plugin. It also has the standard register() of the wizard, whose init must create no second client in the Worker.

There is no Deno variant: on Deno, the node:http server of vinext starts each request after the first one in the AsyncLocalStorage store of an earlier request, also without Sentry, so vinext creates no request span.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 2, 2026 •

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.52 kB - -
@sentry/browser - with treeshaking flags 27.68 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.57 kB - -
@sentry/browser (incl. Tracing) 51.45 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 51.46 kB - -
@sentry/browser (incl. Tracing, Profiling) 54.46 kB - -
@sentry/browser (incl. Tracing, Replay) 91.04 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 80.03 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 95.74 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 108.71 kB - -
@sentry/browser (incl. Feedback) 47.04 kB - -
@sentry/browser (incl. sendFeedback) 34.57 kB - -
@sentry/browser (incl. FeedbackAsync) 39.68 kB - -
@sentry/browser (incl. Metrics) 30.54 kB - -
@sentry/browser (incl. Logs) 30.82 kB - -
@sentry/browser (incl. Metrics & Logs) 31.48 kB - -
@sentry/react 31.36 kB - -
@sentry/react (incl. Tracing) 53.8 kB - -
@sentry/vue 37.51 kB - -
@sentry/vue (incl. Tracing) 54.33 kB - -
@sentry/svelte 29.55 kB - -
@sentry/remix (Remix 3 client bundle) 55.77 kB - -
CDN Bundle 31.22 kB - -
CDN Bundle (incl. Tracing) 51.98 kB - -
CDN Bundle (incl. Logs, Metrics) 33.46 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 53.91 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.2 kB - -
CDN Bundle (incl. Tracing, Replay) 89.56 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 91.53 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 95.72 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 97.71 kB - -
CDN Bundle - uncompressed 92.14 kB - -
CDN Bundle (incl. Tracing) - uncompressed 154.49 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 98.71 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 160.45 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 228.28 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 274.22 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 280.16 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 287.93 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 293.86 kB - -
@sentry/nextjs (client) 56.32 kB - -
@sentry/sveltekit (client) 51.87 kB - -
@sentry/core/server 40.59 kB - -
@sentry/core/browser 13.63 kB - -
@sentry/node 144.69 kB +0.01% +11 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.2 kB - -
@sentry/node - without tracing 93.24 kB +0.02% +10 B 🔺
@sentry/node - without channel injection 122.95 kB +0.01% +8 B 🔺
@sentry/aws-serverless 101.51 kB +0.01% +5 B 🔺
@sentry/cloudflare (withSentry) - minified 208.72 kB +0.06% +106 B 🔺
@sentry/cloudflare (withSentry) 518.61 kB +0.08% +401 B 🔺

View base workflow run

@JPeer264
JPeer264 force-pushed the jp/vinext-e2e-tests branch from d2c8ab0 to cd09798 Compare October 2, 2026 18:33
@JPeer264
JPeer264 force-pushed the jp/cloudflare-vite-vinext-nextjs-entry branch from f3f2a5f to 6d76b74 Compare October 2, 2026 18:33
vinext builds a Next.js app with Vite. Its e2e tests run in two places:

- nextjs-16 gets the optional variants `nextjs-16 (vinext)` and
  `nextjs-16 (vinext, bun)`. vinext builds the same app, and the same tests
  run as for Next.js. They skip the checks of the Next.js build output, and
  two SDK gaps on vinext: `openai` and `ioredis` get their diagnostics
  channels from the build-time loader of webpack or Turbopack, which vinext
  does not run. The OpenNext wrangler config is now
  `wrangler.opennext.jsonc`, because vinext refuses to build without the
  Cloudflare plugin when the project root has a wrangler config.
- `vinext-cf-workers` covers vinext on Workers. Its Worker entry has no
  Sentry calls, so `sentryCloudflareVitePlugin` must wrap it with
  `withSentry` from `@sentry/nextjs/cloudflare`. The app also has the server
  config of a Next.js app, whose `init` must create no second client in the
  Worker. The tests check that each request has one `http.server` span with
  the route of Next.js and the Next.js spans in its segment, that an incoming
  trace is continued in that segment, and that an error from
  `onRequestError` is in the trace of the request.

There is no Deno variant. On Deno, the `node:http` server of vinext starts
each request after the first one in the AsyncLocalStorage store of an
earlier request, also without Sentry, so vinext creates no request span.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JPeer264
JPeer264 force-pushed the jp/cloudflare-vite-vinext-nextjs-entry branch from 6d76b74 to 28a0224 Compare October 2, 2026 19:29
@JPeer264
JPeer264 force-pushed the jp/vinext-e2e-tests branch from cd09798 to e4ac7e8 Compare October 2, 2026 19:29

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