Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ddtrace/ext/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def _unshallow_repository_with_details(
"--update-shallow",
"--filter=blob:none",
"--recurse-submodules=no",
"--no-tags",
]
if repo is not None:
cmd.append(repo)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
CI Visibility: this fix resolves an issue where repo tags would be fetched while unshallowing to extract commit
metadata, causing performance issues for repos with a large number of tags.
3 changes: 3 additions & 0 deletions tests/ci_visibility/test_ci_visibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,7 @@ def test_unshallow_repository_local_head():
"--update-shallow",
"--filter=blob:none",
"--recurse-submodules=no",
"--no-tags",
"origin",
"myfakesha",
cwd="/path/to/repo",
Expand Down Expand Up @@ -1051,6 +1052,7 @@ def test_unshallow_repository_upstream():
"--update-shallow",
"--filter=blob:none",
"--recurse-submodules=no",
"--no-tags",
"origin",
"myupstreamsha",
cwd="/path/to/repo",
Expand Down Expand Up @@ -1080,6 +1082,7 @@ def test_unshallow_repository_full():
"--update-shallow",
"--filter=blob:none",
"--recurse-submodules=no",
"--no-tags",
"origin",
cwd="/path/to/repo",
)
Expand Down
3 changes: 3 additions & 0 deletions tests/tracer/test_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ def test_unshallow_repository_bare(git_repo):
"--update-shallow",
"--filter=blob:none",
"--recurse-submodules=no",
"--no-tags",
cwd=git_repo,
)

Expand All @@ -384,6 +385,7 @@ def test_unshallow_repository_bare_repo(git_repo):
"--update-shallow",
"--filter=blob:none",
"--recurse-submodules=no",
"--no-tags",
"myremote",
cwd=git_repo,
)
Expand All @@ -400,6 +402,7 @@ def test_unshallow_repository_bare_repo_refspec(git_repo):
"--update-shallow",
"--filter=blob:none",
"--recurse-submodules=no",
"--no-tags",
"myremote",
"mycommitshaaaaaaaaaaaa123",
cwd=git_repo,
Expand Down
Loading