-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
deprecate if-available
value of download-ci-llvm
#117813
deprecate if-available
value of download-ci-llvm
#117813
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
This PR modifies This PR changes This PR modifies This PR changes src/bootstrap/defaults/config.compiler.toml. If appropriate, please also update |
This PR modifies This PR changes This PR changes src/bootstrap/defaults/config.compiler.toml. If appropriate, please also update This PR modifies |
@@ -2104,9 +2104,6 @@ impl Config { | |||
match download_ci_llvm { | |||
None => self.channel == "dev" && llvm::is_ci_llvm_available(&self, asserts), | |||
Some(StringOrBool::Bool(b)) => b, | |||
Some(StringOrBool::String(s)) if s == "if-available" => { |
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 needs a transition period, otherwise switching between branches before this and after this will be painful (since config.toml can't be compatible with both).
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.
if you just set it to if-unchanged, it should work just fine
Signed-off-by: onur-ozkan <[email protected]>
9c3cab0
to
c849eb9
Compare
Per #117813 (comment), is it accurate that any current users should just switch to if-unchanged? Can we adjust the PR description to give that guidance? |
Although maybe we're no longer actually removing the older option if I'm reading the code right - in which case bumping the change-id seems like needless churn? |
This has been changed with #117813 (comment), I forgot to update PR description.
|
I'd rather avoid an ad-hoc warning; we should use the existing functionality (change-id) or do nothing. I think doing nothing for now and then following up with #117815-based active deprecation (i.e., using the changelog entries suggested there) makes sense. So, that would mean:
|
if-available
with if-unchanged
for download-ci-llvm
if-available
value of download-ci-llvm
c849eb9
to
2344642
Compare
@bors r=Mark-Simulacrum |
…vm-option, r=Mark-Simulacrum deprecate `if-available` value of `download-ci-llvm` This PR deprecates the use of the `if-available` value for `download-ci-llvm` since `if-unchanged` serves the same purpose when no changes are detected. In cases where changes are present, it is assumed that compiling LLVM is acceptable (otherwise, why make changes there?). This was probably missing in the rust-lang#110087 issue before. cc `@RalfJung`
☀️ Test successful - checks-actions |
Finished benchmarking commit (ea6b131): 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)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 673.122s -> 674.495s (0.20%) |
…acrum general improvements/fixes on bootstrap - adds rust-lang#117813 into change tracker rust-lang@6d9b92f - fixes a bug in change tracker rust-lang@63a4410 - relocates `CONFIG_CHANGE_HISTORY` rust-lang@a7dcb98
Rollup merge of rust-lang#118220 - onur-ozkan:followups, r=Mark-Simulacrum general improvements/fixes on bootstrap - adds rust-lang#117813 into change tracker rust-lang@6d9b92f - fixes a bug in change tracker rust-lang@63a4410 - relocates `CONFIG_CHANGE_HISTORY` rust-lang@a7dcb98
This PR deprecates the use of the
if-available
value fordownload-ci-llvm
sinceif-unchanged
serves the same purpose when no changes are detected. In cases where changes are present, it is assumed that compiling LLVM is acceptable (otherwise, why make changes there?).This was probably missing in the #110087 issue before.
cc @RalfJung