这是indexloc提供的服务,不要输入任何密码
Skip to content

update next.js to 13.1.7-canary.2 #3595

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

Merged
merged 6 commits into from
Feb 2, 2023
Merged

update next.js to 13.1.7-canary.2 #3595

merged 6 commits into from
Feb 2, 2023

Conversation

sokra
Copy link
Member

@sokra sokra commented Feb 2, 2023

No description provided.

@vercel
Copy link

vercel bot commented Feb 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
examples-native-web 🔄 Building (Inspect) Feb 2, 2023 at 2:10PM (UTC)
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 2, 2023 at 2:10PM (UTC)
8 Ignored Deployments
Name Status Preview Comments Updated
examples-basic-web ⬜️ Ignored (Inspect) Feb 2, 2023 at 2:10PM (UTC)
examples-cra-web ⬜️ Ignored (Inspect) Feb 2, 2023 at 2:10PM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Feb 2, 2023 at 2:10PM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Feb 2, 2023 at 2:10PM (UTC)
examples-nonmonorepo ⬜️ Ignored (Inspect) Feb 2, 2023 at 2:10PM (UTC)
examples-svelte-web ⬜️ Ignored (Inspect) Feb 2, 2023 at 2:10PM (UTC)
examples-tailwind-web ⬜️ Ignored (Inspect) Feb 2, 2023 at 2:10PM (UTC)
examples-vite-web ⬜️ Ignored (Inspect) Feb 2, 2023 at 2:10PM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2023

Benchmark for 2737e22

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack RSC/1000 modules 463.11ms ± 2.18ms 480.49ms ± 1.41ms +3.75% +2.19%
bench_hydration/Turbopack RCC/1000 modules 3719.31ms ± 10.09ms 4471.06ms ± 38.48ms +20.21% +17.51%
bench_hydration/Turbopack RSC/1000 modules 3202.62ms ± 6.00ms 3935.20ms ± 15.15ms +22.87% +21.47%
bench_hydration/Turbopack SSR/1000 modules 3017.42ms ± 4.99ms 3789.94ms ± 20.17ms +25.60% +23.86%
bench_startup/Turbopack CSR/1000 modules 2049.06ms ± 6.40ms 2672.90ms ± 6.04ms +30.44% +29.05%
bench_startup/Turbopack RCC/1000 modules 2469.62ms ± 6.50ms 2883.03ms ± 8.27ms +16.74% +15.46%
bench_startup/Turbopack RSC/1000 modules 2356.52ms ± 7.90ms 2795.64ms ± 7.37ms +18.63% +17.22%
bench_startup/Turbopack SSR/1000 modules 1985.94ms ± 5.25ms 2288.50ms ± 5.33ms +15.24% +14.10%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 8922.00µs ± 84.31µs 9000.29µs ± 106.33µs +0.88%
bench_hmr_to_commit/Turbopack RCC/1000 modules 9263.94µs ± 83.43µs 9172.42µs ± 111.43µs -0.99%
bench_hmr_to_commit/Turbopack RSC/1000 modules 463.11ms ± 2.18ms 480.49ms ± 1.41ms +3.75% +2.19%
bench_hmr_to_commit/Turbopack SSR/1000 modules 9147.17µs ± 92.51µs 9220.35µs ± 77.24µs +0.80%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8298.81µs ± 41.32µs 8222.15µs ± 82.22µs -0.92%
bench_hmr_to_eval/Turbopack RCC/1000 modules 8245.49µs ± 70.50µs 8429.78µs ± 71.51µs +2.24%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8442.22µs ± 74.87µs 8411.36µs ± 60.50µs -0.37%
bench_hydration/Turbopack RCC/1000 modules 3719.31ms ± 10.09ms 4471.06ms ± 38.48ms +20.21% +17.51%
bench_hydration/Turbopack RSC/1000 modules 3202.62ms ± 6.00ms 3935.20ms ± 15.15ms +22.87% +21.47%
bench_hydration/Turbopack SSR/1000 modules 3017.42ms ± 4.99ms 3789.94ms ± 20.17ms +25.60% +23.86%
bench_startup/Turbopack CSR/1000 modules 2049.06ms ± 6.40ms 2672.90ms ± 6.04ms +30.44% +29.05%
bench_startup/Turbopack RCC/1000 modules 2469.62ms ± 6.50ms 2883.03ms ± 8.27ms +16.74% +15.46%
bench_startup/Turbopack RSC/1000 modules 2356.52ms ± 7.90ms 2795.64ms ± 7.37ms +18.63% +17.22%
bench_startup/Turbopack SSR/1000 modules 1985.94ms ± 5.25ms 2288.50ms ± 5.33ms +15.24% +14.10%

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2023

