readthedocs.org icon indicating copy to clipboard operation
readthedocs.org copied to clipboard

VCS: remove unused methods to "update" an existing copy

Open humitos opened this issue 2 years ago • 2 comments

Closes #8940 Related #9108 Related #9367

humitos avatar Feb 24 '22 15:02 humitos

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.

stale[bot] avatar May 02 '22 08:05 stale[bot]

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.

humitos avatar May 02 '22 10:05 humitos

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 gitpython and go back to parse git's output (I think @stsewd already mentioned this in another issue). However, this should be simpler now because we are already doing this with ls-remote and it's working fine. Branches and tags will use the same command to get these. The only new command we will be introducing to parse its output would be git submodule to discover them.

humitos avatar Feb 01 '23 10:02 humitos

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.

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.

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.

Also, we should probably avoid keep using gitpython and go back to parse git's output

We are tracking this in another issue, so we will be following it there: https://github.com/readthedocs/readthedocs-corporate/issues/1524

humitos avatar Jul 31 '23 11:07 humitos

I will update this PR once Santos merges the work from https://github.com/readthedocs/readthedocs.org/pull/10594 so we don't compete for this chunk of code.

humitos avatar Aug 03 '23 14:08 humitos

Blocked by https://github.com/readthedocs/readthedocs.org/pull/10606

humitos avatar Aug 09 '23 11:08 humitos

This is ready for review now 👍🏼

humitos avatar Aug 09 '23 16:08 humitos

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. https://github.com/DataDog/dd-trace-py/issues/7176

emmettbutler avatar Oct 05 '23 20:10 emmettbutler

@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 https://github.com/readthedocs/readthedocs.org/pull/10795/.

stsewd avatar Oct 05 '23 21:10 stsewd