From: Zack Cerza Date: Wed, 27 Dec 2023 18:22:39 +0000 (-0700) Subject: repo_utils.fetch_repo: Use less retries X-Git-Tag: 1.2.0~59^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aac62b2cc7bf54cf3fc3fb1581d916d267f4e6db;p=teuthology.git repo_utils.fetch_repo: Use less retries If a particular branch cannot successfully bootstrap, it can cause an accidental DoS. Signed-off-by: Zack Cerza --- diff --git a/teuthology/repo_utils.py b/teuthology/repo_utils.py index ca0785bfd..6ab0747ad 100644 --- a/teuthology/repo_utils.py +++ b/teuthology/repo_utils.py @@ -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: