Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Multiple links to the same PR #12
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: