[LTP] [PATCH v2] ci: fix patch download when using curl
Andrea Cervesato
andrea.cervesato@suse.de
Mon Dec 15 17:21:15 CET 2025
From: Andrea Cervesato <andrea.cervesato@suse.com>
curl started to fail on CI after bots have been introduced to verify
that a human is interacting with patchwork. This creates an issue when
we need to download patches, since at the very first redirection we will
miss the server hosting our patches. By using `--location-trusted`, we
trust the bots redirection and we make sure that it's possible to
download the patch which is going to be applied via `git am`.
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v2:
- add --retry
- Link to v1: https://lore.kernel.org/r/20251215-fix_ci-v1-1-792d418fc240@suse.com
---
.github/workflows/ci-docker-build.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/ci-docker-build.yml b/.github/workflows/ci-docker-build.yml
index 09eb8bb6d446b3e7100f43844942a5dd3976badb..16d99f097aa96e071b6db0261c9c7ed7d71673ef 100644
--- a/.github/workflows/ci-docker-build.yml
+++ b/.github/workflows/ci-docker-build.yml
@@ -155,7 +155,7 @@ jobs:
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git checkout -b review_patch_series_"${{ inputs.SERIES_ID }}"
- curl -k "${{ inputs.SERIES_MBOX }}" | git am
+ curl -k -L --retry 3 --max-redirs 1 --location-trusted "${{ inputs.SERIES_MBOX }}" | git am
./ci/tools/patchwork.sh state "${{ inputs.SERIES_ID }}" "needs-review-ack"
---
base-commit: d0e0426529619868195ff1dc8decd88c8259090c
change-id: 20251215-fix_ci-6d1edd26198d
Best regards,
--
Andrea Cervesato <andrea.cervesato@suse.com>
More information about the ltp
mailing list