Retry CIPD client download on Linux / macOS
Transient network conditions can cause the CIPD client download to fail, so add a retry to the download. When using `wget` we additionally retry usually fatal errors like "connection refused" via `--retry-connrefused`. `curl` also has that parameter, but it was added more recently in version 7.52.0, which isn't available on supported platforms like Ubuntu 16.04. Once we raise the minimum supported version of curl, we should add that parameter as well. In either case, we retry 3 times and wait 5 seconds between each try, which matches the retries recently added for Windows. Bug: 1145741 Change-Id: Ib73bb3413ba4d5251c2b027a87dabd1378ab6c44 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2532896 Reviewed-by: Vadim Shtayura <vadimsh@chromium.org> Commit-Queue: Matthew Kotsenas <mattkot@microsoft.com>changes/96/2532896/4
parent
c135bfa0f4
commit
1607bf453a
Loading…
Reference in New Issue