-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Builds for stable documentation are repeatedly duplicated #8015
Comments
I think this was done on purpose.
I'm +1 on that. So, for the original problem. Can you check that you don't have multiple webhooks in your project (from the github side)? Do you have an automation rule setup? |
Yeah, I got that sense from some further digging that I did.
I only have the one webhook. As far as I know, I don't have any other automation rules - there is a GitHub workflow, but it does not build the documentation and does not interact with anything external to the repository. |
I checked the webhook responses from your project. There are 3 events from March 13.
So, a build is triggered to latest, then a re-sync task is called from there (we call re-sync on every build). And in the meantime another re-sync task is triggered by the webhook when the new tag is pushed. And now we have two re-sync tasks running at the same time! And both try to activate and build the new stable version. readthedocs.org/readthedocs/builds/tasks.py Lines 317 to 325 in 5013d89
I'm not sure if there is an easy way to fix this, but an easy one to fix would be to ignore duplicate builds from the badge. |
Yeah, that makes sense as a root cause. When I release a new version of my code, I always push some local changes (new version number, etc.) and a new tag at the same time. If you can ignore the duplicate builds in the badge, I think that would solve my immediate problem. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hey @stsewd, has there been any movement on this? I would prefer to avoid having this issue marked as stale, since it is still a potential problem AFAIK. |
Hi, Just hit the same problem when pushing a new release (push CHANGELOG + push tag). |
Is this still an issue? If so, can you share what are the minimal steps to reproduce this issue so I can debug it properly? |
I just looked at the build history for this repo. The last failure I got was back on Nov 15, 2021. So, this behavior was happening pretty consistently between June-November of 2021, but something seems to have changed since then and it's stable now. |
Great! We've changed a lot of stuff in our backed with things related to his we clone and handle these events, so I wouldn't be surprised if this problem was fixed with those changes. I will close the issue if there are no more reports about this issue in a few days from now. |
Details
Problem
I have been repeatedly running into problems where my stable documentation build is duplicated, and then the 2nd build fails. In one sense, this is ok, because the 1st build succeeds and the published documentation is correct. However, the documentation badge shows a failure, so it looks like the documentation is broken, which gives users a false sense about the state of the project.
Even though I've configured my email address for notifications, I don't get any email when this happens, so the badge looks wrong in GitHub until the next time I happen to notice it. Then I have to manually trigger another build of stable to fix the problem.
This is the only one of my projects that regularly runs into this problem. I've looked at configuration for this project vs. my other projects, and also double-checked what the webhook looks like in GitHub vs. other repos. Everything looks equivalent. So, I don't see an obvious reason why this project is having this problem but others aren't.
I did resync the webhook this morning, and it's possible that will make a difference, but it's too soon to be sure.
Preferred Outcome
One of three things would fix this for me:
The text was updated successfully, but these errors were encountered: