Skip to content

test(solidstart): Move tunnel e2e tests into dedicated solidstart tunnel apps - #26390

Merged
mydea merged 2 commits into
developfrom
test/e2e-solidstart-tunnel
Nov 16, 2026
Merged

mydea merged 2 commits into
developfrom
test/e2e-solidstart-tunnel

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #26384.

What

Adds small solidstart-1-tunnel (SolidStart 1) and solidstart-2-tunnel (SolidStart 2) apps that serve the managed tunnel under /app and run the shared tunnel suite in production and dev. The solidstart and solidstart-2 apps lose their tunnel variants, env toggles, auth middleware branches and tunnel specs.

Why

The tunnel variants built the full SolidStart apps twice just to run one spec. The two versions stay separate apps because their base-path wiring differs (withSentry plus the Nitro 2 tunnel plugin vs. sentrySolidStart via @sentry/nitro's runtime config).

The suite's /app/api/anchor and /app/api/error routes are not SolidStart API routes. SolidStart 1 doesn't match API routes under server.baseURL, so the v1 app answers them in its middleware and captures the error itself. On v2, errors thrown in SolidStart API routes never reach Nitro's error hook, so Sentry doesn't capture them, and the v2 app serves both as Nitro routes. Open question: should either SDK gap get its own issue?

via @mydea.

--

View Session [Sentry]

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 6ca099e (PR test merge using develop at 2a0c6f3)

Against: 2a0c6f3 (develop) · base run #66181

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

Path Size % Change Change
@sentry/browser 30.1 kB - -
@sentry/browser - with treeshaking flags 28.3 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.2 kB - -
@sentry/browser (incl. Tracing) 52.28 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.29 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.25 kB - -
@sentry/browser (incl. Tracing, Replay) 92.82 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.6 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 97.21 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 110.6 kB - -
@sentry/browser (incl. Feedback) 47.73 kB - -
@sentry/browser (incl. sendFeedback) 30.69 kB - -
@sentry/browser (incl. FeedbackAsync) 35.69 kB - -
@sentry/browser (incl. Metrics) 31.43 kB - -
@sentry/browser (incl. Logs) 31.71 kB - -
@sentry/browser (incl. Metrics & Logs) 32.37 kB - -
@sentry/react 32.11 kB - -
@sentry/react (incl. Tracing) 54.95 kB - -
@sentry/vue 38.3 kB - -
@sentry/vue (incl. Tracing) 55.24 kB - -
@sentry/svelte 30.12 kB - -
@sentry/remix (Remix 3 client bundle) 58.06 kB - -
CDN Bundle 31.87 kB - -
CDN Bundle (incl. Tracing) 52.7 kB - -
CDN Bundle (incl. Logs, Metrics) 34.67 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 55.26 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 75.7 kB - -
CDN Bundle (incl. Tracing, Replay) 90.72 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 93.33 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 96.09 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 98.69 kB - -
CDN Bundle - uncompressed 92.98 kB - -
CDN Bundle (incl. Tracing) - uncompressed 155.45 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 101.33 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 163.08 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 231.44 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 275.61 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 283.24 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 287.4 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 295.02 kB - -
@sentry/nextjs (client) 58.37 kB - -
@sentry/sveltekit (client) 53.48 kB - -
@sentry/core/server 44.73 kB - -
@sentry/core/browser 14.3 kB - -
@sentry/node 150.46 kB -0.01% -8 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.3 kB - -
@sentry/node - without tracing 88.55 kB -0.01% -6 B 🔽
@sentry/node - without channel injection 139.42 kB -0.01% -7 B 🔽
@sentry/aws-serverless 98.46 kB -0.01% -4 B 🔽
@sentry/cloudflare (withSentry) - minified 205.69 kB - -
@sentry/cloudflare (withSentry) 477.15 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 231 kB - -

View base workflow run

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

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

Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E solidstart-2-tunnel Test (optional) Successful in 50s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 52s Details

@sentry-junior
sentry-junior Bot force-pushed the test/e2e-solidstart-tunnel branch from 4f42b79 to e67497f Compare November 16, 2026 09:38
@sentry-junior
sentry-junior Bot changed the base branch from test/e2e-nitro-3-tunnel to test/e2e-sveltekit-tunnel November 16, 2026 09:39
@sentry-junior
sentry-junior Bot added this pull request to stack #26387 November 16, 2026 09:39
@mydea
mydea marked this pull request as ready for review November 16, 2026 09:49
@mydea
mydea requested review from a team and JPeer264 November 16, 2026 09:49
@sentry-junior
sentry-junior Bot requested a review from mydea November 16, 2026 09:49
@sentry-junior
sentry-junior Bot force-pushed the test/e2e-sveltekit-tunnel branch from 2cf3423 to e1974aa Compare November 16, 2026 09:57
@sentry-junior
sentry-junior Bot force-pushed the test/e2e-solidstart-tunnel branch from e67497f to 73a1903 Compare November 16, 2026 09:58
@s1gr1d

s1gr1d commented Nov 16, 2026

Copy link
Copy Markdown
Member

On v2, errors thrown in SolidStart API routes never reach Nitro's error hook, so Sentry doesn't capture them, and the v2 app serves both as Nitro routes. Open question: should either SDK gap get its own issue?

That's something we should look into

@sentry-junior

sentry-junior Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

@s1gr1d Agreed. What I saw locally with @solidjs/start 2.0.2 and nitro 3.0.260610-beta, in a production build:

  • src/routes/api/error.ts exported GET() { throw new Error('Tunnel test error') }.
  • The request returned a 500, and the server logged the error with unhandled: true.
  • No error event reached the event proxy.
  • I added a log line to captureErrorHook in the built @sentry/nitro runtime plugin, and it never ran. So the error is handled before it gets to Nitro's error hook.
  • The same throw from a Nitro route (server/routes/app/api/error.ts) is captured, so the app uses a Nitro route for now.

This PR leaves the SDK unchanged, so the gap needs a separate issue to track it.

@mydea
mydea force-pushed the test/e2e-solidstart-tunnel branch from 0c7b38c to ef8c7d2 Compare November 16, 2026 10:23
sentry-junior Bot and others added 2 commits November 16, 2026 10:24
…nel apps

The solidstart and solidstart-2 tunnel-basepath variants built the full test apps
just to run one tunnel spec. Minimal solidstart-tunnel (SolidStart 1) and
solidstart-2-tunnel (SolidStart 2) apps serve the managed tunnel under `/app` and
run the shared tunnel suite in production and dev, so the legacy apps drop their
tunnel toggles, variants, auth middleware branches and specs.

Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
@sentry-junior
sentry-junior Bot removed this pull request from stack #26387 November 16, 2026 10:24
@sentry-junior
sentry-junior Bot changed the base branch from test/e2e-sveltekit-tunnel to develop November 16, 2026 10:28
@sentry-junior
sentry-junior Bot force-pushed the test/e2e-solidstart-tunnel branch from ef8c7d2 to bc335e7 Compare November 16, 2026 10:29
@mydea
mydea enabled auto-merge (squash) November 16, 2026 10:36
@mydea
mydea merged commit dd306ed into develop Nov 16, 2026
51 checks passed
@mydea
mydea deleted the test/e2e-solidstart-tunnel branch November 16, 2026 10:38
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