Benchmark for 4575549

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack RSC/1000 modules 490.28ms ± 3.27ms 512.70ms ± 2.05ms +4.57% +2.37%
bench_hydration/Turbopack RCC/1000 modules 3815.46ms ± 8.48ms 4560.82ms ± 37.82ms +19.54% +17.03%
bench_hydration/Turbopack RSC/1000 modules 3342.32ms ± 15.12ms 4085.70ms ± 15.29ms +22.24% +20.24%
bench_hydration/Turbopack SSR/1000 modules 3147.09ms ± 19.53ms 3863.91ms ± 26.63ms +22.78% +19.60%
bench_startup/Turbopack CSR/1000 modules 2101.79ms ± 11.89ms 2754.32ms ± 9.65ms +31.05% +28.67%
bench_startup/Turbopack RCC/1000 modules 2527.34ms ± 7.72ms 2929.34ms ± 15.50ms +15.91% +13.98%
bench_startup/Turbopack RSC/1000 modules 2450.91ms ± 8.52ms 2905.00ms ± 11.59ms +18.53% +16.77%
bench_startup/Turbopack SSR/1000 modules 2062.34ms ± 3.69ms 2382.79ms ± 7.21ms +15.54% +14.43%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9099.29µs ± 74.04µs 9057.82µs ± 90.90µs -0.46%
bench_hmr_to_commit/Turbopack RCC/1000 modules 9315.63µs ± 52.07µs 9433.91µs ± 75.17µs +1.27%
bench_hmr_to_commit/Turbopack RSC/1000 modules 490.28ms ± 3.27ms 512.70ms ± 2.05ms +4.57% +2.37%
bench_hmr_to_commit/Turbopack SSR/1000 modules 9318.63µs ± 84.96µs 9365.45µs ± 80.65µs +0.50%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8222.67µs ± 60.68µs 8168.19µs ± 76.19µs -0.66%
bench_hmr_to_eval/Turbopack RCC/1000 modules 8418.29µs ± 70.97µs 8500.92µs ± 54.63µs +0.98%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8411.93µs ± 91.17µs 8344.27µs ± 67.15µs -0.80%
bench_hydration/Turbopack RCC/1000 modules 3815.46ms ± 8.48ms 4560.82ms ± 37.82ms +19.54% +17.03%
bench_hydration/Turbopack RSC/1000 modules 3342.32ms ± 15.12ms 4085.70ms ± 15.29ms +22.24% +20.24%
bench_hydration/Turbopack SSR/1000 modules 3147.09ms ± 19.53ms 3863.91ms ± 26.63ms +22.78% +19.60%
bench_startup/Turbopack CSR/1000 modules 2101.79ms ± 11.89ms 2754.32ms ± 9.65ms +31.05% +28.67%
bench_startup/Turbopack RCC/1000 modules 2527.34ms ± 7.72ms 2929.34ms ± 15.50ms +15.91% +13.98%
bench_startup/Turbopack RSC/1000 modules 2450.91ms ± 8.52ms 2905.00ms ± 11.59ms +18.53% +16.77%
bench_startup/Turbopack SSR/1000 modules 2062.34ms ± 3.69ms 2382.79ms ± 7.21ms +15.54% +14.43%

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2023

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests

See workflow summary for details

@sokra
Copy link
Member Author

sokra commented Feb 2, 2023

0a42a71 can be reverted when #3597 is merged

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2023

