-
-
Notifications
You must be signed in to change notification settings - Fork 5
Multiple links to the same PR #12
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
Happened again here: https://bugs.python.org/issue35579 with 4 links to the same PR. |
It could be related to the bpo maintenance recently, where Ernest had to replay all of the failed webhook deliveries. python/core-workflow#301 |
If you hit a link [edit] button, you can unlink, but I don't know if just 1 or all 4 would be affected. The duplicate merge reports can be deleted 1 by 1 if you want to clean the issue for future viewers. |
Just 1 will be unlinked. You need to unlink them 1 by 1. I did this many times, and it is tiresome. |
AFAICT, this now seems to be happening for all PRs with b.p.o references, with 3 identical PR links being created. See, for example, https://bugs.python.org/issue35614. @ewdurbin @ezio-melotti |
fwiw, it isn't always three, i believe I've seen four happen today. |
It appears to be a race condition on these statements: https://bitbucket.org/python/roundup/src/45440a8172b155875eb4daecd44104abe03b49d3/roundup/github.py#lines-200:201 If the handler is slow, and multiple web hooks are being processed simultaneously for the same PR they each helpfully create the object in the database. Investigating if there is a reasonable way to handle this. |
Is this something that will go away if we start using GitHub issues? |
I guess this also affects keywords. After a PR is added to the issue every message repeats the keyword |
This is a rough attempt at resolving this: https://bitbucket.org/python/roundup/pull-requests/1/attempt-to-handle-pr-race-condition/diff |
I will follow this issue since the bug is annoying. It sends me useless email notifications and not all duplicated PRs get updated when a PR is merged or rejected. |
Is this possibly due to the extra workers that were spin up during the maintenance causing duplicate PRs to be created always since the race condition exists for a very long time? Subscribing to python-bugs-list sends a lot of duplicate notifications and emails for PRs sometimes causes actual messages to be overlooked if there are multiple backports created at the same time for the issue. |
@ewdurbin If |
This was opened in python/core-workflow#224, but it is more appropriate here:
🍝 (copy pasta)
The text was updated successfully, but these errors were encountered: