Skip to contentSkip to conversation

ci: fix patch download when using curl

PATCH In review Andrea Cervesato 2 participants 3 messages Dec 15, 2025 – Dec 16, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ci: fix patch download when using curl

From: Andrea Cervesato <[email protected]>

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.

---
Changes in v2:
- add --retry
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 .github/workflows/ci-docker-build.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.github/workflows/ci-docker-build.yml +1 -1
index 09eb8bb6d446b3e7100f43844942a5dd3976badb..16d99f097aa96e071b6db0261c9c7ed7d71673ef 100644
@@ -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,

Signature · 5 lines
Andrea Cervesato <[email protected]>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by Li Wang on v2 1/1
#1 lore raw

Andrea Cervesato <[email protected]> wrote:

From: Andrea Cervesato <[email protected]>

Quoted 10 lines

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.

Signature · 5 lines
Regards,
Li Wang

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp