From 6246d817d7faec2e6167058155967a9c1fae3029 Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Fri, 14 Jul 2023 18:34:59 +0900 Subject: [PATCH] Add --fail to curl for more robust retries (#32494) --- ci/docker-run.sh | 2 +- ci/test-coverage.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/docker-run.sh b/ci/docker-run.sh index 0cc87bd446..eb9d06836f 100755 --- a/ci/docker-run.sh +++ b/ci/docker-run.sh @@ -112,7 +112,7 @@ ARGS+=( # We normalize CI to `1`; but codecov expects it to be `true` to detect Buildkite... # Unfortunately, codecov.io fails sometimes: # curl: (7) Failed to connect to codecov.io port 443: Connection timed out -CODECOV_ENVS=$(CI=true bash <(while ! curl -sS --retry 5 --retry-delay 2 --retry-connrefused https://codecov.io/env; do sleep 10; done)) +CODECOV_ENVS=$(CI=true bash <(while ! curl -sS --retry 5 --retry-delay 2 --retry-connrefused --fail https://codecov.io/env; do sleep 10; done)) if $INTERACTIVE; then if [[ -n $1 ]]; then diff --git a/ci/test-coverage.sh b/ci/test-coverage.sh index 109bf203b5..1235af81ae 100755 --- a/ci/test-coverage.sh +++ b/ci/test-coverage.sh @@ -32,7 +32,7 @@ else # We normalize CI to `1`; but codecov expects it to be `true` to detect Buildkite... # Unfortunately, codecov.io fails sometimes: # curl: (7) Failed to connect to codecov.io port 443: Connection timed out - CI=true bash <(while ! curl -sS --retry 5 --retry-delay 2 --retry-connrefused https://codecov.io/bash; do sleep 10; done) -Z -X gcov -f target/cov/lcov.info + CI=true bash <(while ! curl -sS --retry 5 --retry-delay 2 --retry-connrefused --fail https://codecov.io/bash; do sleep 10; done) -Z -X gcov -f target/cov/lcov.info annotate --style success --context codecov.io \ "CodeCov report: https://codecov.io/github/solana-labs/solana/commit/${CI_COMMIT:0:9}"