Skip to content

Use page static info data from Turbopack when available - #97662

Draft
mischnic wants to merge 6 commits into
canaryfrom
mischnic/turbopack-static-info
Draft

mischnic wants to merge 6 commits into
canaryfrom
mischnic/turbopack-static-info

Conversation

@mischnic

@mischnic mischnic commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

Use the static analysis from Turbopack

  • verify that Turbopack collects all needed information
  • switch over
  • remove validation logic

mischnic commented Aug 21, 2026 •

Copy link
Copy Markdown
Member Author

@github-actions

github-actions Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Stats from current PR

Warning

No stats were collected for Turbopack because its stats job did not complete (it failed, was cancelled, or timed out). The results below only cover the bundlers that finished.

🟢 3 improvements

Metric Canary PR Change Trend
Webpack Build Time (cached) 25.245s 24.103s 🟢 1.142s (-5%) ▅▃█▃▁
Webpack Cold (First Request) 3.498s 3.333s 🟢 165ms (-5%) ▂▂▇▃▂
Webpack Warm (First Request) 3.527s 3.343s 🟢 184ms (-5%) ▃▆█▃▂
📊 All Metrics
📖 Metrics Glossary

Dev Server Metrics:

  • Listen = TCP port starts accepting connections
  • First Request = HTTP server returns successful response
  • Cold = Fresh build (no cache)
  • Warm = With cached build artifacts

Build Metrics:

  • Fresh = Clean build (no .next directory)
  • Cached = With existing .next directory

Change Thresholds:

  • Time: Changes < 50ms AND < 10%, OR < 2% are insignificant
  • Size: Changes < 1KB AND < 1% are insignificant
  • All other changes are flagged to catch regressions
📦 Dev Server (Webpack) (Legacy)

📦 Dev Server (Webpack)

Metric Canary PR Change Trend
Cold (Listen) 816ms 813ms ✓ ▁▁█▁▁
Cold (Ready in log) 820ms 795ms ✓ ▂▂█▃▁
Cold (First Request) 3.498s 3.333s 🟢 165ms (-5%) ▂▂▇▃▂
Warm (Listen) 814ms 811ms ✓ ▅▅█▅▅
Warm (Ready in log) 819ms 798ms ✓ ▄▄█▃▂
Warm (First Request) 3.527s 3.343s 🟢 184ms (-5%) ▃▆█▃▂
📦 Production Builds (Webpack) (Legacy)

📦 Production Builds (Webpack)

Metric Canary PR Change Trend
Fresh Build 25.431s 25.551s ✓ ▅▃▇▃▂
Cached Build 25.245s 24.103s 🟢 1.142s (-5%) ▅▃█▃▁
node_modules Size 553 MB 553 MB ✓ █████
📦 Bundle Sizes

Bundle Sizes

📦 Webpack

Client

Main Bundles
Canary PR Change
3322-HASH.js gzip 65.6 kB N/A -
4191.HASH.js gzip 169 B N/A -
9784-HASH.js gzip 5.57 kB N/A -
b1ad9f4c-HASH.js gzip 63.5 kB N/A -
framework-HASH.js gzip 59.7 kB 59.7 kB ✓
main-app-HASH.js gzip 253 B 252 B ✓
main-HASH.js gzip 39.8 kB 39.7 kB ✓
webpack-HASH.js gzip 1.68 kB 1.68 kB ✓
3577.HASH.js gzip N/A 168 B -
578-HASH.js gzip N/A 65.8 kB -
8590-HASH.js gzip N/A 5.53 kB -
a8984546-HASH.js gzip N/A 63.5 kB -
Total 236 kB 236 kB ⚠️ +98 B
Polyfills
Canary PR Change
polyfills-HASH.js gzip 39.4 kB 39.4 kB ✓
Total 39.4 kB 39.4 kB ✓
Pages
Canary PR Change
_app-HASH.js gzip 194 B 193 B ✓
_error-HASH.js gzip 181 B 182 B ✓
css-HASH.js gzip 334 B 331 B ✓
dynamic-HASH.js gzip 1.81 kB 1.81 kB ✓
edge-ssr-HASH.js gzip 255 B 253 B ✓
head-HASH.js gzip 349 B 351 B ✓
hooks-HASH.js gzip 382 B 384 B ✓
image-HASH.js gzip 5.02 kB 5.01 kB ✓
index-HASH.js gzip 260 B 259 B ✓
link-HASH.js gzip 2.48 kB 2.48 kB ✓
routerDirect..HASH.js gzip 317 B 318 B ✓
script-HASH.js gzip 384 B 386 B ✓
withRouter-HASH.js gzip 316 B 315 B ✓
1afbb74e6ecf..834.css gzip 106 B 106 B ✓
Total 12.4 kB 12.4 kB ✓

Server

Edge SSR
Canary PR Change
edge-ssr.js gzip 128 kB 128 kB ✓
page.js gzip 292 kB 292 kB ✓
Total 420 kB 420 kB ✅ -399 B
Middleware
Canary PR Change
middleware-b..fest.js gzip 599 B 600 B ✓
middleware-r..fest.js gzip 156 B 156 B ✓
middleware.js gzip 45.7 kB 45.2 kB 🟢 489 B (-1%)
edge-runtime..pack.js gzip 842 B 842 B ✓
Total 47.3 kB 46.8 kB ✅ -488 B
Build Details
Build Manifests
Canary PR Change
_buildManifest.js gzip 698 B 698 B ✓
Total 698 B 698 B ✓
Build Cache
Canary PR Change
0.pack gzip 4.79 MB 4.78 MB ✓
index.pack gzip 123 kB 124 kB ✓
index.pack.old gzip 124 kB 125 kB ✓
Total 5.04 MB 5.03 MB ✅ -3.64 kB

🔄 Shared (bundler-independent)

Runtimes
Canary PR Change
app-page-exp...dev.js gzip 373 kB 373 kB ✓
app-page-exp..prod.js gzip 206 kB 206 kB ✓
app-page-tur...dev.js gzip 373 kB 373 kB ✓
app-page-tur..prod.js gzip 206 kB 206 kB ✓
app-page-tur...dev.js gzip 369 kB 369 kB ✓
app-page-tur..prod.js gzip 203 kB 203 kB ✓
app-page.run...dev.js gzip 370 kB 370 kB ✓
app-page.run..prod.js gzip 203 kB 203 kB ✓
app-route-ex...dev.js gzip 82.5 kB 82.5 kB ✓
app-route-ex..prod.js gzip 55.6 kB 55.6 kB ✓
app-route-tu...dev.js gzip 82.5 kB 82.5 kB ✓
app-route-tu..prod.js gzip 55.6 kB 55.6 kB ✓
app-route-tu...dev.js gzip 82.1 kB 82.1 kB ✓
app-route-tu..prod.js gzip 55.4 kB 55.4 kB ✓
app-route.ru...dev.js gzip 82.1 kB 82.1 kB ✓
app-route.ru..prod.js gzip 55.4 kB 55.4 kB ✓
dev-validati...dev.js gzip 134 kB 134 kB ✓
dev-validati...dev.js gzip 134 kB 134 kB ✓
dev-validati...dev.js gzip 132 kB 132 kB ✓
dev-validati...dev.js gzip 132 kB 132 kB ✓
dist_client_...dev.js gzip 324 B 324 B ✓
dist_client_...dev.js gzip 326 B 326 B ✓
dist_client_...dev.js gzip 318 B 318 B ✓
dist_client_...dev.js gzip 317 B 317 B ✓
pages-api-tu...dev.js gzip 46.2 kB 46.2 kB ✓
pages-api-tu..prod.js gzip 34.3 kB 34.3 kB ✓
pages-api.ru...dev.js gzip 46.2 kB 46.2 kB ✓
pages-api.ru..prod.js gzip 34.2 kB 34.2 kB ✓
pages-turbo....dev.js gzip 54.6 kB 54.6 kB ✓
pages-turbo...prod.js gzip 39.6 kB 39.6 kB ✓
pages.runtim...dev.js gzip 54.6 kB 54.6 kB ✓
pages.runtim..prod.js gzip 39.6 kB 39.6 kB ✓
server.runti..prod.js gzip 65.8 kB 65.8 kB ✓
use-cache-pr...dev.js gzip 72.5 kB 72.5 kB ✓
use-cache-pr...dev.js gzip 72.5 kB 72.5 kB ✓
use-cache-pr...dev.js gzip 70.7 kB 70.7 kB ✓
use-cache-pr...dev.js gzip 70.7 kB 70.7 kB ✓
Total 4.09 MB 4.09 MB ✅ -1 B
📎 Tarball URL
https://vercel-packages.vercel.app/next/commits/e6580dbe793f3194c56df5a5ba3f03c029552c30/next

Commit: e6580db

