Skip to content

Commit

Permalink
Retry getting test data to prevent CI tests from failing - increase c…
Browse files Browse the repository at this point in the history
…onnect timeout from 10 to 60sec, increase retry delay from 0 (setting duplicated) to 30, increase retry attempts to 5.
  • Loading branch information
josephevans committed Dec 21, 2021
1 parent 71a04ca commit 531ba78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions cpp-package/example/get_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ download () {
fi

echo "Downloading ${URL} ..."
local CURL_OPTIONS="--connect-timeout 10 \
local CURL_OPTIONS="--connect-timeout 60 \
--max-time 300 \
--retry-delay 10 \
--retry 3 \
--retry-delay 0 \
--retry-delay 30 \
--retry 5 \
--location \
--silent"
curl ${CURL_OPTIONS} ${URL} -o ${GZ_FILE_NAME}
Expand Down
7 changes: 3 additions & 4 deletions tools/dependencies/make_shared_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ download () {
fi

echo "Downloading ${URL} ..."
local CURL_OPTIONS="--connect-timeout 10 \
local CURL_OPTIONS="--connect-timeout 60 \
--max-time 300 \
--retry-delay 10 \
--retry 3 \
--retry-delay 0 \
--retry-delay 30 \
--retry 5 \
--location \
--silent"
curl ${CURL_OPTIONS} ${URL} -o ${OUT_FILE}
Expand Down

0 comments on commit 531ba78

Please sign in to comment.