Skip to content

Commit 7cabc6b

Browse files
authored
ref: replace git clone with zip downloads, reuse retry machinery (#314)
1 parent 2361c24 commit 7cabc6b

14 files changed

Lines changed: 1140 additions & 2475 deletions

File tree

devservices/constants.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ class DependencyType(StrEnum):
3737
DEVSERVICES_ORCHESTRATOR_LABEL = "orchestrator=devservices"
3838

3939
DEPENDENCY_CONFIG_VERSION = "v1"
40-
DEPENDENCY_GIT_PARTIAL_CLONE_CONFIG_OPTIONS = {
41-
"protocol.version": "2",
42-
"extensions.partialClone": "true",
43-
"core.sparseCheckout": "true",
44-
}
4540

4641
DEVSERVICES_RELEASES_URL = (
4742
"https://api.github.com/repos/getsentry/devservices/releases/latest"

devservices/exceptions.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,6 @@ def __str__(self) -> str:
102102
return f"DependencyError: {self.repo_name} ({self.repo_link}) on {self.branch}"
103103

104104

105-
class UnableToCloneDependencyError(DependencyError):
106-
"""Raised when a dependency is unable to be cloned."""
107-
108-
def __str__(self) -> str:
109-
return f"Unable to clone dependency: {self.repo_name} ({self.repo_link}) on {self.branch}"
110-
111-
112105
class InvalidDependencyConfigError(DependencyError):
113106
"""Raised when a dependency's config is invalid."""
114107

@@ -142,18 +135,6 @@ def __init__(self, command: str, returncode: int, stderr: str):
142135
self.stderr = stderr
143136

144137

145-
class GitConfigError(Exception):
146-
"""Base class for git config related errors."""
147-
148-
pass
149-
150-
151-
class FailedToSetGitConfigError(GitConfigError):
152-
"""Raised when a git config cannot be set."""
153-
154-
pass
155-
156-
157138
class ContainerHealthcheckFailedError(Exception):
158139
"""Raised when a container is not healthy."""
159140

0 commit comments

Comments
 (0)