commit | c0bec2e80cfee0ca0dc5976916227566a7206b36 | [log] [tgz] |
---|---|---|
author | Alex Klein <saklein@chromium.org> | Fri Oct 01 11:54:41 2021 -0600 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Oct 01 20:20:28 2021 +0000 |
tree | b69c59f30a9f17898025017237d21babf279b5fb | |
parent | ef3bc2f831fe24a4a05a1299f319abd0ebde51c6 [diff] [blame] |
gs_fetch_binpkg: Add retries to the Copy. Increase retries to 10 in the script itself, up from the default 3. BUG=b:197574857 TEST=cq Change-Id: Ie26e2147074ca05852c4648ccb1110c45708bd9a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/3200193 Tested-by: Alex Klein <saklein@chromium.org> Reviewed-by: Allen Webb <allenwebb@google.com> Commit-Queue: Alex Klein <saklein@chromium.org>
diff --git a/scripts/gs_fetch_binpkg.py b/scripts/gs_fetch_binpkg.py index ed3266f..8b6fcbb 100644 --- a/scripts/gs_fetch_binpkg.py +++ b/scripts/gs_fetch_binpkg.py
@@ -37,7 +37,7 @@ temp_path = '%s.tmp' % filename osutils.SafeUnlink(temp_path) try: - ctx.Copy(uri, temp_path) + ctx.Copy(uri, temp_path, retries=10) shutil.move(temp_path, filename) finally: osutils.SafeUnlink(temp_path)