Add a new download-ci-llvm = if-unchanged option and enable it by default for profile = codegen#116881
Conversation
|
(rustbot has picked a reviewer for you, use r? to override) |
|
This PR changes This PR changes src/bootstrap/defaults/config.codegen.toml. If appropriate, please also update |
This comment has been minimized.
This comment has been minimized.
|
This PR changes src/bootstrap/defaults/config.codegen.toml. If appropriate, please also update This PR changes |
This comment has been minimized.
This comment has been minimized.
|
By the way, triagebot.toml should be updated because the bootstrap codebase is reorganized. The tips above seem out of date. |
onur-ozkan
left a comment
There was a problem hiding this comment.
This comment has been minimized.
This comment has been minimized.
onur-ozkan
left a comment
There was a problem hiding this comment.
I still need some work to confirm the second task, maybe a separate PR is needed.
I think we can handle it in this PR
…k-Simulacrum fix bootstrap paths in triagebot.toml ref #rust-lang#116881 (comment)
Rollup merge of rust-lang#116928 - onur-ozkan:update-triagebot, r=Mark-Simulacrum fix bootstrap paths in triagebot.toml ref #rust-lang#116881 (comment)
|
This PR modifies This PR modifies |
This comment has been minimized.
This comment has been minimized.
|
☔ The latest upstream changes (presumably #116998) made this pull request unmergeable. Please resolve the merge conflicts. |
Commit history still looks inappropriate. |
|
reworded it |
There was a problem hiding this comment.
Can you squash your commits into "Fix issue #110087" one ? Following commits alone doesn't make too much sense as far as I see. Specially the 2nd one.
Three tasks have been implemented here. Add a new `download-ci-llvm = if-unchange` option and enable if by default for `profile = codegen`. Include all build artifacts by traversing the llvm-project build output, Keep the downloadable llvm the same state as if you have just run a full source build. After selecting the codegen profile during ./x.py setup, the submodule will be automatically downloaded.
onur-ozkan
left a comment
There was a problem hiding this comment.
Thank you for the fixes.
CC #110087
I still need some work to confirm the second task, maybe a separate PR is needed.
PR description seems to be outdated, it would be nice if you update it :) I will queue up the PR anyway.
|
@bors r+ rollup=iffy |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (750c2ec): 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 sizeResultsThis 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.
Bootstrap: 663.473s -> 664.216s (0.11%) |
| /// If you make any major changes (such as adding new values or changing default values), please | ||
| /// ensure that the associated PR ID is added to the end of this list. | ||
| pub const CONFIG_CHANGE_HISTORY: &[usize] = &[115898, 116998, 117435]; | ||
| pub const CONFIG_CHANGE_HISTORY: &[usize] = &[115898, 116998, 117435, 116881]; |
There was a problem hiding this comment.
I'm getting a WARNING pointing me to this PR. Do I need to do something? Or can I keep my existing config? It's unclear to me. The PR description says there's a new config, but why does everyone have to be alerted of its existence?
There was a problem hiding this comment.
Also this list is unordered now, that seems wrong?
There was a problem hiding this comment.
update change-id = 116881 instead may be help.
AFAIK This is ordered by merge time to keep the source code synchronized with the config file.
There was a problem hiding this comment.
update change-id = 116881 instead may be help.
That will silence the warning, sure. But the reason the warning is shown must be that I should do something before silencing it. There's no point in having people mindlessly increment a number every week just to get rid of the latest warning.
There was a problem hiding this comment.
Also this list is unordered now, that seems wrong?
Lines 78 to 80 in 1db4b12
I'm getting a WARNING pointing me to this PR. Do I need to do something? Or can I keep my existing config? It's unclear to me
rust/src/bootstrap/defaults/config.codegen.toml
Lines 12 to 13 in 1db4b12
PR updated the default value here. I am pretty sure we have people who wants to know this change.
There was a problem hiding this comment.
Then the PR description needs to say: "if you are coming here from x.py, here's what do do: if you are using the 'codegen' profile, be aware that the default value changed. otherwise, you can ignore this".
Currently I'm coming here clueless and wasting 5min trying to figure out if I should do something, before giving up, frustrated.
There was a problem hiding this comment.
That's my bad, I will add the description for this PR later
|
For this PR I am also confused why we have if-available and if-unchanged as two different options. When would I ever want if-available? Shouldn't if-unchanged just be the default everywhere, since it will "do the right thing" in most situations? |
If there is no need to modify llvm locally,
Is it similar to this? https://github.com/orgs/rust-lang/projects/35/views/1?pane=issue&itemId=40227883 |
Have you measured it? How long does the change-check take? We also have |
|
Not yet, the change-check is based on |
Three tasks have been implemented here.
Add a new
download-ci-llvm = if-unchangeoption and enable if bydefault for
profile = codegen.Include all build artifacts by traversing the llvm-project build output,
Keep the downloadable llvm the same state as if you have just run a full
source build.
After selecting the codegen profile during ./x.py setup, the submodule
will be automatically downloaded.
It should be noted that:
if you are using the 'codegen' profile, be aware that the default value changed. otherwise, you can ignore this.
Resolves #110087