-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Build: Simplify and optimize git backend: New clone+fetch pattern #10430
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
Merged
Merged
Changes from 21 commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
f8f35ac
New git clone/fetch/checkout behavior first steps
benjaoming 9d616f0
Use `identifier` argument for `.update()`, add lots of comments for f…
benjaoming 614963d
Add missing str() cast
benjaoming 82178a3
Remove the `identifier` keyword since we are forced to use verbose_na…
benjaoming a45b42b
Revert "Remove the `identifier` keyword since we are forced to use ve…
benjaoming 746d94b
We need the identifier for branches, but not for tags and PRs
benjaoming b3af824
Update some comments after noticing how `Build.identifier/.verbose_na…
benjaoming 1f538b6
Merge branch 'main' of github.com:readthedocs/readthedocs.org into fe…
benjaoming 04f3caf
lint
benjaoming 2f8d346
Revert "Revert "Remove the `identifier` keyword since we are forced t…
benjaoming c634ca4
Use version_identifier as an instance property
benjaoming 6725dbb
Update readthedocs/vcs_support/backends/git.py
benjaoming e186e7f
Updates to return values, comments and logging
benjaoming 7fcf937
Merge branch 'feature/git-clone-fetch-checkout' of github.com:readthe…
benjaoming 8d13787
Restore common
benjaoming a41e352
Stop fetching --tags and fetch the direct remote reference
benjaoming 0cb043a
Appease linter: Use raise-from pattern
benjaoming e9322df
Hello darker my old friend
benjaoming b6ba466
Restore error handling for clone operation
benjaoming 230e04f
Update a few comments, add a bit more raise-from pattern (actually tr…
benjaoming e3fcbf5
WIP: refine some comments, log calls and small things while testing l…
benjaoming abf41b9
New test class with Feature flag defined
benjaoming c2b3d44
Adds a tearDown method after discovering that tests were wrongly pass…
benjaoming 84492ad
Merge branch 'main' of github.com:readthedocs/readthedocs.org into fe…
benjaoming 9587844
Log a warning if we aren't specifying the version type when using Git…
benjaoming 9dbc8c3
Update test cases for new git clone+fetch pattern
benjaoming d8cbc50
Git fetch change: Fetch branches to :refs/remotes/origin/<branch-name…
benjaoming 15eab05
Overwrite tests to call clone_ng and fetch_ng, and rewrite some entirely
benjaoming c5abe46
Update update() docstring
benjaoming 577bf51
Always use lsremote for GIT_CLONE_FETCH_CHECKOUT_PATTERN
benjaoming b507d02
Builds need to know about Version.machine=True for tags "stable" so t…
benjaoming 52f071c
Conditionally log a warning on stable versions
benjaoming 693eef9
linting
benjaoming bd98bf6
add "machine" to version API test case
benjaoming 21dd16e
Use "refspec" terminology more consistently
benjaoming b1cea44
Add test case for un-named default branches
benjaoming 2eba2f5
Don't have "--no-checkout" when we *need* to checkout the remote HEAD
benjaoming 176f802
Add test case to verify that we can clone+fetch special tag "stable" …
benjaoming 4191e11
Update readthedocs/vcs_support/backends/git.py
benjaoming acb7dd9
Remove unused logging
benjaoming 3fe7486
Use `git fetch <commit hash>` for special "stable" versions
benjaoming 33fa7da
Building an unnamed default branch now skips `git fetch`
benjaoming 6431c00
Remove unnecessary logging, add a lot of comments to tests
benjaoming e42f902
Apply suggestions from @humitos code review
benjaoming c573736
Update readthedocs/projects/models.py
benjaoming 4343fcf
Always clean up the presumed repo working dir after a test case
benjaoming f02c8ff
Move `machine` to `VersionAdminSerializer`
benjaoming ae064b8
Add precision to comment
benjaoming 2f3e6ca
Use identifier and verbose_name that looks more like actual data woul…
benjaoming f2fc2b0
remove unused local reference in git fetch for "stable" tag
benjaoming 6628d4f
Don't use --no-checkout, just checkout whatever is at the FETCH_HEAD
benjaoming 5d5a6f5
Add more logging
benjaoming 85ac0e4
Update comment
benjaoming f1d426b
Fix logic condition: Always include `vcs_repository.supports_lsremote`
benjaoming 19eb282
Log a warning when we try to generate a pr/mr refspec for an unsuppor…
benjaoming 5b10400
improve doc strings
benjaoming b007df9
Merge branch 'main' of github.com:readthedocs/readthedocs.org into fe…
benjaoming a2d7223
Remove TestGitBackendTwiceInARow
benjaoming 41e1f09
Use real commit hash in test case
benjaoming 98597f2
Merge branch 'main' of github.com:readthedocs/readthedocs.org into fe…
humitos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.