Skip to content

Commit

Permalink
[8.x] [Tests] Add retries when fetching DRA artifacts (#2980) (#2985)
Browse files Browse the repository at this point in the history
Co-authored-by: Jedr Blaszyk <[email protected]>
  • Loading branch information
github-actions[bot] and jedrazb authored Nov 20, 2024
1 parent ed9eda9 commit 0d65ed7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/ftest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ function resolve_dra_manifest {
function download_docker_tarball {
TAR_URL=$1
TAR_FILE=$2
MAX_RETRIES=3

echo "Downloading Docker image tarball from $TAR_URL..."
curl -O "$TAR_URL"
curl --retry $MAX_RETRIES --retry-connrefused -O "$TAR_URL"

if [ ! -f "$TAR_FILE" ]; then
echo "Error: Download failed. File $TAR_FILE not found."
Expand Down

0 comments on commit 0d65ed7

Please sign in to comment.