-
-
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
‘stable’ is built from branch instead of tag #3887
Comments
Just tried; didn’t help: https://readthedocs.org/projects/httpolice/builds/6975726/ |
Correction: I did actually have a |
Did you try doing the wipe on the |
After playing around creating and deleting some branches/tags and resync the repo, I was able to reproduce the issue and ending with several unexisting versions and the stable version stuck on a previous commit. My versions listMy repo
Re-importing the same repoDoesn't matter how many times wipe/disable/build the versions, the stable still stuck. @vfaronov sorry, but I think this is a bug and the only solution, for now, is to recreate your project :/ @humitos was this behavior always present? I remember that the versions were deleted when the project was synchronized on the |
@stsewd Thank you for debugging. This is not a big issue for me — I’m unlikely to have a new stable release anytime soon, and then I can easily just create the |
I suppose that we never deleted versions. I think the only way to do this is by deleting the project and re-importing. Then I found this line from 2013 which now is always raising an exception because the We should check the git log and understand why and what happened and fix that bug :) |
On the other hand, it seems there is an endpoint to delete non-existent versions in the repo: https://github.com/rtfd/readthedocs.org/blob/393e31ad3a9aafee297df64f1a654ffcda7ef04a/readthedocs/restapi/utils.py#L64-L85 |
Yeah, I think this is what I saw a time ago |
@humitos the |
Well, I have a missing migration and that was giving an error when deleting the versions, but still are some versions remaining (and now my stable branch is updated) @humitos maybe there is something similar on the rtd servers? |
And as |
After applying the migrations I can't replicate the issue, but I learned that if some error happens here The database will end with inconsistencies, giving the above problems. |
@stsewd I'm still a little confused here but I think that we are close to the solution. Could you write a test case that makes this to fail? I will appreciate it :) Removing that line of the |
@humitos I will write the test, but all this is because if some problem happens while syncing the versions, the database ends with inconsistencies (like having to versions with the same commit). We can't rollback the db because this operation is executed from the API. So, I think a solution could be writing the code in such way that can detect and fix these inconsistencies while syncing the new versions. |
And I'm not sure why we are getting so many issues about this recently, maybe the servers (from the API) were down at this exact time? |
ok, I was able to replicate the issue with the repeated versions without raising any exceptions
The stable version is still updated. I haven't found a way for the |
I was able to replicate the issue about the stable versions, looks like it loses his And it was more easy to replicate that the other one...
|
On the previous step, I had a tag |
@vfaronov hey, the fix for this bug was already deployed, can you test if that really solves your problem? (you may need to wipe and rebuild another version). You may need to do some additional steps if that doesn't work #3913 (comment) |
@stsewd Thank you! It seems to work after the additional steps you mentioned. |
Details
Expected Result
The ‘stable’ version on Read the Docs should be built from the latest version tag that is not pre-release. Currently, this is 0.7.0 (commit 0993a4f).
Actual Result
Instead, Read the Docs attempts to check out a branch named
stable
in the Git repo, which doesn’t exist and never did.If I do push a
stable
branch to the repo, it is picked up, built and published correctly as the ‘stable’ version.I used to have a problem which might be related: #2744 ‘stable’ was built from master instead of tag.
The text was updated successfully, but these errors were encountered: