-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Fix bump-stage0
build failure, and check-build bump-stage0
in CI
#146263
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
Conversation
r? @clubby789 rustbot has assigned @clubby789. Use |
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.
Thanks!
tool_check_step!(BumpStage0 { | ||
path: "src/tools/bump-stage0", | ||
mode: |_builder| Mode::ToolBootstrap, | ||
default: false |
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.
It would be nice to have the option to check these tools by default on CI, so that we don't have to enumerate them manually in CI scripts.
@bors r+ rollup |
Hold on, it doesn't yet check-build. |
Ah lol, I thought it was fixed already :D Sorry. |
No worries, I was like wait this doesn't actually check-build if I run it fully, lol. |
7b99802
to
9b7be80
Compare
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
- We pick the higest common `toml` version used in the r-l/r workspace to avoid introducing Yet Another `toml` `0.x` version, which happens to be `0.8.23` as of the time of writing. - We introduce a byte-buffer-to-string workaround for the `toml 0.8.*` series that do not have the `toml 0.9.*` series's `toml::from_slice` API yet. Not efficient, but this is not perf-critical so it's fine.
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
To catch obvious build failures of the `src/tools/bump-stage0` early, before we find out it can't even build when we really need it to work.
9b7be80
to
312a124
Compare
bump-stage0
tool in CIbump-stage0
build failure, and check-build bump-stage0
in CI
Okay, now |
Looks fine. You can r=me once CI is green. |
CI is sufficiently 🍏 |
Rollup of 5 pull requests Successful merges: - #127316 (move pinned version from tracing_core to tracing) - #144801 (Suggest bounds in more cases, accounting for type parameters referenced in predicate) - #146211 (Disallow shebang in `--cfg` and `--check-cfg` arguments) - #146263 (Fix `bump-stage0` build failure, and check-build `bump-stage0` in CI) - #146266 (miri std tests: skip all of sys::) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #146263 - jieyouxu:check-bump-stage0, r=Kobzol Fix `bump-stage0` build failure, and check-build `bump-stage0` in CI This PR bumps the `toml` dependency of the `bump-stage0` tool to `0.8.23`, which AFAICT is the highest `toml` version that's present in the r-l/r workspace's `Cargo.lock` already (so we don't introduce _another_ `toml 0.x.*` series). I added some byte-buffer-to-string intermediary to workaround `toml 0.8.*` not having the `toml 0.9.*` `toml::from_slice` API. To catch obvious build failures of the `src/tools/bump-stage0` tool early, before we find out it can't even build when we really need it to work. Contexts: - #146250 (comment) - [#t-release > Bump stage0 rustfmt separately ("one-off") @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/241545-t-release/topic/Bump.20stage0.20rustfmt.20separately.20.28.22one-off.22.29/near/537916615) Fixes #146252.
This PR bumps the
toml
dependency of thebump-stage0
tool to0.8.23
, which AFAICT is the highesttoml
version that's present in the r-l/r workspace'sCargo.lock
already (so we don't introduce anothertoml 0.x.*
series). I added some byte-buffer-to-string intermediary to workaroundtoml 0.8.*
not having thetoml 0.9.*
toml::from_slice
API.To catch obvious build failures of the
src/tools/bump-stage0
tool early, before we find out it can't even build when we really need it to work.Contexts:
Fixes #146252.