Pin CI nightly toolchain to work around rustc memory regression - #1060
Open
francisdb wants to merge 2 commits into
Open
Pin CI nightly toolchain to work around rustc memory regression#1060francisdb wants to merge 2 commits into
francisdb wants to merge 2 commits into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 compilebevy_renderandbevy_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_chunksfix 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_rendergoes from 2.5 GB on the pinned nightly to 16.7 GB on the current one, independent of-Zthreads.