-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Gate advanced features of citool
to reduce compilation time
#139678
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
Conversation
r? @marcoieni @rustbot ready |
@@ -1,3 +1,5 @@ | |||
#![allow(unused)] |
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.
can you write a comment explaining why this is here?
I'm not sure if it's worth adding this complexity. I can imagine us easily introducing bugs because of this feature. Aren't there other ways to speed up the compilation? E.g. cache dependencies or use a pre-compiled binary. |
Could you clarify what kind of bugs you have in mind? I can't imagine how this could cause any bugs.
A pre-compiled binary would IMO introduce too much implementation complexity, due to having to handle cache invalidations. An easy solution would be to use |
I prefer using the rust-cache action wrt to selecting features like this 👍
E.g. forget to add configuration flags around, which could cause compilation error. I have seen codebases that don't test all permutation of features that don't catch these errors, but probably in this CI would me more difficult. Still I would prefer rust-cache to keep the code simpler 👍 |
Right, I mean sure, there could be a compilation error, but that's not a bug =D We would compile the crate both with and without the single feature, so we would find out soon. But |
Obsoleted by #139819. |
Use `rust-cache` to speed-up `citool` compilation Alternative to rust-lang#139678. r? `@marcoieni`
Use `rust-cache` to speed-up `citool` compilation Alternative to rust-lang#139678. r? ``@marcoieni``
Rollup merge of rust-lang#139819 - Kobzol:rust-cache, r=marcoieni Use `rust-cache` to speed-up `citool` compilation Alternative to rust-lang#139678. r? ``@marcoieni``
This reduces the duration of the
citool
step of theCalculate job matrix
job, which is on the critical path for all CI executions, from ~1 minute to ~20s. It will also make it easier for us to add more stuff tocitool
in the future, because if we can gate it behindextended
, it won't increase the duration of this job.r? @ghost