ci: fix patch download when using curl
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
@@ -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
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 viagit am.Signed-off-by Andrea Cervesato <[email protected]>
Signature · 5 lines
Regards, Li Wang -- Mailing list info: https://lists.linux.it/listinfo/ltp
Merged! Let's hope this will fix CI once for all :)
Signature · 7 lines
Andrea Cervesato SUSE QE Automation Engineer Linux [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp