-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Update rustc-perf
submodule before running tidy
#126225
Conversation
Will that require everyone to have the submodule checked out? |
Yes, if they want to run |
@bors r+ p=1 (tidy is broken atm) |
Checking out a submodule is already required since #125465. This PR makes it done automatically. |
Another checkout is needed before vendoring (ref https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/rustc-perf.20workspace.20doesn't.20have.20a.20Cargo.2Elock/near/443741766) @bors r- |
Seems like that's already done before vendoring. @bors r+ |
I don't find that argument super convincing tbh: opt-dist is a dist concern, not really something that contributors should be worrying about in their day-to-day work that doesn't involve it. In particular here, when the issue this fixes is not checked on CI. |
#125465 made tidy to check the rustc-perf license. So now tidy fails if the submodule isn't checked out, and this PR checkouts the submodule instead of leaving tidy to fail. I will improve this further by not checking rustc-perf license from tidy with a condition something like |
☀️ Test successful - checks-actions |
Finished benchmarking commit (0de24a5): 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: 673.707s -> 672.142s (-0.23%) |
…-Simulacrum tidy: skip submodules if not present for non-CI environments Right now tidy requires rustc-perf to be fetched as it checks its license, but this doesn't make sense for most contributors since rustc-perf is a dist-specific tool and its license will not change frequently, especially during compiler development. This PR makes tidy to skip rustc-perf if it's not fetched and if it's not running in CI. Applies rust-lang#126225 (comment) and reverts rust-lang#126225.
…-Simulacrum tidy: skip submodules if not present for non-CI environments Right now tidy requires rustc-perf to be fetched as it checks its license, but this doesn't make sense for most contributors since rustc-perf is a dist-specific tool and its license will not change frequently, especially during compiler development. This PR makes tidy to skip rustc-perf if it's not fetched and if it's not running in CI. Applies rust-lang#126225 (comment) and reverts rust-lang#126225.
…-Simulacrum tidy: skip submodules if not present for non-CI environments Right now tidy requires rustc-perf to be fetched as it checks its license, but this doesn't make sense for most contributors since rustc-perf is a dist-specific tool and its license will not change frequently, especially during compiler development. This PR makes tidy to skip rustc-perf if it's not fetched and if it's not running in CI. Applies rust-lang#126225 (comment) and reverts rust-lang#126225.
Rollup merge of rust-lang#126230 - onur-ozkan:followup-126225, r=Mark-Simulacrum tidy: skip submodules if not present for non-CI environments Right now tidy requires rustc-perf to be fetched as it checks its license, but this doesn't make sense for most contributors since rustc-perf is a dist-specific tool and its license will not change frequently, especially during compiler development. This PR makes tidy to skip rustc-perf if it's not fetched and if it's not running in CI. Applies rust-lang#126225 (comment) and reverts rust-lang#126225.
tidy: skip submodules if not present for non-CI environments Right now tidy requires rustc-perf to be fetched as it checks its license, but this doesn't make sense for most contributors since rustc-perf is a dist-specific tool and its license will not change frequently, especially during compiler development. This PR makes tidy to skip rustc-perf if it's not fetched and if it's not running in CI. Applies rust-lang/rust#126225 (comment) and reverts #126225.
Since #125465,
tidy
checkssrc/tools/rustc-perf
, so we need to have it checked out before runningtidy
.Fixes: #126224
r? @onur-ozkan