-
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
Use download-rustc=false
global default, if-unchanged
for tools and library profiles, and make rust.debug-assertions=true
inhibit downloading CI rustc
#133068
base: master
Are you sure you want to change the base?
Conversation
This PR modifies If appropriate, please update This PR modifies If appropriate, please update This PR modifies If appropriate, please update |
I think the motivation for |
Waiting for libs contributors poll to determine if we want to set the library profile to use |
2e477ae
to
92c6f0f
Compare
download-rustc
to false
and only use if-unchanged
for tools profile defaultdownload-rustc
to false
and only use if-unchanged
for tools and library profile defaults
92c6f0f
to
727183f
Compare
download-rustc
to false
and only use if-unchanged
for tools and library profile defaultsdownload-rustc=false
global default, if-unchanged
for tools and library profiles, and make download-rustc = true | if-unchanged
incompatible with rust.debug-assertions=true
Maybe r? @clubby789 (Onur is on vacation and Jakub/Mark/Albert is busy AFAIK) |
727183f
to
b05d37e
Compare
if matches!(rustc_debug_assertions, Some(true)) | ||
|| (matches!(debug, Some(true)) && rustc_debug_assertions.is_none()) | ||
{ |
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.
I don't like this but this is the simplest thing I could think of without fixing our config layering
b05d37e
to
9f10635
Compare
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.
Seems reasonable, r=me with typo fix
EDIT: There's also a leftover 'for' a couple of lines above
9f10635
to
1c4940e
Compare
Only change is typo fix (diff). |
This comment has been minimized.
This comment has been minimized.
5269c84
to
4fd0d92
Compare
This comment has been minimized.
This comment has been minimized.
Yeah, like I suspected, this is going to be problematic. @rustbot blocked (https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/CI.20jobs.20with.20.60--enable-debug-assertions.60.20.2B.20CI.20rustc) |
4fd0d92
to
c1e065a
Compare
@bors rollup=never (modifies CI and bootstrap in a significant way, likely to fail) |
This will also need someone from infra to double-check... so r? @Mark-Simulacrum (or @Kobzol or infra) |
This comment has been minimized.
This comment has been minimized.
c1e065a
to
ef5d82e
Compare
For |
This comment has been minimized.
This comment has been minimized.
Hm this approach is problematic. I need to change the logic such that |
☔ The latest upstream changes (presumably #133219) made this pull request unmergeable. Please resolve the merge conflicts. |
And only use `download-rustc = "if-unchanged"` for the `library` and `tools` profile defaults.
ef5d82e
to
de92e3e
Compare
download-rustc=false
global default, if-unchanged
for tools and library profiles, and make download-rustc = true | if-unchanged
incompatible with rust.debug-assertions=true
download-rustc=false
global default, if-unchanged
for tools and library profiles, and make rust.debug-assertions=true
inhibit downloading CI rustc
Thanks for letting me know! I will have a look at the job timings after this one is merged to make sure the auto build has reasonable timing 👍 |
This comment has been minimized.
This comment has been minimized.
de92e3e
to
4999c0f
Compare
This comment has been minimized.
This comment has been minimized.
Warn if `download-rustc` used with `rust.debug-assertions` as alt rustc builds currently do not have rustc debug assertions enabled.
CI alt rustc builds do not have rustc debug assertions currently.
4999c0f
to
46ba361
Compare
download-rustc = false
as global default.download-rustc = 'if-unchanged'
for tools and library profiles.rust.debug-assertions = true
inhibit downloading CI rustc because alt rustc builds do not yet have rustc debug assertions enabled.Fixes #133132.
cc discussions: https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Bootstrap.20breakage
compiler contributors poll: https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/.60download-rustc.20.3D.20'if-unchanged'.60.20for.20.60compiler.60.20profile.3F/near/481877253
library contributors poll: https://rust-lang.zulipchat.com/#narrow/channel/219381-t-libs/topic/.60download-rustc.20.3D.20.22if-unchanged.22.60.20default.20for.20libs.20profile.3F/near/482607011
cc https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/When.20is.20rustc.20built.20with.20debug.20assertions.3F
cc @MarcoIeni since you're working on improving CI job times, sorry, this will definitely regress some CI job times because we're probably lying to ourselves that CI rustc had debug assertions for some time 😅
cc @onur-ozkan for FYI, but since you're on vacation (sorry for the ping),
r? @Kobzol (I think you have a bit more context than other bootstrap reviewers?)