Gate advanced features of citool to reduce compilation time#139678
Gate advanced features of citool to reduce compilation time#139678Kobzol wants to merge 1 commit intorust-lang:masterfrom
citool to reduce compilation time#139678Conversation
|
r? @marcoieni @rustbot ready |
| @@ -1,3 +1,5 @@ | |||
| #![allow(unused)] | |||
There was a problem hiding this comment.
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
citoolstep of theCalculate job matrixjob, 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 tocitoolin the future, because if we can gate it behindextended, it won't increase the duration of this job.r? @ghost