Skip to content

Commit c139abf

Browse files
committed
aggressive retry
1 parent 184253f commit c139abf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

run-tests.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ readonly CARGO_TARGET_DIR="${WORKDIR}/target/debug"
1616
log() { echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] $*" >&2; }
1717

1818
log "Downloading PocketIC v${POCKETIC_VERSION}"
19-
curl -fsSL --retry 3 --retry-delay 5 "${POCKETIC_URL}" -o pocket-ic.gz || {
19+
curl -fsSL --retry 3 --retry-delay 5 --retry-all-errors "${POCKETIC_URL}" -o pocket-ic.gz || {
2020
log "Failed to download PocketIC"
2121
exit 1
2222
}
@@ -40,7 +40,7 @@ for COMMIT in ${IC_COMMITS}
4040
do
4141
log "Trying commit ${COMMIT}"
4242
URL="https://download.dfinity.systems/ic/${COMMIT}/binaries/x86_64-linux/ic-boundary.gz"
43-
if curl -fsSL --retry 3 --retry-delay 5 -o ic-boundary.gz ${URL}; then
43+
if curl -fsSL --retry 3 --retry-delay 5 --retry-all-errors -o ic-boundary.gz ${URL}; then
4444
OK=1
4545
break
4646
fi
@@ -62,7 +62,7 @@ log "ic-gateway build completed"
6262

6363
log "Downloading asset canister WASM"
6464
mkdir -p "${CANISTER_DIR}" || { log "Failed to create canister directory"; exit 1; }
65-
curl -fsSL --retry 3 --retry-delay 5 "${ASSET_WASM_URL}" -o "${CANISTER_DIR}/assetstorage.wasm.gz" || {
65+
curl -fsSL --retry 3 --retry-delay 5 --retry-all-errors "${ASSET_WASM_URL}" -o "${CANISTER_DIR}/assetstorage.wasm.gz" || {
6666
log "Failed to download asset canister WASM"
6767
exit 1
6868
}
@@ -74,7 +74,7 @@ log "Asset canister WASM downloaded"
7474

7575
log "Downloading large assets canister WASM"
7676
mkdir -p "${CANISTER_DIR}" || { log "Failed to create canister directory"; exit 1; }
77-
curl -fsSL --retry 3 --retry-delay 5 "${LARGE_ASSETS_WASM_URL}" -o "${CANISTER_DIR}/largeassets.wasm.gz" || {
77+
curl -fsSL --retry 3 --retry-delay 5 --retry-all-errors "${LARGE_ASSETS_WASM_URL}" -o "${CANISTER_DIR}/largeassets.wasm.gz" || {
7878
log "Failed to download large assets canister WASM"
7979
exit 1
8080
}

0 commit comments

Comments
 (0)