From 48d1933fab5de397002cbe26e3e59e8dc0689b85 Mon Sep 17 00:00:00 2001 From: Valentine Burley Date: Mon, 26 May 2025 16:36:04 +0200 Subject: [PATCH] ci/deqp: Use curl-with-retry helper Use the new helper to avoid intermittent network issues. Signed-off-by: Valentine Burley Part-of: --- .gitlab-ci/container/build-deqp.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci/container/build-deqp.sh b/.gitlab-ci/container/build-deqp.sh index d0eb1ce3c89..31710fbc49e 100755 --- a/.gitlab-ci/container/build-deqp.sh +++ b/.gitlab-ci/container/build-deqp.sh @@ -118,7 +118,7 @@ git checkout FETCH_HEAD DEQP_COMMIT=$(git rev-parse FETCH_HEAD) if [ "$DEQP_VERSION" = "$DEQP_MAIN_COMMIT" ]; then - merge_base="$(curl --fail -s https://api.github.com/repos/KhronosGroup/VK-GL-CTS/compare/main...$DEQP_MAIN_COMMIT | jq -r .merge_base_commit.sha)" + merge_base="$(curl-with-retry -s https://api.github.com/repos/KhronosGroup/VK-GL-CTS/compare/main...$DEQP_MAIN_COMMIT | jq -r .merge_base_commit.sha)" if [[ "$merge_base" != "$DEQP_MAIN_COMMIT" ]]; then echo "VK-GL-CTS commit $DEQP_MAIN_COMMIT is not a commit from the main branch." exit 1 @@ -138,8 +138,7 @@ for commit in "${!cts_commits_to_backport}" do PATCH_URL="https://github.com/KhronosGroup/VK-GL-CTS/commit/$commit.patch" echo "Apply patch to ${DEQP_API} CTS from $PATCH_URL" - curl -L --retry 4 -f --retry-all-errors --retry-delay 60 $PATCH_URL | \ - GIT_COMMITTER_DATE=$(LC_TIME=C date -d@0) git am - + curl-with-retry $PATCH_URL | GIT_COMMITTER_DATE=$(LC_TIME=C date -d@0) git am - done cts_patch_files="${prefix}_cts_patch_files[@]"