]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
repo_utils.fetch_repo: Use less retries
authorZack Cerza <zack@redhat.com>
Wed, 27 Dec 2023 18:22:39 +0000 (11:22 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 27 Dec 2023 18:43:20 +0000 (11:43 -0700)
If a particular branch cannot successfully bootstrap, it can cause an accidental
DoS.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/repo_utils.py

index ca0785bfdc9b6d3a4ed20eec11ba39e99a66c684..6ab0747ade2db5dd5b47dd922298b817e04c8326 100644 (file)
@@ -358,7 +358,7 @@ def fetch_repo(url, branch, commit=None, bootstrap=None, lock=True):
     # only let one worker create/update the checkout at a time
     lock_path = dest_path.rstrip('/') + '.lock'
     with FileLock(lock_path, noop=not lock):
-        with safe_while(sleep=10, tries=60) as proceed:
+        with safe_while(sleep=10, tries=6) as proceed:
             try:
                 while proceed():
                     try: