diff --git a/infra/cifuzz/filestore/git/__init__.py b/infra/cifuzz/filestore/git/__init__.py index 636ed693f435..9a2f8ea103ad 100644 --- a/infra/cifuzz/filestore/git/__init__.py +++ b/infra/cifuzz/filestore/git/__init__.py @@ -32,6 +32,8 @@ _PUSH_RETRIES = 3 _PUSH_BACKOFF = 1 +_CLONE_RETRIES = 5 +_CLONE_DELAY = 1 _GIT_EMAIL = 'cifuzz@clusterfuzz.com' _GIT_NAME = 'CIFuzz' _CORPUS_DIR = 'corpus' @@ -64,6 +66,7 @@ def __init__(self, config, ci_filestore): def __del__(self): shutil.rmtree(self.repo_path) + @retry.wrap(_CLONE_RETRIES, _CLONE_DELAY) def _clone(self, repo_url): """Clones repo URL.""" self._git('clone', repo_url, '.')