Skip to content
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

Update nightly toolchain #5376

Merged
merged 2 commits into from
Jul 7, 2023
Merged

Update nightly toolchain #5376

merged 2 commits into from
Jul 7, 2023

Conversation

alexkirsz
Copy link
Contributor

@alexkirsz alexkirsz commented Jun 24, 2023

Description

This updates the nightly toolchain from nightly-2023-03-09 to nightly-2023-07-03.

This PR includes Clippy fixes and rustfmt fixes (let else formatting, finally!)

Next.js PR: vercel/next.js#51757

Testing Instructions

CI

@vercel
Copy link

vercel bot commented Jun 24, 2023

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

Name Status Preview Comments Updated (UTC)
examples-gatsby-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jul 7, 2023 1:50pm
examples-kitchensink-blog 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jul 7, 2023 1:50pm
examples-svelte-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jul 7, 2023 1:50pm
8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Jul 7, 2023 1:50pm
examples-cra-web ⬜️ Ignored (Inspect) Visit Preview Jul 7, 2023 1:50pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Jul 7, 2023 1:50pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jul 7, 2023 1:50pm
examples-nonmonorepo ⬜️ Ignored (Inspect) Visit Preview Jul 7, 2023 1:50pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Jul 7, 2023 1:50pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Jul 7, 2023 1:50pm
turbo-site ⬜️ Ignored (Inspect) Visit Preview Jul 7, 2023 1:50pm

@github-actions
Copy link
Contributor

github-actions bot commented Jun 24, 2023

⚠️ This change may fail to build next-swc.

Logs

error: failed to select a version for `testing`.
    ... required by package `turbopack-binding v0.1.0 (https://github.com/vercel/turbo?rev=d51513057202cddeaec12cf439aad4f4915be72b#6bd45fee)`
    ... which satisfies git dependency `turbopack-binding` (locked to 0.1.0) of package `next-build v0.1.0 (/home/runner/work/turbo/turbo/packages/next-swc/crates/next-build)`
    ... which satisfies path dependency `next-build` (locked to 0.1.0) of package `next-swc-napi v0.0.0 (/home/runner/work/turbo/turbo/packages/next-swc/crates/napi)`
versions that meet the requirements `^0.33.20` are: 0.33.20

all possible versions conflict with previously selected packages.

  previously selected package `testing v0.33.19`
    ... which satisfies dependency `testing = "^0.33.19"` (locked to 0.33.19) of package `next-dev-tests v0.1.0 (/home/runner/work/turbo/turbo/packages/next-swc/crates/next-dev-tests)`

failed to select a version for `testing` which could resolve this conflict

See job summary for details

@github-actions
Copy link
Contributor

github-actions bot commented Jun 24, 2023

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)

See workflow summary for details

