Build: Simplify and optimize git backend: New clone+fetch pattern #10430
New git clone/fetch/checkout behavior first steps
f8f35acc
Use `identifier` argument for `.update()`, add lots of comments for f…
9d616f05
benjaoming
force pushed
from
64478503
to
9d616f05
2 years ago
Add missing str() cast
614963dc
Remove the `identifier` keyword since we are forced to use verbose_na…
82178a37
Revert "Remove the `identifier` keyword since we are forced to use ve…
a45b42b1
We need the identifier for branches, but not for tags and PRs
746d94ba
Update some comments after noticing how `Build.identifier/.verbose_na…
b3af824a
benjaoming
force pushed
from
4c1fe9b7
to
b3af824a
2 years ago
Merge branch 'main' of github.com:readthedocs/readthedocs.org into fe…
1f538b65
lint
04f3caf6
Revert "Revert "Remove the `identifier` keyword since we are forced t…
2f8d346f
Use version_identifier as an instance property
c634ca41
Update readthedocs/vcs_support/backends/git.py
6725dbbc
Updates to return values, comments and logging
e186e7fb
Merge branch 'feature/git-clone-fetch-checkout' of github.com:readthe…
7fcf9378
Restore common
8d13787c
Stop fetching --tags and fetch the direct remote reference
a41e3526
Appease linter: Use raise-from pattern
0cb043a9
Hello darker my old friend
e9322df1
Restore error handling for clone operation
b6ba466e
Update a few comments, add a bit more raise-from pattern (actually tr…
230e04f0
WIP: refine some comments, log calls and small things while testing l…
e3fcbf50
New test class with Feature flag defined
abf41b96
Adds a tearDown method after discovering that tests were wrongly pass…
c2b3d440
Merge branch 'main' of github.com:readthedocs/readthedocs.org into fe…
84492ad5
Log a warning if we aren't specifying the version type when using Git…
95878448
Update test cases for new git clone+fetch pattern
9dbc8c3a
Git fetch change: Fetch branches to :refs/remotes/origin/<branch-name…
d8cbc50b
Overwrite tests to call clone_ng and fetch_ng, and rewrite some entirely
15eab05b
Update update() docstring
c5abe46f
Always use lsremote for GIT_CLONE_FETCH_CHECKOUT_PATTERN
577bf51a
Builds need to know about Version.machine=True for tags "stable" so t…
b507d02f
Conditionally log a warning on stable versions
52f071c1
linting
693eef99
add "machine" to version API test case
bd98bf60
Use "refspec" terminology more consistently
21dd16ec
Add test case for un-named default branches
b1cea441
Don't have "--no-checkout" when we *need* to checkout the remote HEAD
2eba2f55
Add test case to verify that we can clone+fetch special tag "stable" …
176f8023
benjaoming
marked this pull request as ready for review 2 years ago
benjaoming
marked this pull request as draft 2 years ago
Update readthedocs/vcs_support/backends/git.py
4191e11e
Remove unused logging
acb7dd98
Use `git fetch <commit hash>` for special "stable" versions
3fe74867
Building an unnamed default branch now skips `git fetch`
33fa7dab
Remove unnecessary logging, add a lot of comments to tests
6431c003
benjaoming
marked this pull request as ready for review 2 years ago
Apply suggestions from @humitos code review
e42f902f
Update readthedocs/projects/models.py
c573736e
Always clean up the presumed repo working dir after a test case
4343fcf5
Move `machine` to `VersionAdminSerializer`
f02c8ff6
Add precision to comment
ae064b8c
Use identifier and verbose_name that looks more like actual data woul…
2f3e6ca3
remove unused local reference in git fetch for "stable" tag
f2fc2b0c
Don't use --no-checkout, just checkout whatever is at the FETCH_HEAD
6628d4fd
Add more logging
5d5a6f59
Update comment
85ac0e42
stsewd
commented
on 2023-06-26
Fix logic condition: Always include `vcs_repository.supports_lsremote`
f1d426b3
Log a warning when we try to generate a pr/mr refspec for an unsuppor…
19eb2823
improve doc strings
5b104008
Merge branch 'main' of github.com:readthedocs/readthedocs.org into fe…
b007df93
Remove TestGitBackendTwiceInARow
a2d7223b
Use real commit hash in test case
41e1f09d
Merge branch 'main' of github.com:readthedocs/readthedocs.org into fe…
98597f21
humitos
enabled auto-merge (squash) 2 years ago
humitos
approved these changes
on 2023-07-10
humitos
merged
1add44a6
into main 2 years ago
humitos
deleted the feature/git-clone-fetch-checkout branch 2 years ago
Login to write a write a comment.
Login via GitHub