Uh oh!
There was an error while loading. Please reload this page.
test(e2e): Port React Router v5 and v6 E2E apps to span streaming - #23841
Conversation
size-limit report 📦
|
| 'sentry.origin': { value: 'auto.navigation.react.reactrouter_v6', type: 'string' }, | ||
| 'sentry.segment.name.source': { value: 'route', type: 'string' }, | ||
| 'url.template': { value: '/bar/:barId', type: 'string' }, | ||
| 'url.path': { value: '/bar/456', type: 'string' }, |
There was a problem hiding this comment.
super-l: should we also assert against url.full here? Just noticed we do so below but feel free to skip
There was a problem hiding this comment.
Added it, the original test omitted it there but there is no reason to.
9dd059d to
e4cc238Compared87c67b to
b0f464fCompareUh oh!
There was an error while loading. Please reload this page.
e4cc238 to
ee4df2bCompareb0f464f to
37956c8Compareee4df2b to
6817d85Compare37956c8 to
b24c46cCompareThere was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b24c46c. Configure here.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
b24c46c to
e12d590Compared41e1c4 to
e83f714Comparee12d590 to
13d5c58Comparee83f714 to
3f2afd6Compare13d5c58 to
1a0c76dCompareCopies `react-router-7-framework` into `react-router-7-framework-static`, which keeps `traceLifecycle: 'static'` and its transaction-based specs. The rest of the React Router group moves to span streaming in the PRs above, so this copy is what keeps the static lifecycle covered. The copy drops the `latest` build variant, so it costs one CI job rather than two.
Removes the `traceLifecycle: 'static'` pin from `react-router-5`, `react-router-6`, `react-router-6-use-routes` and `react-router-6-descendant-routes`, and rewrites their specs against streamed span v2. The `react-router-6` SSE spec needed more than a helper swap: streamed `http.client` names carry only the domain, so the request is matched on `url.full`, and the abort error is read off the console because spans carry no breadcrumbs. All three SSE tests load the same route, so each one also pins its lookup to a pageload span that started after it navigated.
3f2afd6 to
436f969Compare1a0c76d to
801356cCompareUh oh!
There was an error while loading. Please reload this page.

What
Ports
react-router-5,react-router-6,react-router-6-use-routesandreact-router-6-descendant-routesto span streaming.Why
Span streaming is the default now, so the E2E suite has to exercise it. The SSE spec needed more than a helper swap: a streamed
http.clientspan carries only the domain in its name, so the request is matched onurl.full, and the abort error is read off the console because spans carry no breadcrumbs.Part of #23798