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

Switch cargo from bors to merge-queue #1590

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Oct 22, 2024

Accompanying PR: rust-lang/cargo#14718

Merge should be synchronized with an infra-admin switching the repo to merge queues!


[access.teams]
cargo = "write"

[[branch-protections]]
pattern = "master"
ci-checks = ["conclusion"]
Copy link
Contributor

Choose a reason for hiding this comment

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

ci-checks will be needed on the rust-1.* branch protection, too. We use those for beta backports.

Copy link
Contributor

@ehuss ehuss Oct 23, 2024

Choose a reason for hiding this comment

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

Or...hm.. Merge queues don't support * patterns. That's...unfortunate.

I suppose we can merge without using queues, since we almost never have more than one PR targeting a branch at once. We can assume the PR is up-to-date. Perhaps we could expose the "Require branches to be up to date before merging" setting for the beta branches?

Copy link
Contributor Author

@Kobzol Kobzol Oct 23, 2024

Choose a reason for hiding this comment

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

If it's needed only for cargo (and rust-lang/rust), I would just configure it manually. TIL about the * limitation, that's annoying.

Copy link
Contributor

Choose a reason for hiding this comment

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

Just checking, I think it would be good to also add ci-checks to the beta branch to ensure that nothing is merged with failures.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed.

@Kobzol Kobzol marked this pull request as draft October 23, 2024 08:49
@ehuss
Copy link
Contributor

ehuss commented Nov 5, 2024

The cargo team discussed switching, and agreed we would like to try it out. I just have a minor caveat above, and then I think we should be good to go.

@Kobzol Kobzol force-pushed the cargo-remove-bors branch from e78aefb to 769405c Compare November 5, 2024 19:06
@Kobzol Kobzol marked this pull request as ready for review November 5, 2024 19:06
Comment on lines 14 to 16
[[branch-protections]]
pattern = "beta"
ci-checks = ["conclusion"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, sorry, to be clear, the pattern isn't "beta". It should be the rust-1.* pattern below. That's where we put our beta backports (it works a little differently than rust-lang/rust).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, sorry, my bad. Fixed :)

@Kobzol Kobzol force-pushed the cargo-remove-bors branch from 769405c to 6ba80a4 Compare November 6, 2024 22:33
@Kobzol
Copy link
Contributor Author

Kobzol commented Nov 7, 2024

We should have ideally someone from the Cargo team online for performing the switch (and we also need an infra-admin). If you're willing to help, @ehuss, let me and @MarcoIeni and we can coordinate the time.

@ehuss
Copy link
Contributor

ehuss commented Nov 8, 2024

I should be around tomorrow (Friday) if you want.

@MarcoIeni
Copy link
Member

MarcoIeni commented Nov 8, 2024

I'm on a train for RustLab but it works for me. I'll be available in 4 hours from now for 7 hours (10.30 to 17.30 cet).

EDIT: this PR LGTM. I'll approve and merge when we do the migration.

Copy link
Member

@MarcoIeni MarcoIeni left a comment

Choose a reason for hiding this comment

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

Approving and merging to switch cargo to merge queues

@MarcoIeni MarcoIeni merged commit d576846 into rust-lang:master Nov 8, 2024
1 check passed
@Kobzol Kobzol deleted the cargo-remove-bors branch November 8, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants