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

CI: pin nightly Rust version to limit breakages to explicit pinning updates. #2830

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

cfallin
Copy link
Member

@cfallin cfallin commented Apr 13, 2021

We seem to be seeing some CI failures in various PRs today due to new warnings added to nightly Rust.

It seems reasonable to me to pin the nightly version we use on CI, and periodically update this, so that if breakages are going to happen then they happen in a single place when we update the pinned version. This also insulates us somewhat from occasional bugs that slip into nightlies. (We had a similar strategy for the new-x64-backend tests for a bit, pinning to a particular nightly version.)

In particular, for the latest failures, it looks like a nightly bug: the compiler is interpreting _-args as patterns rather than ignored args and then issuing warnings-as-errors to use underscores instead (!). The only immediate fix is to use a different nightly, I think.

I can see the argument for the other approach, though, that we want to guarantee as best we can that we work with the latest nightly and fix issues immediately as they arise (this is analogous to the usual rolling release vs fixed release debate I guess). Happy to discuss!

(I chose a one-day-old nightly for this PR -- let's s see if this works on CI...)

@cfallin cfallin merged commit 8387bc0 into bytecodealliance:main Apr 13, 2021
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