Skip to content

Pin CI nightly toolchain to work around rustc memory regression - #1060

Open
francisdb wants to merge 2 commits into
avianphysics:mainfrom
francisdb:fix/ci-pin-nightly
Open

Pin CI nightly toolchain to work around rustc memory regression#1060
francisdb wants to merge 2 commits into
avianphysics:mainfrom
francisdb:fix/ci-pin-nightly

Conversation

@francisdb

@francisdb francisdb commented Sep 2, 2026

Copy link
Copy Markdown

Objective

The test suite job has been failing on every PR since late August with exit code 143 while compiling bevy_core_pipeline. Recent nightlies need several times more memory to compile bevy_render and bevy_pbr (rust-lang/rust#161748), which kills the 16 GB runners.

Solution

Pin the test job to nightly-2026-08-16, the last nightly that passed CI. Unpin once a Bevy release includes bevyengine/bevy#25512.

Also includes the clippy::chunks_exact_to_as_chunks fix from #1059 so the Lints job passes here as well; #1059 can be closed if this merges first.

Testing

Measured peak rustc memory locally with the CI command and flags: bevy_render goes from 2.5 GB on the pinned nightly to 16.7 GB on the current one, independent of -Zthreads.

Nightlies since late August 2026 use several times more memory to
compile bevy_render and bevy_pbr (rust-lang/rust#161748), which kills
the 16 GB GitHub runners during the test suite job.

Pin to nightly-2026-08-16, the last nightly that passed CI, until a
Bevy release includes bevyengine/bevy#25512.
Rust 1.98 clippy denies `chunks_exact` with a constant chunk size.
Use `as_chunks::<3>()` instead.
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.

1 participant