From 2d6180b25e832e4d8b8aa5de9586cbf2a2800201 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 24 Jul 2023 11:56:28 -0700 Subject: [PATCH] Try forcing HTTP/1.1 for pagure.io git clones The change to the curl commands to force HTTP/1.1 seems to have stopped them failing, so let's try doing it for the git clones too and see if that avoids the problem till we can work out what is causing it. Signed-off-by: Adam Williamson --- tests/_live_build.pm | 4 ++++ tests/_ostree_build.pm | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tests/_live_build.pm b/tests/_live_build.pm index 3a762c61..72df90f2 100644 --- a/tests/_live_build.pm +++ b/tests/_live_build.pm @@ -64,6 +64,10 @@ sub run { # upload the config so we can check it's OK upload_logs "/etc/mock/openqa.cfg"; # now check out the kickstarts + # FIXME using HTTP 1.1 seems to avoid some weird hangs we're + # seeing on pagure.io lately as of 2023/07: + # https://pagure.io/fedora-infrastructure/issue/11426 + assert_script_run 'git config --global http.version HTTP/1.1'; assert_script_run 'git clone https://pagure.io/fedora-kickstarts.git'; assert_script_run 'cd fedora-kickstarts'; assert_script_run "git checkout ${branch}"; diff --git a/tests/_ostree_build.pm b/tests/_ostree_build.pm index e853584e..a373500a 100644 --- a/tests/_ostree_build.pm +++ b/tests/_ostree_build.pm @@ -36,6 +36,10 @@ sub run { assert_script_run "setenforce Permissive"; # install the tools we need assert_script_run "dnf -y install git lorax flatpak ostree rpm-ostree dbus-daemon moreutils", 300; + # FIXME using HTTP 1.1 seems to avoid some weird hangs we're + # seeing on pagure.io lately as of 2023/07: + # https://pagure.io/fedora-infrastructure/issue/11426 + assert_script_run 'git config --global http.version HTTP/1.1'; # now check out workstation-ostree-config assert_script_run 'git clone https://pagure.io/workstation-ostree-config.git'; assert_script_run 'pushd workstation-ostree-config';