Skip to content

Pin Rust toolchain versions in ci.yml#23

Merged
boivie merged 1 commit intowebrtc:mainfrom
boivie:pin-toolchain
Dec 17, 2025
Merged

Pin Rust toolchain versions in ci.yml#23
boivie merged 1 commit intowebrtc:mainfrom
boivie:pin-toolchain

Conversation

@boivie
Copy link
Copy Markdown
Collaborator

@boivie boivie commented Dec 16, 2025

Pin dtolnay/rust-toolchain actions to specific stable and nightly versions to prevent sudden build failures due to toolchain updates.

Also fixed the new warnings found by updating the toolchain.

@boivie boivie force-pushed the pin-toolchain branch 5 times, most recently from 96fcc2b to 84fa092 Compare December 16, 2025 21:09
@boivie boivie requested a review from lndmrk December 16, 2025 21:24
@@ -15,6 +15,8 @@ jobs:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

https://github.com/dtolnay/rust-toolchain?tab=readme-ov-file#inputs

When passing an explicit toolchain as an input instead of @Rev, you'll want to use "dtolnay/rust-toolchain@master" as the revision of the action.

But why would we want to pin it? Don't we want to detect such breakages? I'm also certain we will forget to uprev it in a steady phase.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think adding Dependabot would help us update those.

I am not a fan of doing a small change like #22 and getting failed CI simply because the toolchain has changed. Completely unrelated to my change. It makes the tree going from green to red without doing any changes to the code, and that's not very good developer experience IMO

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fair, that would also help us uprev dependencies, which is good.

I'll let you chose if you want to go with dtolnay/rust-toolchain@1.92.0 or dtolnay/rust-toolchain@master.

@boivie boivie requested a review from lndmrk December 17, 2025 08:14
Pin dtolnay/rust-toolchain actions to specific stable and nightly versions
to prevent sudden build failures due to toolchain updates.

Also fixed the new warnings found by updating the toolchain.
@boivie boivie merged commit 2fa5ff2 into webrtc:main Dec 17, 2025
7 checks passed
@boivie boivie deleted the pin-toolchain branch January 18, 2026 13:28
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.

2 participants