Skip to content

test(tanstackstart-react): Add source map E2E app - #25363

Merged
s1gr1d merged 4 commits into
developfrom
sig/tanstack-start-source-maps-e2e
Oct 23, 2026
Merged

s1gr1d merged 4 commits into
developfrom
sig/tanstack-start-source-maps-e2e

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Oct 14, 2026

Copy link
Copy Markdown
Member

Adds the tanstackstart-react-sourcemaps E2E app. It builds a TanStack Start app with Nitro against a mock Sentry server and checks the upload:

  • The source maps carry the client and server source.
  • Their source paths are relative to the project root.
  • Every debug ID has an uploaded source map.
  • No source map stays in the build output.

The app is optional in CI because Nitro 3 is in beta.

Stacked on #25360.

Refs #21012

@s1gr1d
s1gr1d marked this pull request as ready for review October 14, 2026 11:59
@s1gr1d
s1gr1d force-pushed the sig/tanstack-start-source-maps-e2e branch from 8613745 to 1d9d414 Compare October 14, 2026 12:08
@s1gr1d

s1gr1d commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

bugbot run

@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.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1d9d414. Configure here.

@s1gr1d
s1gr1d requested review from JPeer264 and nicohrubec October 14, 2026 12:58
Comment on lines +62 to +63
// TODO: The uploader passes the emitted file paths to `glob` as patterns, so it skips a file whose path has glob
// characters, like Nitro's `_libs/@tanstack/react-router+[...].mjs`. Remove this when the uploader matches paths literally.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Tracking issue for this: #25321

@s1gr1d
s1gr1d added this pull request to stack #25439 October 16, 2026 08:29

@JPeer264 JPeer264 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. Tests fail though because the pnpm-workspace is missing

@s1gr1d
s1gr1d requested review from a team as code owners October 20, 2026 15:48
@s1gr1d
s1gr1d requested review from chargome, isaacs, logaretm and mydea and removed request for a team October 20, 2026 15:48
Base automatically changed from sig/tanstack-start-source-maps to develop October 23, 2026 13:18
Build a TanStack Start app with Nitro against a mock Sentry server and check the upload: the
source maps carry the client and server source, their source paths are relative to the project
root, every debug ID has an uploaded source map, and no source map stays in the build output.

The app is optional in CI because Nitro 3 is in beta.
Both markers are in the same route file, which client and server source maps embed completely,
so one uploaded map could pass both checks. Check each marker only in the source maps of the
files in its output directory, matched by debug ID.
Install test-utils from the tarball, pin Playwright to 1.64.1 and add
the app's pnpm-workspace.yaml.
@s1gr1d
s1gr1d force-pushed the sig/tanstack-start-source-maps-e2e branch from 326632b to cdd46bc Compare October 23, 2026 13:18
@s1gr1d
s1gr1d enabled stacked auto-merge (squash) October 23, 2026 13:19
@github-actions

Copy link
Copy Markdown
Contributor

Optional E2E tests

All optional checks were successful. 1 successful. See the run.

Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 25s Details

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 9d65457 (PR test merge using develop at 6def2d7)

Against: 6def2d7 (develop) · base run #63362

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

Path Size % Change Change
@sentry/browser 29.98 kB - -
@sentry/browser - with treeshaking flags 28.13 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.03 kB - -
@sentry/browser (incl. Tracing) 52.17 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.18 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.12 kB - -
@sentry/browser (incl. Tracing, Replay) 91.96 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 80.85 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 96.69 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 109.63 kB - -
@sentry/browser (incl. Feedback) 47.51 kB - -
@sentry/browser (incl. sendFeedback) 35.05 kB - -
@sentry/browser (incl. FeedbackAsync) 40.15 kB - -
@sentry/browser (incl. Metrics) 31.01 kB - -
@sentry/browser (incl. Logs) 31.28 kB - -
@sentry/browser (incl. Metrics & Logs) 31.94 kB - -
@sentry/react 31.81 kB - -
@sentry/react (incl. Tracing) 54.5 kB - -
@sentry/vue 38.14 kB - -
@sentry/vue (incl. Tracing) 55.11 kB - -
@sentry/svelte 30.01 kB - -
@sentry/remix (Remix 3 client bundle) 57.19 kB - -
CDN Bundle 31.76 kB - -
CDN Bundle (incl. Tracing) 52.71 kB - -
CDN Bundle (incl. Logs, Metrics) 33.95 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 54.66 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.93 kB - -
CDN Bundle (incl. Tracing, Replay) 90.41 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 92.33 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 96.55 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 98.5 kB - -
CDN Bundle - uncompressed 93.51 kB - -
CDN Bundle (incl. Tracing) - uncompressed 156.36 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.06 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 162.33 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 230.28 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 276.71 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 282.66 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 290.41 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 296.35 kB - -
@sentry/nextjs (client) 57.38 kB - -
@sentry/sveltekit (client) 52.55 kB - -
@sentry/core/server 41.88 kB - -
@sentry/core/browser 13.81 kB - -
@sentry/node 153.2 kB -0.01% -1 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 81.58 kB - -
@sentry/node - without tracing 94.72 kB - -
@sentry/node - without channel injection 133.8 kB - -
@sentry/aws-serverless 102.88 kB -0.01% -1 B 🔽
@sentry/cloudflare (withSentry) - minified 193.73 kB - -
@sentry/cloudflare (withSentry) 481.91 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 214.4 kB - -

View base workflow run

@s1gr1d
s1gr1d merged commit e1026aa into develop Oct 23, 2026
44 checks passed
@s1gr1d
s1gr1d deleted the sig/tanstack-start-source-maps-e2e branch October 23, 2026 13:23
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.

3 participants