-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DevOverlay]: enable by default #75882
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
e142add
to
5f0354b
Compare
Failing test suitesCommit: 799111c
Expand output● nextjs APIs in after() › request APIs inside after() › cannot be called in a dynamic page
● nextjs APIs in after() › request APIs inside after() › cannot be called in a prerendered page › with
● nextjs APIs in after() › request APIs inside after() › cannot be called in a prerendered page › with
Read more about building and testing Next.js in contributing.md.
Expand output● app dir - rsc basics › should be able to navigate between rsc routes
Read more about building and testing Next.js in contributing.md.
Expand output● Error overlay for hydration errors in App router › should show error if script is directly placed under html instead of body
● Test suite failed to run
Read more about building and testing Next.js in contributing.md. |
Stats from current PRDefault Build (Increase detected
|
vercel/next.js canary | vercel/next.js 02-10-_devoverlay_enable_by_default | Change | |
---|---|---|---|
buildDuration | 18.7s | 17s | N/A |
buildDurationCached | 16.1s | 13.6s | N/A |
nodeModulesSize | 393 MB | 393 MB | N/A |
nextStartRea..uration (ms) | 458ms | 451ms | N/A |
Client Bundles (main, webpack) Overall increase ⚠️
vercel/next.js canary | vercel/next.js 02-10-_devoverlay_enable_by_default | Change | |
---|---|---|---|
5306-HASH.js gzip | 55.1 kB | 55.4 kB | |
7048.HASH.js gzip | 168 B | 168 B | ✓ |
8377-HASH.js gzip | 5.46 kB | 5.46 kB | N/A |
bccd1874-HASH.js gzip | 53 kB | 56.9 kB | |
framework-HASH.js gzip | 57.5 kB | 57.5 kB | N/A |
main-app-HASH.js gzip | 245 B | 247 B | N/A |
main-HASH.js gzip | 34.7 kB | 34.9 kB | |
webpack-HASH.js gzip | 1.71 kB | 1.71 kB | ✓ |
Overall change | 145 kB | 149 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | vercel/next.js 02-10-_devoverlay_enable_by_default | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 39.4 kB | 39.4 kB | ✓ |
Overall change | 39.4 kB | 39.4 kB | ✓ |
Client Pages
vercel/next.js canary | vercel/next.js 02-10-_devoverlay_enable_by_default | Change | |
---|---|---|---|
_app-HASH.js gzip | 194 B | 194 B | ✓ |
_error-HASH.js gzip | 193 B | 192 B | N/A |
amp-HASH.js gzip | 513 B | 511 B | N/A |
css-HASH.js gzip | 342 B | 342 B | ✓ |
dynamic-HASH.js gzip | 1.84 kB | 1.84 kB | N/A |
edge-ssr-HASH.js gzip | 265 B | 264 B | N/A |
head-HASH.js gzip | 363 B | 360 B | N/A |
hooks-HASH.js gzip | 393 B | 390 B | N/A |
image-HASH.js gzip | 4.59 kB | 4.59 kB | N/A |
index-HASH.js gzip | 268 B | 266 B | N/A |
link-HASH.js gzip | 2.35 kB | 2.35 kB | ✓ |
routerDirect..HASH.js gzip | 327 B | 326 B | N/A |
script-HASH.js gzip | 397 B | 397 B | ✓ |
withRouter-HASH.js gzip | 325 B | 325 B | ✓ |
1afbb74e6ecf..834.css gzip | 106 B | 106 B | ✓ |
Overall change | 3.72 kB | 3.72 kB | ✓ |
Client Build Manifests
vercel/next.js canary | vercel/next.js 02-10-_devoverlay_enable_by_default | Change | |
---|---|---|---|
_buildManifest.js gzip | 749 B | 747 B | N/A |
Overall change | 0 B | 0 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | vercel/next.js 02-10-_devoverlay_enable_by_default | Change | |
---|---|---|---|
index.html gzip | 522 B | 522 B | ✓ |
link.html gzip | 539 B | 536 B | N/A |
withRouter.html gzip | 519 B | 517 B | N/A |
Overall change | 522 B | 522 B | ✓ |
Edge SSR bundle Size Overall increase ⚠️
vercel/next.js canary | vercel/next.js 02-10-_devoverlay_enable_by_default | Change | |
---|---|---|---|
edge-ssr.js gzip | 130 kB | 130 kB | N/A |
page.js gzip | 211 kB | 215 kB | |
Overall change | 211 kB | 215 kB |
Middleware size Overall increase ⚠️
vercel/next.js canary | vercel/next.js 02-10-_devoverlay_enable_by_default | Change | |
---|---|---|---|
middleware-b..fest.js gzip | 675 B | 672 B | N/A |
middleware-r..fest.js gzip | 155 B | 156 B | N/A |
middleware.js gzip | 31.4 kB | 31.6 kB | |
edge-runtime..pack.js gzip | 844 B | 844 B | ✓ |
Overall change | 32.2 kB | 32.5 kB |
Next Runtimes
vercel/next.js canary | vercel/next.js 02-10-_devoverlay_enable_by_default | Change | |
---|---|---|---|
app-page-exp...dev.js gzip | 395 kB | 395 kB | N/A |
app-page-exp..prod.js gzip | 133 kB | 133 kB | ✓ |
app-page-tur..prod.js gzip | 145 kB | 145 kB | ✓ |
app-page-tur..prod.js gzip | 141 kB | 141 kB | ✓ |
app-page.run...dev.js gzip | 382 kB | 382 kB | N/A |
app-page.run..prod.js gzip | 129 kB | 129 kB | ✓ |
app-route-ex...dev.js gzip | 39.4 kB | 39.4 kB | ✓ |
app-route-ex..prod.js gzip | 25.7 kB | 25.7 kB | ✓ |
app-route-tu..prod.js gzip | 25.7 kB | 25.7 kB | ✓ |
app-route-tu..prod.js gzip | 25.5 kB | 25.5 kB | ✓ |
app-route.ru...dev.js gzip | 41 kB | 41 kB | ✓ |
app-route.ru..prod.js gzip | 25.5 kB | 25.5 kB | ✓ |
dist_client_...dev.js gzip | 356 B | 356 B | ✓ |
dist_client_...dev.js gzip | 349 B | 349 B | ✓ |
pages-api-tu..prod.js gzip | 9.72 kB | 9.72 kB | ✓ |
pages-api.ru...dev.js gzip | 11.8 kB | 11.8 kB | ✓ |
pages-api.ru..prod.js gzip | 9.72 kB | 9.72 kB | ✓ |
pages-turbo...prod.js gzip | 22 kB | 22 kB | ✓ |
pages.runtim...dev.js gzip | 31.6 kB | 31.6 kB | ✓ |
pages.runtim..prod.js gzip | 22 kB | 22 kB | ✓ |
server.runti..prod.js gzip | 61.2 kB | 61.2 kB | ✓ |
Overall change | 900 kB | 900 kB | ✓ |
build cache Overall increase ⚠️
vercel/next.js canary | vercel/next.js 02-10-_devoverlay_enable_by_default | Change | |
---|---|---|---|
0.pack gzip | 2.12 MB | 2.12 MB | |
index.pack gzip | 75.7 kB | 76.3 kB | |
Overall change | 2.19 MB | 2.2 MB |
Diff details
Diff for page.js
Diff too large to display
Diff for middleware.js
Diff too large to display
Diff for edge-ssr.js
Diff too large to display
Diff for 5306-HASH.js
Diff too large to display
Diff for bccd1874-HASH.js
Diff too large to display
Diff for main-HASH.js
Diff too large to display
Diff for app-page-exp..ntime.dev.js
Diff too large to display
Diff for app-page.runtime.dev.js
Diff too large to display
5f0354b
to
fc79403
Compare
c226c9a
to
dc2cf7a
Compare
4046ed8
to
d308155
Compare
11825dc
to
3bb7b5e
Compare
d308155
to
1097c7f
Compare
3bb7b5e
to
895b418
Compare
1097c7f
to
ebdc078
Compare
895b418
to
9ffd729
Compare
ebdc078
to
f09ef9d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LFG 👏
9382f8d
to
8b808ec
Compare
5 | <div> | ||
|
||
https://nextjs.org/docs/messages/module-not-found" | ||
"./app/page.js (2:1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
follow-up: Why are these in round brackets? This seems like a pretty exotic variation. File and line/column number are usually part of the location.
49a3bea
to
4e0b6cf
Compare
just removed the expect
4e0b6cf
to
5f8a996
Compare
5f8a996
to
799111c
Compare
### What - Fixes an issue where `after()` in an edge page would not run if the request was cancelled/aborted - Unskips the `runs callbacks if redirect() was called` test which was disabled to not block other things ### Background This was initially hit in #75882, during which the `runs callbacks if redirect() was called` test started failing when using experimental react + turbo in dev mode. Turns out that this happenws because something got slower and we weren't finishing the redirect response in time, i.e. before the browser disconnected and started loading the page it got redirected to. It's relevant that the response didn't finish streaming, because in `edge`, we use that as the trigger to start running `after()` callbacks. In particular, we instrument the response stream using `trackStreamConsumed`. The problem was that this function didn't handle the stream being cancelled, which is what happens when a request is aborted mid-streaming, so `after()` never ended up executing. This PR fixes that and adds some tests for cancellation and interrupted streaming.
- Fixes an issue where `after()` in an edge page would not run if the request was cancelled/aborted - Unskips the `runs callbacks if redirect() was called` test which was disabled to not block other things This was initially hit in #75882, during which the `runs callbacks if redirect() was called` test started failing when using experimental react + turbo in dev mode. Turns out that this happenws because something got slower and we weren't finishing the redirect response in time, i.e. before the browser disconnected and started loading the page it got redirected to. It's relevant that the response didn't finish streaming, because in `edge`, we use that as the trigger to start running `after()` callbacks. In particular, we instrument the response stream using `trackStreamConsumed`. The problem was that this function didn't handle the stream being cancelled, which is what happens when a request is aborted mid-streaming, so `after()` never ended up executing. This PR fixes that and adds some tests for cancellation and interrupted streaming.
newDevOverlay: true
by default (enables experimental React builds on canary until owner stacks progress further)run-tests
now sets the env var for tests that were relying on it for forking behavior