Benchmark for 274e657

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack RCC/1000 modules 10.12ms ± 0.08ms 9727.29µs ± 100.30µs -3.93% -0.41%
bench_hmr_to_commit/Turbopack RSC/1000 modules 479.89ms ± 0.90ms 496.85ms ± 2.64ms +3.53% +2.05%
bench_hydration/Turbopack RCC/1000 modules 3769.71ms ± 14.76ms 4513.50ms ± 14.39ms +19.73% +18.04%
bench_hydration/Turbopack RSC/1000 modules 3301.03ms ± 11.75ms 4089.40ms ± 10.24ms +23.88% +22.39%
bench_hydration/Turbopack SSR/1000 modules 3075.59ms ± 7.70ms 3839.96ms ± 10.39ms +24.85% +23.56%
bench_startup/Turbopack CSR/1000 modules 2057.81ms ± 11.37ms 2683.73ms ± 16.09ms +30.42% +27.45%
bench_startup/Turbopack RCC/1000 modules 2483.80ms ± 5.63ms 2915.96ms ± 10.74ms +17.40% +16.01%
bench_startup/Turbopack RSC/1000 modules 2440.54ms ± 4.31ms 2883.63ms ± 10.30ms +18.16% +16.90%
bench_startup/Turbopack SSR/1000 modules 2035.53ms ± 4.16ms 2308.02ms ± 5.91ms +13.39% +12.35%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9428.02µs ± 75.53µs 9374.68µs ± 92.08µs -0.57%
bench_hmr_to_commit/Turbopack RCC/1000 modules 10.12ms ± 0.08ms 9727.29µs ± 100.30µs -3.93% -0.41%
bench_hmr_to_commit/Turbopack RSC/1000 modules 479.89ms ± 0.90ms 496.85ms ± 2.64ms +3.53% +2.05%
bench_hmr_to_commit/Turbopack SSR/1000 modules 9725.33µs ± 59.92µs 9705.52µs ± 69.09µs -0.20%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8615.53µs ± 86.17µs 8635.90µs ± 65.48µs +0.24%
bench_hmr_to_eval/Turbopack RCC/1000 modules 8617.08µs ± 77.37µs 8594.79µs ± 59.01µs -0.26%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8828.29µs ± 80.03µs 8775.14µs ± 76.93µs -0.60%
bench_hydration/Turbopack RCC/1000 modules 3769.71ms ± 14.76ms 4513.50ms ± 14.39ms +19.73% +18.04%
bench_hydration/Turbopack RSC/1000 modules 3301.03ms ± 11.75ms 4089.40ms ± 10.24ms +23.88% +22.39%
bench_hydration/Turbopack SSR/1000 modules 3075.59ms ± 7.70ms 3839.96ms ± 10.39ms +24.85% +23.56%
bench_startup/Turbopack CSR/1000 modules 2057.81ms ± 11.37ms 2683.73ms ± 16.09ms +30.42% +27.45%
bench_startup/Turbopack RCC/1000 modules 2483.80ms ± 5.63ms 2915.96ms ± 10.74ms +17.40% +16.01%
bench_startup/Turbopack RSC/1000 modules 2440.54ms ± 4.31ms 2883.63ms ± 10.30ms +18.16% +16.90%
bench_startup/Turbopack SSR/1000 modules 2035.53ms ± 4.16ms 2308.02ms ± 5.91ms +13.39% +12.35%

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2023

