-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Integration tests runner downloads rustc again #21923
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
Comments
Hi @jorgehermo9, thank you for creating this issue. Hm, we probably should use whatever the base image provides. Not sure if there's a more elegant way to fix this, but we have some options. |
I think this would get fixed with rustup 1.28. It not longer installs the toolchain by default (you have to execute |
Thanks @jorgehermo9, I am taking a look. Unfortunately the ubuntu 24.0 runner does not include |
Neat @Bogay, @jorgehermo9 can you confirm if we can close this ticket now? |
let me check on local! I will try ASAP |
but rustup 1.28.1 rollbacked the auto-installing behaviour to pre-1.28.0.. So if nothing changed, the behavior would be the same as before.. But will try it on master anyway |
Thank you for checking @jorgehermo9, if you want to take a crack at this please go ahead. I am afraid we have more pressing issues to focus on for the next few months. |
No problem @pront, thank you for your help.
Understandable, this is really a minor issue and just a little improvement so I wouldn't prioritize it either. I can take a deeper look into it in a few days/weeks |
Uh oh!
There was an error while loading. Please reload this page.
Currently, the integration tests runner uses
docker.io/rust:1.81-slim-bookworm
as base image, which already contains all the toolchain for rust 1.81.But, when starting the runner, the current vector dir is mounted into the
vector-test-runner
containervector/vdev/src/testing/runner.rs
Line 245 in c3d91af
rust-toolchain.toml
file https://github.com/vectordotdev/vector/blob/master/rust-toolchain.toml that causes a whole new rust 1.81 toolchain installation when running the test command inside the containervector/vdev/src/testing/runner.rs
Line 17 in c3d91af
as seen in the following screenshot:
see the "downloading component" part, this should not happen if we are already using a base image containing all the rust components.
Given this, it makes no sense to use a versioned rustc base image, as the current version from
rust-toolchain.toml
will override any rust toolchain in the base image. I don't know if we can disable the usage ofrust-toolchain.toml
in the runner and rely only in the installed components ofdocker.io/rust:1.81-slim-bookworm
, I can only find this open issue rust-lang/rustup#2793.What I did in other projects is to ignore the
rust-toolchain.toml
file in a.dockerignore
, as it was triggering this exact same issue while building my images and using a base rust image (https://github.com/jorgehermo9/gq/blob/f6e1efd7e8a73c34c0848a718198436da99f7262/docker/server.Dockerfile#L1) . But this worked because I used theCOPY
command in theDockerfile
and not mounting the vector root dir inside the container.I think this could improve integration tests CI as downloading a whole new rust toolchain every time could take a few seconds
The text was updated successfully, but these errors were encountered: