From 76613bd4a7407b984ce94f1b3e90120248d18703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 8 Jan 2021 14:50:15 +0100 Subject: [PATCH] CI mock: Attempt to retry package manager action This should be more robust when hitting: Errors during downloading metadata for repository 'local': - Status code: 404 for https://kojipkgs.fedoraproject.org/repos/rawhide/latest/x86_64/repodata/...-primary.xml.gz - Status code: 404 for https://kojipkgs.fedoraproject.org/repos/rawhide/latest/x86_64/repodata/...-filelists.xml.gz --- tests/mocktest.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/mocktest.sh b/tests/mocktest.sh index 5062766..8bf3c59 100755 --- a/tests/mocktest.sh +++ b/tests/mocktest.sh @@ -11,6 +11,9 @@ if [ ! -f $config ]; then original="/etc/mock/fedora-${fedora}-x86_64.cfg" cp $original $config + echo -e '\n\n' >> $config + echo -e 'config_opts["package_manager_max_attempts"] = 5' >> $config + echo -e 'config_opts["package_manager_attempt_delay"] = 20' >> $config echo -e '\n\nconfig_opts[f"{config_opts.package_manager}.conf"] += """' >> $config # The zuul CI has zuul-build.repo