Skip to content

test(e2e): Port the create-remix-app-v2 E2E app to span streaming - #24058

Merged
andreiborza merged 2 commits into
developfrom
ab/e2e-create-remix-app-v2-streaming
Sep 4, 2026
Merged

test(e2e): Port the create-remix-app-v2 E2E app to span streaming#24058
andreiborza merged 2 commits into
developfrom
ab/e2e-create-remix-app-v2-streaming

Conversation

@andreiborza

Copy link
Copy Markdown
Member

What

Removes the traceLifecycle: 'static' pin from the client entry and the server instrument file, and rewrites the transaction specs as streamed span specs. The server/client link is now proven through the sentry-trace meta tag instead of a scope tag, because tags do not reach streamed spans.

Why

Span streaming is the default, so the default E2E suite should exercise it. Static coverage moves to the new create-remix-app-v2-static app (#24057).

Ref: #23807

Drops the `traceLifecycle: 'static'` pin and rewrites the specs to assert on
streamed spans.
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.69 kB added added
@sentry/browser - with treeshaking flags 26.99 kB added added
@sentry/browser - with treeshaking flags tracing without tracing 26.89 kB added added
@sentry/browser (incl. Tracing) 49.07 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 49.07 kB added added
@sentry/browser (incl. Tracing, Profiling) 51.98 kB added added
@sentry/browser (incl. Tracing, Replay) 88.62 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.85 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 93.3 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 106.24 kB added added
@sentry/browser (incl. Feedback) 46.17 kB added added
@sentry/browser (incl. sendFeedback) 33.75 kB added added
@sentry/browser (incl. FeedbackAsync) 38.85 kB added added
@sentry/browser (incl. Metrics) 29.66 kB added added
@sentry/browser (incl. Logs) 29.94 kB added added
@sentry/browser (incl. Metrics & Logs) 30.59 kB added added
@sentry/react 30.45 kB added added
@sentry/react (incl. Tracing) 51.28 kB added added
@sentry/vue 35.91 kB added added
@sentry/vue (incl. Tracing) 51.34 kB added added
@sentry/svelte 28.71 kB added added
CDN Bundle 30.43 kB added added
CDN Bundle (incl. Tracing) 49.6 kB added added
CDN Bundle (incl. Logs, Metrics) 32.66 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 51.53 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 73.31 kB added added
CDN Bundle (incl. Tracing, Replay) 87.15 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 89.02 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 93.08 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 95.03 kB added added
CDN Bundle - uncompressed 90.13 kB added added
CDN Bundle (incl. Tracing) - uncompressed 147.81 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.52 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 153.59 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.82 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 267.44 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 273.21 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 281.15 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 286.9 kB added added
@sentry/nextjs (client) 53.89 kB added added
@sentry/sveltekit (client) 49.51 kB added added
@sentry/core/server 40.96 kB added added
@sentry/core/browser 13.53 kB added added
@sentry/node 124.76 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 81.51 kB added added
@sentry/node - without tracing 88.5 kB added added
@sentry/node - without channel injection 104.08 kB added added
@sentry/aws-serverless 96.87 kB added added
@sentry/cloudflare (withSentry) - minified 201.56 kB added added
@sentry/cloudflare (withSentry) 501.37 kB added added

View base workflow run

@andreiborza
andreiborza marked this pull request as ready for review September 4, 2026 09:45
@andreiborza
andreiborza requested review from msonnb and s1gr1d September 4, 2026 09:45

const pageLoadTransactionPromise = waitForTransaction('create-remix-app-v2', transactionEvent => {
return transactionEvent.contexts?.trace?.op === 'pageload' && transactionEvent.tags?.['sentry_test'] === testTag;
test('Links the server and client spans of one page load', async ({ page }) => {

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.

do we not need the testTag functionality anymore?

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.

Since these tags don't reach streamed spans, I reworked this and we are now looking at the sentry-trace via meta tags on the page to identify the pageload instead.

But good catch, the route still sets tags. Removed them in f54c399

@andreiborza
andreiborza merged commit b252e16 into develop Sep 4, 2026
423 of 437 checks passed
@andreiborza
andreiborza deleted the ab/e2e-create-remix-app-v2-streaming branch September 4, 2026 11:11
andreiborza added a commit that referenced this pull request Sep 4, 2026
…-app-v2 db specs (#24092)

## What

Switches the two `create-remix-app-v2` db specs to the shared
`collectStreamedSpansUntilSegment` helper from #24073. The explicit
child-span count was redundant: the segment span ends last, so its
children are already in hand once it arrives.

## Why

Follow-up to #24058, which landed before the helper existed.

Ref: #23807
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