(__ $ast_path:expr, $name:ident($arg:ident: &mut $ty:ident) $b:block) => {{
struct Visitor<T: Fn(&mut swc_core::ecma::ast::$ty) + Send + Sync> {
$name: T,
// This rule needs to be first, otherwise we run into the following error:
Copy link
Member

Choose a reason for hiding this comment

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

ah you figured it out

@github-actions
Copy link
Contributor

Linux Benchmark for ea41f17

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.71ms ± 0.05ms 10.60ms ± 0.04ms -1.06%
bench_hmr_to_eval/Turbopack CSR/1000 modules 9617.06µs ± 38.18µs 10.17ms ± 0.53ms +5.70%
bench_startup/Turbopack CSR/1000 modules 1098.63ms ± 2.82ms 1093.79ms ± 4.11ms -0.44%

@github-actions
Copy link
Contributor

MacOS Benchmark for ea41f17

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 26.75ms ± 0.06ms 28.28ms ± 0.64ms +5.70% +0.47%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 26.75ms ± 0.06ms 28.28ms ± 0.64ms +5.70% +0.47%
bench_hmr_to_eval/Turbopack CSR/1000 modules 28.38ms ± 0.68ms 27.37ms ± 0.21ms -3.56%
bench_startup/Turbopack CSR/1000 modules 3413.71ms ± 19.49ms 3482.55ms ± 88.73ms +2.02%

@@ -13,7 +13,7 @@ package ffi
// #cgo linux,amd64,staticbinary LDFLAGS: -L${SRCDIR} -lturborepo_ffi_linux_amd64 -lunwind
// #cgo linux,arm64,!staticbinary LDFLAGS: -L${SRCDIR} -lturborepo_ffi_linux_arm64 -lz
// #cgo linux,amd64,!staticbinary LDFLAGS: -L${SRCDIR} -lturborepo_ffi_linux_amd64 -lz
// #cgo windows,amd64 LDFLAGS: -L${SRCDIR} -lturborepo_ffi_windows_amd64 -lole32 -lbcrypt -lws2_32 -luserenv
// #cgo windows,amd64 LDFLAGS: -L${SRCDIR} -lturborepo_ffi_windows_amd64 -lole32 -lbcrypt -lws2_32 -luserenv -lntdll
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This fixes a linker issue on windows:

cli:build:   c:/programdata/chocolatey/lib/mingw/tools/install/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/turbo/turbo/cli/internal/ffi/libturborepo_ffi_windows_amd64.a(std-331aac04ffc5fa95.std.fc65e66d7b5f576c-cgu.0.rcgu.o): in function `std::sys::windows::fs::open_link_no_reparse':
cli:build:   /rustc/22e9fe644ea710eec50cb0aabcae7fa8dd9fd675/library\std\src\sys\windows/fs.rs:829: undefined reference to `NtCreateFile'
cli:build:   c:/programdata/chocolatey/lib/mingw/tools/install/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: /rustc/22e9fe644ea710eec50cb0aabcae7fa8dd9fd675/library\std\src\sys\windows/fs.rs:858: undefined reference to `RtlNtStatusToDosError'
cli:build:   c:/programdata/chocolatey/lib/mingw/tools/install/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/turbo/turbo/cli/internal/ffi/libturborepo_ffi_windows_amd64.a(std-331aac04ffc5fa95.std.fc65e66d7b5f576c-cgu.0.rcgu.o): in function `std::sys::windows::c::NtReadFile':
cli:build:   /rustc/22e9fe644ea710eec50cb0aabcae7fa8dd9fd675/library\std\src\sys\windows/c.rs:284: undefined reference to `NtReadFile'
cli:build:   c:/programdata/chocolatey/lib/mingw/tools/install/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/turbo/turbo/cli/internal/ffi/libturborepo_ffi_windows_amd64.a(std-331aac04ffc5fa95.std.fc65e66d7b5f576c-cgu.0.rcgu.o): in function `std::sys::windows::handle::Handle::synchronous_read':
cli:build:   /rustc/22e9fe644ea710eec50cb0aabcae7fa8dd9fd675/library\std\src\sys\windows/handle.rs:273: undefined reference to `RtlNtStatusToDosError'
cli:build:   c:/programdata/chocolatey/lib/mingw/tools/install/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/turbo/turbo/cli/internal/ffi/libturborepo_ffi_windows_amd64.a(std-331aac04ffc5fa95.std.fc65e66d7b5f576c-cgu.0.rcgu.o): in function `std::sys::windows::c::NtWriteFile':
cli:build:   /rustc/22e9fe644ea710eec50cb0aabcae7fa8dd9fd675/library\std\src\sys\windows/c.rs:307: undefined reference to `NtWriteFile'
cli:build:   c:/programdata/chocolatey/lib/mingw/tools/install/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/turbo/turbo/cli/internal/ffi/libturborepo_ffi_windows_amd64.a(std-331aac04ffc5fa95.std.fc65e66d7b5f576c-cgu.0.rcgu.o): in function `std::sys::windows::handle::Handle::synchronous_write':
cli:build:   /rustc/22e9fe644ea710eec50cb0aabcae7fa8dd9fd675/library\std\src\sys\windows/handle.rs:319: undefined reference to `RtlNtStatusToDosError'

@@ -5256,9 +5256,9 @@ checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"

[[package]]
name = "proc-macro2"
version = "1.0.59"
version = "1.0.63"
Copy link
Contributor Author

@alexkirsz alexkirsz Jul 7, 2023

Choose a reason for hiding this comment

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

This fixes an incompatibility between proc_macro2 and newer nightlies.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2023

Linux Benchmark for bc74f7b

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.09ms ± 0.10ms 10.31ms ± 0.10ms +2.13%
bench_hmr_to_eval/Turbopack CSR/1000 modules 9829.66µs ± 109.63µs 9641.23µs ± 126.07µs -1.92%
bench_startup/Turbopack CSR/1000 modules 1092.11ms ± 1.34ms 1092.77ms ± 5.42ms +0.06%

@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2023

MacOS Benchmark for bc74f7b

Test Base PR % Significant %
bench_startup/Turbopack CSR/1000 modules 3179.39ms ± 15.97ms 3514.57ms ± 98.63ms +10.54% +3.30%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 27.95ms ± 0.07ms 27.63ms ± 0.29ms -1.15%
bench_hmr_to_eval/Turbopack CSR/1000 modules 26.98ms ± 0.17ms 27.33ms ± 0.14ms +1.30%
bench_startup/Turbopack CSR/1000 modules 3179.39ms ± 15.97ms 3514.57ms ± 98.63ms +10.54% +3.30%

@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2023

Linux Benchmark for d515130

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 5836.81µs ± 18.58µs 5846.83µs ± 34.44µs +0.17%
bench_hmr_to_eval/Turbopack CSR/1000 modules 5430.38µs ± 34.26µs 5551.84µs ± 116.22µs +2.24%
bench_startup/Turbopack CSR/1000 modules 901.07ms ± 1.30ms 907.85ms ± 4.99ms +0.75%

@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2023

MacOS Benchmark for d515130

Test Base PR % Significant %
bench_hmr_to_eval/Turbopack CSR/1000 modules 24.11ms ± 1.02ms 26.65ms ± 0.14ms +10.51% +0.78%
bench_startup/Turbopack CSR/1000 modules 10.05s ± 2.07s 3537.10ms ± 78.81ms -64.80% -37.38%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 28.06ms ± 0.08ms 28.25ms ± 0.10ms +0.67%
bench_hmr_to_eval/Turbopack CSR/1000 modules 24.11ms ± 1.02ms 26.65ms ± 0.14ms +10.51% +0.78%
bench_startup/Turbopack CSR/1000 modules 10.05s ± 2.07s 3537.10ms ± 78.81ms -64.80% -37.38%

Copy link
Contributor

@NicholasLYang NicholasLYang left a comment

Choose a reason for hiding this comment

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

Looks good on turborepo's end!

@alexkirsz alexkirsz merged commit 96254ce into main Jul 7, 2023
52 of 55 checks passed
@alexkirsz alexkirsz deleted the alexkirsz/update-toolchain branch July 7, 2023 19:20
jridgewell pushed a commit to vercel/next.js that referenced this pull request Jul 7, 2023
Matching turbo PR: vercel/turbo#5376

## Turbopack updates

* vercel/turbo#5376 <!-- Alex Kirszenberg -
Update nightly toolchain -->
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.

None yet

3 participants