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
Install a fixed version of rust for CI integration tests #39
Conversation
7260beb
to
21b9c11
Compare
@Multimo Do you think I'm overcomplicating this, or do you think this complexity makes sense? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense what your doing. My naive knee jerk reaction is to say the version being fix in the docker images is enough and you should not have to use rustup
but i dont think i have the full context here.
@@ -1,4 +1,4 @@ | |||
FROM rust:latest | |||
FROM rust:1.34.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense. :latest
will always grab the latest version and would invalidate the tests so this is legit 👍
@@ -24,7 +24,8 @@ RUN mkdir benches | |||
RUN touch benches/my_benchmark.rs | |||
|
|||
# This is a dummy build to get dependencies cached | |||
RUN cargo build --release | |||
RUN rustup install stable | |||
RUN rustup run stable cargo build --release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am honestly not sure about the significance of this? Could you expand a little why you made this change? Wouldn't the version of rust specified in the docker image default to stable?
Description
Make
rustup
install a specific version of Rust along with the required Rust toolchain to run the build and tests.azure-pipelines.yml
rustup run
using the required toolkitMotivation and Context
In order to be able to have integration tests that run
rust --version
, we need the locally used Rust to be a fixed version, while running tests and builds with the current stable/beta/nightly.Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
Checklist: