From 77ed0918a7e419baf99527b5b73c9ee0a56c8767 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Mar 28 2020 18:55:10 +0000 Subject: Remove Fedora repository fastmirror selection Fast mirror selection somehow stopped working. If disabled, the difference is around 20 seconds for the 'Prepare build environment' step (2:49 versus 3:09), so while we are saving, currently it is not a lot. Also remove explicit nodejs stream choice, it seems to be not needed anymore (again). Signed-off-by: Alexander Bokovoy Reviewed-By: Armando Neto --- diff --git a/ipatests/azure/templates/prepare-build-fedora.yml b/ipatests/azure/templates/prepare-build-fedora.yml index 0feff88..b628488 100644 --- a/ipatests/azure/templates/prepare-build-fedora.yml +++ b/ipatests/azure/templates/prepare-build-fedora.yml @@ -2,18 +2,6 @@ steps: - script: | set -e sudo rm -rf /var/cache/dnf/* - echo "dnf.conf: enable fastestmirror, use 8 download workers, lower timeout to fail faster, and add more retries" - sudo tee -a /etc/dnf/dnf.conf < /dev/null - fastestmirror = True - max_parallel_downloads = 8 - timeout = 8 - retries = 20 - EOF - echo "Fedora mirror metalink content:" - for metalink in $(sudo dnf repolist -v |grep Repo-metalink | awk '{print $2}' ) ; do echo '###############' ; echo '####' ; echo $metalink ; echo '####' ; curl $metalink ; done - echo "Fastestmirror results:" - sudo cat /var/cache/dnf/fastestmirror.cache - sudo dnf -y module enable nodejs:12 sudo dnf makecache || : echo "Installing base development environment" sudo dnf install -y \ @@ -29,5 +17,6 @@ steps: python3-pyyaml \ echo "Installing FreeIPA development dependencies" + sudo dnf builddep -y freeipa sudo dnf builddep -y --skip-broken -D "with_wheels 1" -D "with_lint 1" -D "with_doc 1" --spec freeipa.spec.in --best --allowerasing --setopt=install_weak_deps=False displayName: Prepare build environment