未验证 提交 9ee917c2 编写于 作者: D Dan Field 提交者: GitHub

retry logic for another cipd upload (#15974)

上级 ede50d43
......@@ -173,8 +173,18 @@ def ProcessCIPDPackage(upload, engine_version):
os.path.join(_bucket_directory, 'fuchsia.cipd')
]
subprocess.check_call(command, cwd=_bucket_directory)
# Retry up to three times. We've seen CIPD fail on verification in some
# instances. Normally verification takes slightly more than 1 minute when
# it succeeds.
num_tries = 3
for tries in range(num_tries):
try:
subprocess.check_call(command, cwd=_bucket_directory)
break
except subprocess.CalledProcessError:
print('Failed %s times' % tries + 1)
if tries == num_tries - 1:
raise
def GetRunnerTarget(runner_type, product, aot):
base = '%s/%s:' % (_fuchsia_base, runner_type)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册