Skip to content

Conversation

@logaretm
Copy link
Collaborator

@logaretm logaretm commented Nov 5, 2025

I can't reproduce the flakiness locally, I logged a few things on CI runs and it seems while the fetch spans does get created, it doesn't get created on the middletrasnaction.

This is similar to what the note is saying in dev-mode, for it to be less flakey I'm asserting if it either has the span on the right transaction or if it got created in a separate transaction. Ideally we want it to be created within the middleware transaction but it seems like there is a timing issue preventing it from being picked up there.

At any case this seems to reduce or eliminate the chances of failed runs, previously it would fail consistently but with this it didn't fail in 5 runs so far.

@logaretm logaretm force-pushed the awad/unflake-next16-middleware-test branch from fb04bc8 to 6490162 Compare November 5, 2025 13:52
@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.58 kB - -
@sentry/browser - with treeshaking flags 23.07 kB - -
@sentry/browser (incl. Tracing) 41.2 kB - -
@sentry/browser (incl. Tracing, Profiling) 45.48 kB - -
@sentry/browser (incl. Tracing, Replay) 79.68 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.35 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 84.38 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 96.54 kB - -
@sentry/browser (incl. Feedback) 41.25 kB - -
@sentry/browser (incl. sendFeedback) 29.25 kB - -
@sentry/browser (incl. FeedbackAsync) 34.18 kB - -
@sentry/react 26.27 kB - -
@sentry/react (incl. Tracing) 43.19 kB - -
@sentry/vue 29.06 kB - -
@sentry/vue (incl. Tracing) 42.97 kB - -
@sentry/svelte 24.59 kB - -
CDN Bundle 26.84 kB - -
CDN Bundle (incl. Tracing) 41.75 kB - -
CDN Bundle (incl. Tracing, Replay) 78.26 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 83.73 kB - -
CDN Bundle - uncompressed 78.7 kB - -
CDN Bundle (incl. Tracing) - uncompressed 123.82 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 239.85 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 252.62 kB - -
@sentry/nextjs (client) 45.29 kB - -
@sentry/sveltekit (client) 41.59 kB - -
@sentry/node-core 50.75 kB - -
@sentry/node 157.81 kB +0.01% +1 B 🔺
@sentry/node - without tracing 92.63 kB - -
@sentry/aws-serverless 106.36 kB - -

View base workflow run

@logaretm logaretm force-pushed the awad/unflake-next16-middleware-test branch from 6490162 to 5c7772d Compare November 6, 2025 14:59
@logaretm logaretm changed the title test(next): wait for request to give time for assertion test(next): fix flakey tests Nov 6, 2025
@logaretm logaretm force-pushed the awad/unflake-next16-middleware-test branch from 7b5b2a4 to 3023eaa Compare November 6, 2025 17:22
@logaretm logaretm marked this pull request as ready for review November 6, 2025 17:22
@logaretm logaretm requested a review from chargome November 6, 2025 17:45
@logaretm logaretm linked an issue Nov 6, 2025 that may be closed by this pull request
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.

Investigate flaky nextjs-16 e2e tests

2 participants