Skip to content
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

Toolstate: Don't block beta week on already broken tools. #69624

Merged
merged 1 commit into from
Mar 2, 2020

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Mar 1, 2020

This changes it so that tools are allowed to be broken entering the beta week if they are already broken. This restores the original behavior before the changes in #66681.

Closes #68458

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 1, 2020
@ehuss
Copy link
Contributor Author

ehuss commented Mar 1, 2020

No PRs will pass starting Wednesday without this if all tools aren't fixed by then.

I'll try to get the books fixed before then, but that is cutting it close. I think Clippy should be good to update, but there is some risk because it will require a coordinated update with Cargo.

@Mark-Simulacrum
Copy link
Member

This looks correct to me, and does seem like the better behavior: realistically, we have 6 weeks to get tools working on beta branch.

@bors r+

@bors
Copy link
Contributor

bors commented Mar 2, 2020

📌 Commit 22d840e has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 2, 2020
bors added a commit that referenced this pull request Mar 2, 2020
Rollup of 6 pull requests

Successful merges:

 - #68682 (Add documentation to compiler intrinsics)
 - #69544 (Unrevert "Remove `checked_add` in `Layout::repeat`")
 - #69617 (constify mem::forget)
 - #69622 (Rename `syntax` in librustc_ast/README.md)
 - #69623 (stash API: remove panic to fix ICE.)
 - #69624 (Toolstate: Don't block beta week on already broken tools.)

Failed merges:

 - #69626 (Toolstate: don't duplicate nightly tool list.)

r? @ghost
@Ixrec
Copy link
Contributor

Ixrec commented Mar 2, 2020

This restores the original behavior before the changes in #69332.

Was this meant to link to something else? That PR doesn't touch toolstate.rs.

@ehuss
Copy link
Contributor Author

ehuss commented Mar 2, 2020

Yea, it was supposed to be #66681. GitHub's auto-complete for issue numbers is very annoying, and too often "helpfully" picks a random number.

@bors bors merged commit f8fb3ef into rust-lang:master Mar 2, 2020
Comment on lines +212 to +216
did_error = true;
eprintln!(
"error: Tool `{}` has regressed from {} to {} during beta week.",
tool, old_state, state
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading this code, something very odd is going on here... there are two places where the code does "if regressed and in_beta_weak, then fail": it does that here, and it does that again and seemingly independently in change_toolstate.

What is going on here? Seems like duplication of the same logic, which usually shouldn't happen.

Copy link
Contributor Author

@ehuss ehuss Mar 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, I had noticed that, too. I didn't want to make too many changes in one PR. The check in change_toolstate can be removed, that only runs on master. I'm not even sure if anyone monitors if master is failing?

I'll submit a PR to clean it up.

EDIT: I was wrong about master-only.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ehuss also see #69693. Feel free to just include that commit in your PR, then I will close mine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Posted #69705 with the fix.

JohnTitor added a commit to JohnTitor/rust that referenced this pull request Mar 5, 2020
…ta, r=Mark-Simulacrum

Toolstate: remove redundant beta-week check.

I made a bit of a mistake in rust-lang#69624.  The "beta regression" doesn't need to be checked twice.

I also rolled up rust-lang#69693 to avoid merge conflicts.
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Mar 5, 2020
…ta, r=Mark-Simulacrum

Toolstate: remove redundant beta-week check.

I made a bit of a mistake in rust-lang#69624.  The "beta regression" doesn't need to be checked twice.

I also rolled up rust-lang#69693 to avoid merge conflicts.
Centril added a commit to Centril/rust that referenced this pull request Mar 11, 2020
…ta, r=Mark-Simulacrum

Toolstate: remove redundant beta-week check.

I made a bit of a mistake in rust-lang#69624.  The "beta regression" doesn't need to be checked twice.

I also rolled up rust-lang#69693 to avoid merge conflicts.
Centril added a commit to Centril/rust that referenced this pull request Mar 11, 2020
…ta, r=Mark-Simulacrum

Toolstate: remove redundant beta-week check.

I made a bit of a mistake in rust-lang#69624.  The "beta regression" doesn't need to be checked twice.

I also rolled up rust-lang#69693 to avoid merge conflicts.
Centril added a commit to Centril/rust that referenced this pull request Mar 12, 2020
…ta, r=Mark-Simulacrum

Toolstate: remove redundant beta-week check.

I made a bit of a mistake in rust-lang#69624.  The "beta regression" doesn't need to be checked twice.

I also rolled up rust-lang#69693 to avoid merge conflicts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken tool going into toolstate week blocks PRs from landing
6 participants