Skip to content

test(nextjs): Fix flaky node runtime metrics E2E tests - #20624

Merged
nicohrubec merged 1 commit into
developfrom
fix/flaky-nextjs-16-runtime-metrics-test
May 4, 2026
Merged

test(nextjs): Fix flaky node runtime metrics E2E tests#20624
nicohrubec merged 1 commit into
developfrom
fix/flaky-nextjs-16-runtime-metrics-test

Conversation

@nicohrubec

@nicohrubecnicohrubec commented May 3, 2026

Copy link
Copy Markdown
Member

Replace request.get() with fetch() for the server warmup calls in the nextjs-16 runtime metrics tests. All these flakes fail this initial request. The same runtime metrics tests also exists for node-express-v5, which hasn't flaked so far. That one uses fetch() for this request so I suspect that this might explain the flakiness.

Closes#20590
Closes#20414
Closes#20565
Closes#20560

Replace Playwright's `request.get()` with `fetch()` for the server
warmup calls in the nextjs-16 runtime metrics tests. The equivalent
tests in node-express-v5 use `fetch()` and don't flake, so we suspect
the difference in request mechanism explains the socket hangups.
Closes#20590Closes#20414Closes#20565Closes#20560
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize% ChangeChange
@sentry/browser26.16 kB--
@sentry/browser - with treeshaking flags24.63 kB--
@sentry/browser (incl. Tracing)44.13 kB--
@sentry/browser (incl. Tracing + Span Streaming)46.34 kB--
@sentry/browser (incl. Tracing, Profiling)49.08 kB--
@sentry/browser (incl. Tracing, Replay)83.48 kB--
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags72.96 kB--
@sentry/browser (incl. Tracing, Replay with Canvas)88.15 kB--
@sentry/browser (incl. Tracing, Replay, Feedback)100.8 kB--
@sentry/browser (incl. Feedback)43.4 kB--
@sentry/browser (incl. sendFeedback)30.96 kB--
@sentry/browser (incl. FeedbackAsync)36.14 kB--
@sentry/browser (incl. Metrics)27.44 kB--
@sentry/browser (incl. Logs)27.59 kB--
@sentry/browser (incl. Metrics & Logs)28.28 kB--
@sentry/react27.9 kB--
@sentry/react (incl. Tracing)46.36 kB--
@sentry/vue31.03 kB--
@sentry/vue (incl. Tracing)45.96 kB--
@sentry/svelte26.18 kB--
CDN Bundle28.85 kB--
CDN Bundle (incl. Tracing)46.91 kB--
CDN Bundle (incl. Logs, Metrics)30.27 kB--
CDN Bundle (incl. Tracing, Logs, Metrics)48.03 kB--
CDN Bundle (incl. Replay, Logs, Metrics)69.35 kB--
CDN Bundle (incl. Tracing, Replay)84.07 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics)85.14 kB--
CDN Bundle (incl. Tracing, Replay, Feedback)89.86 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics)90.96 kB--
CDN Bundle - uncompressed84.55 kB--
CDN Bundle (incl. Tracing) - uncompressed140.16 kB--
CDN Bundle (incl. Logs, Metrics) - uncompressed88.75 kB--
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed143.62 kB--
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed212.71 kB--
CDN Bundle (incl. Tracing, Replay) - uncompressed257.96 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed261.41 kB--
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed271.66 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed275.1 kB--
@sentry/nextjs (client)48.85 kB--
@sentry/sveltekit (client)44.58 kB--
@sentry/node-core59.06 kB+0.02%+9 B 🔺
@sentry/node170.35 kB+0.01%+8 B 🔺
@sentry/node - without tracing96.92 kB+0.01%+9 B 🔺
@sentry/aws-serverless113.78 kB+0.03%+31 B 🔺
@sentry/cloudflare (withSentry) - minified164.96 kB--
@sentry/cloudflare (withSentry)417.1 kB--

View base workflow run

@isaacs
isaacs self-requested a review May 3, 2026 16:55

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

At least in this run, it seems to have run without issue, so maybe it works? Ought to be equivalent anyway, so LGTM, if it's more reliable.

@nicohrubec
nicohrubec marked this pull request as ready for review May 4, 2026 06:53
@nicohrubec
nicohrubec merged commit 47d9427 into developMay 4, 2026
44 checks passed
@nicohrubec
nicohrubec deleted the fix/flaky-nextjs-16-runtime-metrics-test branch May 4, 2026 06:53
@nicohrubecLinear Code

nicohrubec commented May 4, 2026

Copy link
Copy Markdown
MemberAuthor

Yeah just a hypothesis. I'll give it a try, if it happens again we can have another look.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment