Skip to content

Batch mergeability checks on base branch pushes#744

Merged
Kobzol merged 9 commits into
rust-lang:mainfrom
kyokuping:issue/707
Jun 29, 2026
Merged

Batch mergeability checks on base branch pushes#744
Kobzol merged 9 commits into
rust-lang:mainfrom
kyokuping:issue/707

Conversation

@kyokuping

Copy link
Copy Markdown
Contributor

Closes #707

@kyokuping kyokuping marked this pull request as ready for review April 23, 2026 14:56

@Kobzol Kobzol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm really sorry that it took me so long to take a look at this, I didn't have much time for reviews in the past 2-3 months.

The implementation looks great! I tested it on a live repository and it seems to work as expected, it would be cool to get rid of the thousands useless GH API requests to reload the mergeability of all open PRs.

I left some comments regarding the implementation. I haven't looked at the failing tests yet.

View changes since this review

Comment thread src/bors/mergeability_queue.rs Outdated
Comment thread src/bors/mergeability_queue.rs Outdated
Comment thread src/bors/mergeability_queue.rs Outdated
Comment thread src/bors/mergeability_queue.rs Outdated
Comment thread src/bors/handlers/pr_events.rs Outdated
Comment thread src/github/mod.rs Outdated
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@kyokuping kyokuping requested a review from Kobzol June 21, 2026 15:21
@rustbot

rustbot commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main 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.

@Kobzol

Kobzol commented Jun 29, 2026

Copy link
Copy Markdown
Member

Thank you! Sorry, I was on a vacation last week. The changes look good, I now also went through the tests, and found that there is one ~obsolete test that we don't need anymore after this change. I also rebased over main, as there was a conflict. Let's see if CI passes.

@Kobzol

Kobzol commented Jun 29, 2026

Copy link
Copy Markdown
Member

Looks like it does! I'll merge it now to test this on the staging environment. Thanks a lot for working on this!

@Kobzol Kobzol enabled auto-merge June 29, 2026 11:00
@Kobzol Kobzol added this pull request to the merge queue Jun 29, 2026
Merged via the queue into rust-lang:main with commit b1e4854 Jun 29, 2026
5 checks passed
@Kobzol

Kobzol commented Jun 30, 2026

Copy link
Copy Markdown
Member

I tested this on staging and it looks good! I'll probably deploy it to production today to see how it behaves with ~1100 open PRs 😅

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.

Use GraphQL to load mergeability status from GitHub

3 participants