-
-
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
Version syncing: repositories with too many branches/tags fail on syncing #8990
Comments
I think we are facing this exact issue in https://readthedocs.org/projects/cilium. I can't find a tag that was recently created in https://readthedocs.org/projects/cilium/versions. Any workaround in place? The only workaround found was to delete some upstream non-used references with |
Another option is to cut the output only when saving the command. |
It may be worth checking if updating 65k versions on each sync won't destroy our API / database first. I think it could be a problem. In that case, we may want to be able to sort the branches by descending date and keep the last 200 created only or similar. |
In that case, we will be sending a lot of data over the API, which may take some time, and then it will be discarded. I think we could add an argument to the method that runs these particular commands telling them not to chunk the output's command. |
I meant before using the API to save that command. |
@dojutsu-user I'm not sure what is exactly the solution to this problem. I suggested:
So, a good starting point is to figure it out how to do this with Git and all the other supported VCS (not considered to be deprecated soon, see #8840) |
I saw there are repositories that have too many branches/tags failing when we try to re-sync their versions. An example of it is
jupyterlab
which has 61k versions:It fails on our side because we truncate the output of the command if it's too big:
'Output is too big. Truncated at 4718592 bytes.'
. We could remove this restriction, but that will produce a problem in our database when trying to re-sync 61k versions. I'm not sure what's the right approach to fix this issue 😞This project in particular has ~1300 versions registered in Read the Docs:
and they have
Skip syncing tags feature
flag enabled.Sentry issue: https://sentry.io/organizations/read-the-docs/issues/3058924977/
The text was updated successfully, but these errors were encountered: