-
Notifications
You must be signed in to change notification settings - Fork 32
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
Don't install rustdoc along with default Rust toolchain #89
Conversation
Downloading and installing rustdoc every the image is built takes considerable time that is not necessary, so specify only the rustup components we need. Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
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 think the minimal toolchain also excludes clippy and rustfmt, no? I can't see those getting installed in the GitHub runner log
I see them. Maybe you looked at the nightly installation? They are added with a
|
Ahhh, my bad, should not be reviewing PRs before my coffee. Sorry! |
Absolutely no problem :) Enjoy your coffee! |
@epilys I'm updating rust-vmm-ci to use the new container (v26 -> v28): rust-vmm/rust-vmm-ci#138 The CI is failing when calling I run the test in the v27 and v28 blocks indefinitely:
v26 worked well:
Do you have any idea? |
Running |
Looking at https://crates.io/crates/cargo-audit they call |
@stefano-garzarella was just gonna post that I found this too. We don't install cargo-audit at a pinned version so the images probably have a different one. [1]+ ~/.rustup/toolchains/1.72.0-x86_64-unknown-linux-gnu/bin/cargo audit &
root@031791dfe6de:/workdir# fuser ~/.cargo/.package-cache
/root/.cargo/.package-cache: 567 598
root@031791dfe6de:/workdir# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1008 4 pts/0 Ss 15:07 0:00 /sbin/docker-init -- /bin/bash
root 7 0.0 0.0 4624 3920 pts/0 S 15:07 0:00 /bin/bash
root 567 0.1 0.0 1700436 19688 pts/0 S 15:20 0:00 /root/.cargo/bin/cargo-audit audit
root 598 0.0 0.0 27088 13872 pts/0 S 15:20 0:00 /root/.rustup/toolchains/1.72.0-x86_64-unknown-linux-gnu/bin/cargo generate-lockfile
root 604 0.0 0.0 7060 1564 pts/0 R+ 15:21 0:00 ps aux |
Summary of the PR
Downloading and installing rustdoc every time the image is built takes considerable time that is not necessary, so specify only the rustup components we need.
Requirements
Before submitting your PR, please make sure you addressed the following
requirements:
git commit -s
), and the commitmessage has max 60 characters for the summary and max 75 characters for each
description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafe
code is properly documented.