-
-
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
VCS: remove unused methods and make new Git pattern the default #8968
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
There were some changes in our code, but this PR is still useful. I'll try to come back to it when I have some extra time. |
I updated this PR but there are still some extra work to do, so I'm leaving it again 😄 IMO, it would be good to deprecate and remove some VCS as already proposed (mainly SVN and bzr) to reduce the complexity and scope of this refactor. Also, we should probably avoid keep using |
…mitos/vcs-update-delete
Remove `GIT_CLONE_FETCH_CHECKOUT_PATTERN` feature flag and always use it. We have been testing this new pattern and it has been working great.
I updated this PR again. The main new work here is that it makes the new Git pattern the default. I has been enabled for more than a week already and we haven't had any support issue about this. So, I think we are ready to remove the feature flag from our code.
I'm still 👍🏼 on this, but I'm not going to cover it on this PR since it requires to follow our deprecation plan. I will do this work on #8840 in the next sprint.
We are tracking this in another issue, so we will be following it there: https://github.com/readthedocs/readthedocs-corporate/issues/1524 |
I will update this PR once Santos merges the work from #10594 so we don't compete for this chunk of code. |
Blocked by #10606 |
We are not depending on GitPython anymore. With the introduction of `git ls-remote` we don't require to parse the repository anymore and GitPython is not required. This commit also removes the methods `.branches` and `.tags` that are not used anymore when using Git as VCS backend.
This is ready for review now 👍🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should merge this after we have tested the new implementation more broadly again.
Is it possible to tell a build to use the default prior to this change? It seems possible that this change broke dd-trace-py's release notes workflow. DataDog/dd-trace-py#7176 |
@emmettbutler it's not possible, if you need to unshallow you can follow the example from https://docs.readthedocs.io/en/stable/build-customization.html#unshallow-git-clone, or maybe the suggestion from #10795. |
This PR removes the feature flag to use the new Git pattern, making it the default. Besides, it removes some methods that are not used anymore because we are always cloning the repository, so there is no need to update it or similar.
Closes #8940
Related