-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
use precompiled rustc for non-dist builders #122709
use precompiled rustc for non-dist builders #122709
Conversation
This comment has been minimized.
This comment has been minimized.
a080419
to
7a798d5
Compare
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #122690) made this pull request unmergeable. Please resolve the merge conflicts. |
7a8706a
to
7ca076d
Compare
This comment has been minimized.
This comment has been minimized.
7ca076d
to
359b0d8
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
f581ad1
to
6f7cdd6
Compare
This comment has been minimized.
This comment has been minimized.
8306066
to
795d92b
Compare
This comment has been minimized.
This comment has been minimized.
d7edc43
to
7099a13
Compare
@bors try |
…default, r=<try> prefer precompiled rustc for x86_64-gnu *-to be filled-* blocker for rust-lang#119899 r? ghost
☀️ Try build successful - checks-actions |
7099a13
to
731c8eb
Compare
@bors try |
…default, r=<try> prefer precompiled rustc for x86_64-gnu *-to be filled-* blocker for rust-lang#119899 r? ghost
@bors try |
…default, r=<try> use precompiled rustc for non-dist builders Makes non-dist builders to use precompiled CI rustc by default if they are available for the target triple. As we are going to make `rust.download-rustc=if-unchanged` default option with rust-lang#119899, we need to make sure `if-unchanged` logic never breaks and works as expected. As an addition, this will significantly improve the build times on CI when there's no change on the compiler. blocker for rust-lang#119899 try-job: x86_64-gnu-nopt try-job: aarch64-apple
☀️ Try build successful - checks-actions |
Nothing changed (in this PR) since the last merge attempt. @bors r=Mark-Simulacrum |
☀️ Test successful - checks-actions |
Finished benchmarking commit (a49aefc): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 775.795s -> 775.772s (-0.00%) |
It may be unrelated, but it seems the test added here is failing on some of PR CI eg #131418 (comment) ? |
This test seems to have caused PR CI failure in #131384 (comment) |
It seems to be related. I will look into it today. |
#131434 should fix that issue. |
…onur-ozkan fix `ci_rustc_if_unchanged_logic` test Kind a typo from rust-lang#122709, which makes `ci_rustc_if_unchanged_logic` test to fail in any PR that has a change in "library" tree (e.g., rust-lang#131418 (comment)). This fixes that. r? ghost
builder.run_step_descriptions(&Builder::get_step_descriptions(config.cmd.kind()), &[]); | ||
|
||
let compiler_path = build.src.join("compiler"); | ||
let library_path = build.src.join("compiler"); |
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 looks like a copy-paste mistake?
EDIT: Ah, that got fixed in #131434.
It will save CI time if there is no change in the compiler or the library. Which is to say, hardly ever. Is there some issue with further discussion or so? I am a bit surprised about this change since the trade-off does not seem worth it for me. |
There's some discussion hidden away above by github, but sadly I could not find a summary and the PR description is apparently not up-to-date. Anyway, let's move this to an issue: #131658. |
Here are some brief stats of commits for the last year: Total merge/rollup commits: 2825 Total % of commits that contain a change in the given directory I'm too worried about the fragility of this code, but I'd also like to see how much CI time can this save us. |
Makes non-dist builders to use precompiled CI rustc by default if they are available for the target triple.
As we are going to make
rust.download-rustc=if-unchanged
default option with #119899, we need to make sureif-unchanged
logic never breaks and works as expected.As an addition, this will significantly improve the build times on CI when there's no change on the compiler.
blocker for #119899
try-job: x86_64-gnu-nopt
try-job: aarch64-apple