Benchmark for 339f58d

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack RSC/1000 modules 469.96ms ± 1.87ms 488.34ms ± 2.15ms +3.91% +2.18%
bench_hydration/Turbopack RCC/1000 modules 3646.42ms ± 9.84ms 4410.81ms ± 22.63ms +20.96% +19.08%
bench_hydration/Turbopack RSC/1000 modules 3226.71ms ± 11.95ms 3999.26ms ± 12.18ms +23.94% +22.28%
bench_hydration/Turbopack SSR/1000 modules 2990.04ms ± 8.77ms 3776.09ms ± 10.73ms +26.29% +24.84%
bench_startup/Turbopack CSR/1000 modules 2046.28ms ± 9.56ms 2681.90ms ± 7.79ms +31.06% +29.09%
bench_startup/Turbopack RCC/1000 modules 2459.02ms ± 1.13ms 2827.97ms ± 6.80ms +15.00% +14.35%
bench_startup/Turbopack RSC/1000 modules 2362.13ms ± 5.20ms 2779.34ms ± 6.98ms +17.66% +16.56%
bench_startup/Turbopack SSR/1000 modules 1996.29ms ± 4.53ms 2282.50ms ± 6.71ms +14.34% +13.15%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9316.68µs ± 52.15µs 9245.06µs ± 83.41µs -0.77%
bench_hmr_to_commit/Turbopack RCC/1000 modules 9651.69µs ± 71.11µs 9684.83µs ± 60.32µs +0.34%
bench_hmr_to_commit/Turbopack RSC/1000 modules 469.96ms ± 1.87ms 488.34ms ± 2.15ms +3.91% +2.18%
bench_hmr_to_commit/Turbopack SSR/1000 modules 9594.87µs ± 78.03µs 9425.91µs ± 77.90µs -1.76%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8338.94µs ± 56.03µs 8306.70µs ± 57.52µs -0.39%
bench_hmr_to_eval/Turbopack RCC/1000 modules 8598.93µs ± 79.54µs 8507.19µs ± 68.68µs -1.07%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8529.46µs ± 103.93µs 8453.29µs ± 84.01µs -0.89%
bench_hydration/Turbopack RCC/1000 modules 3646.42ms ± 9.84ms 4410.81ms ± 22.63ms +20.96% +19.08%
bench_hydration/Turbopack RSC/1000 modules 3226.71ms ± 11.95ms 3999.26ms ± 12.18ms +23.94% +22.28%
bench_hydration/Turbopack SSR/1000 modules 2990.04ms ± 8.77ms 3776.09ms ± 10.73ms +26.29% +24.84%
bench_startup/Turbopack CSR/1000 modules 2046.28ms ± 9.56ms 2681.90ms ± 7.79ms +31.06% +29.09%
bench_startup/Turbopack RCC/1000 modules 2459.02ms ± 1.13ms 2827.97ms ± 6.80ms +15.00% +14.35%
bench_startup/Turbopack RSC/1000 modules 2362.13ms ± 5.20ms 2779.34ms ± 6.98ms +17.66% +16.56%
bench_startup/Turbopack SSR/1000 modules 1996.29ms ± 4.53ms 2282.50ms ± 6.71ms +14.34% +13.15%

@sokra sokra requested a review from alexkirsz February 2, 2023 16:02
NpmPackage::new("next", "13.0.8-canary.2"),
NpmPackage::new("next", "13.1.7-canary.2"),
Copy link
Member Author

Choose a reason for hiding this comment

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

This enables the next.js router for the benchmarks, which causes a slowdown

Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice if we could declare this in some central place somehow

Comment on lines +163 to +164
let globs = cwd.join(globs.replace('/', PATH_SEP.to_string().as_str()));
let root = cwd.join(root.replace('/', PATH_SEP.to_string().as_str()));
Copy link
Member Author

Choose a reason for hiding this comment

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

Windows

let mut seen = HashSet::from([cwd.join(root)]);
let globs = cwd.join(globs.replace('/', PATH_SEP.to_string().as_str()));
let root = cwd.join(root.replace('/', PATH_SEP.to_string().as_str()));
println!("cargo:rerun-if-changed={}", root.display());
Copy link
Member Author

Choose a reason for hiding this comment

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

The root directory should also be watched

let mut seen = HashSet::from([cwd.join(root)]);
let globs = cwd.join(globs.replace('/', PATH_SEP.to_string().as_str()));
let root = cwd.join(root.replace('/', PATH_SEP.to_string().as_str()));
println!("cargo:rerun-if-changed={}", root.display());
Copy link
Contributor

@alexkirsz alexkirsz Feb 2, 2023

Choose a reason for hiding this comment

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

Shouldn't that be handled by the ancestors iter below? Or is that for the case where root is empty?

Copy link
Member Author

Choose a reason for hiding this comment

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

The root is in seen from the beginning, so it's ignored below

GlobVc::new(
"**/*/next/dist/client/components/react-dev-overlay/hot-reloader-client.js",
),
GlobVc::new("**/next/dist/client/components/react-dev-overlay/hot-reloader-client.js"),
Copy link
Contributor

Choose a reason for hiding this comment

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

locally rustfmt does this differently for me

Copy link
Member Author

Choose a reason for hiding this comment

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

The CI checks fmt, so it's fine^^

@sokra sokra merged commit afedff9 into main Feb 2, 2023
@sokra sokra deleted the sokra/next-update branch February 2, 2023 17:23
jridgewell pushed a commit to vercel/next.js that referenced this pull request Mar 10, 2023
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.

3 participants