Skip to content

chore: pin nightly version to avoid flaky build errors#186

Open
cpubot wants to merge 2 commits intomasterfrom
ci-pin-nightly
Open

chore: pin nightly version to avoid flaky build errors#186
cpubot wants to merge 2 commits intomasterfrom
ci-pin-nightly

Conversation

@cpubot
Copy link
Contributor

@cpubot cpubot commented Feb 12, 2026

It seems the latest version of nightly broke miri. Pinning our nightly version for the miri suite to a known working version to avoid inconsistent builds.

@cpubot cpubot requested review from kskalski and steviez February 12, 2026 18:58
@steviez steviez requested a review from a team February 12, 2026 19:23
levsha
levsha previously approved these changes Feb 13, 2026
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
toolchain: nightly-2026-02-01
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not positive that it matters, but should we choose a nightly build that aligns with MSRV ?

rust-version = "1.84.1"

[toolchain]
channel = "1.84.1"

For Agave, we have been following the convention of using the final corresponding (1.84 in this case) nightly build

Copy link
Contributor

Choose a reason for hiding this comment

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

Using latest nightly is a double-edged sword - we get earlier validation for newest toolchain, so we can fix issues as they arise, but we also get upstream breakages like recent, since it's ultimately most-unstable toolchain you can get. It's even more painful when it happens for unrelated PRs.

Thus I agree - using nightly aligned with target toolchain is better. I wonder though how should be relate workspace's toolchain to MSRV, does it make sense to use different versions for them (e.g. #181)

Copy link
Contributor

Choose a reason for hiding this comment

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

so we can fix issues as they arise, but we also get upstream breakages like recent, since it's ultimately most-unstable toolchain you can get. It's even more painful when it happens for unrelated PRs.

Yeah, I think this statement is captures the key sentiment for pinning. Pinning gives us stability and lets us choose when we want to deal with breakages. On the other hand, using nightly could mean unrelated failures in critical times (ie if we ever have an urgent patch).

So, I think pinning is the correct move and the only question in my mind is whether we should pin nightly to match MSRV. I'm leaning towards aligning them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok -- pinned to nightly as of the date of the 1.84.1 release

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.

4 participants