@mischnic mischnic changed the title segment_config: max_duration Use page static info collect from Turbopack when available Aug 21, 2026
@mischnic
mischnic force-pushed the mischnic/turbopack-static-info branch from cf94bc5 to 4c2c450 Compare August 21, 2026 06:54
@mischnic mischnic added CI Bypass Graphite Optimization Ignore Graphite CI optimizations, run the full CI suite. https://graphite.dev/docs/stacking-and-ci CI Bypass PR Stack Optimization Run all CI checks mid-stack (GitHub+Graphite supported). Rebase after adding label to re-trigger. labels Aug 21, 2026
@mischnic
mischnic marked this pull request as ready for review August 21, 2026 07:45
@mischnic
mischnic marked this pull request as draft August 21, 2026 07:47
@mischnic
mischnic force-pushed the mischnic/turbopack-static-info branch from 4c2c450 to 5735bb9 Compare August 21, 2026 07:48
Comment thread WIP.md Outdated
@mischnic mischnic changed the title Use page static info collect from Turbopack when available Use page static info data from Turbopack when available Aug 21, 2026

@dianatofficial dianatofficial left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified the diff. Changes align with project standards.

Base automatically changed from mischnic/cleanup-getPagesPageStaticInfo to canary August 24, 2026 10:05
@mischnic
mischnic force-pushed the mischnic/turbopack-static-info branch from 850c0ea to e6580db Compare August 24, 2026 10:08
@mischnic
mischnic force-pushed the mischnic/turbopack-static-info branch from 26b1aeb to 8dd5fb8 Compare September 14, 2026 13:12
@mischnic
mischnic changed the base branch from canary to mischnic/turbopack-segment-config September 14, 2026 13:12
@mischnic
mischnic added this pull request to stack #98642 September 14, 2026 13:12
@mischnic
mischnic force-pushed the mischnic/turbopack-static-info branch from 8dd5fb8 to 6cbd48d Compare September 14, 2026 13:47
@mischnic
mischnic force-pushed the mischnic/turbopack-static-info branch from 6cbd48d to ce90018 Compare September 14, 2026 13:52
@mischnic
mischnic force-pushed the mischnic/turbopack-static-info branch from ce90018 to 94ef440 Compare September 14, 2026 14:21
@mischnic
mischnic force-pushed the mischnic/turbopack-static-info branch from 94ef440 to 6a04f06 Compare September 16, 2026 07:52
@mischnic
mischnic force-pushed the mischnic/turbopack-static-info branch 2 times, most recently from faaeccb to 377bbde Compare September 25, 2026 08:39
@mischnic
mischnic force-pushed the mischnic/turbopack-static-info branch from 377bbde to 7e8e3b9 Compare October 13, 2026 09:42
@github-actions github-actions Bot added created-by: Turbopack team PRs by the Turbopack team. Turbopack Related to Turbopack with Next.js. type: next labels Oct 13, 2026
Base automatically changed from mischnic/turbopack-segment-config to canary October 13, 2026 20:49
mischnic added a commit that referenced this pull request Oct 13, 2026
This isn't really used yet anywhere, this is preparing for
#97662

---------

Co-authored-by: vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com>
@mischnic
mischnic force-pushed the mischnic/turbopack-static-info branch from bb0779e to 818815a Compare October 13, 2026 20:49
@mischnic
mischnic removed this pull request from stack #98642 October 14, 2026 13:24
@mischnic
mischnic force-pushed the mischnic/turbopack-static-info branch 2 times, most recently from 88541a6 to 261d716 Compare October 14, 2026 13:29
@mischnic
mischnic changed the base branch from canary to mischnic/static-info-rsc October 14, 2026 13:29
@mischnic
mischnic added this pull request to stack #100184 October 14, 2026 13:29
Base automatically changed from mischnic/static-info-rsc to canary October 14, 2026 16:50
@mischnic
mischnic force-pushed the mischnic/turbopack-static-info branch from 46aa5aa to 42c36ce Compare October 14, 2026 16:50

This branch has not been deployed

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

Labels

CI Bypass Graphite Optimization Ignore Graphite CI optimizations, run the full CI suite. https://graphite.dev/docs/stacking-and-ci CI Bypass PR Stack Optimization Run all CI checks mid-stack (GitHub+Graphite supported). Rebase after adding label to re-trigger. created-by: Turbopack team PRs by the Turbopack team. Turbopack Related to Turbopack with Next.js. type: next

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants