-
Notifications
You must be signed in to change notification settings - Fork 85
rustbot assigned two reviewers #1881
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
Comments
Adding some context after looking at the triagebot logs. I see two events at two close timestamps:
and then:
I don't have an explaination for that 🤷 but I tend to exclude an issue on the triagebot. I can only speculate your browser accidentally sending two events at close distance (for any reason between you clicking the web UI and the network) but the sequence of events is weird (first the edit, then the submission) 🤔 |
I wrote Seems like me submitting the review somehow triggered two events (maybe that's a GH bug or it's just how GH works some times -- I only clicked "submit review" and didn't edit anything), and furthermore there's a race condition in triagebot where if two events occur at the same time, we can end up with two reviewers. |
Same thing happened on rust-lang/rust#135102 a few days ago |
Just to be clear, multiple reviewers are supported by the GH API so the triagebot reflects that (it's just that we don't use multiple reviewers, as far as I know). Why sometimes we receive two events (1 create, 1 edit ?!) when someone requests an assignment is the interesting question 🤔 |
Yeah I know, but triagebot is supposed to maintain the general property of there being only one reviewer for our PRs. |
Another case (from Zulip) https://togithub.com/rust-lang/rust/pull/137549#event-16442291855 |
For rust-lang/rust#137549 (comment), the logs show that GitHub sent two events in quick succession: 2025-02-25T01:05:15.525531Z -- pull_request_review edited, changes=Some(Changes { title: None, body: None }) (body=None makes no sense) I'm curious what the raw JSON of the first event looked like, since it doesn't make sense to send an "edited" event with no changes. Perhaps triagebot should ignore "edited" events where Looking through the logs, I see this weird "edited" with no changes followed by a submitted happened 10 times in the past 24 hours. |
In rust-lang/rust#135423 I wrote "r? compiler" in a review summary comment and now the PR has two reviewers assigned...
The text was updated successfully, but these errors were encountered: