Skip to content

Commit

Permalink
fmf: Hack around Testing Farm's tag-repository priority
Browse files Browse the repository at this point in the history
TF runs add the Fedora tag repository with `priority=9`. This breaks
upstream reverse dependency tests, as that repository will then win over
our "main builds" COPR and thus run tests against a mismatching
cockpit-podman rpm.

Counter the hack by dropping the tag repo priority and reinstalling
cockpit-podman.
  • Loading branch information
martinpitt authored and jelly committed Sep 15, 2023
1 parent 315448d commit 5ab52df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/browser/browser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ fi
# HACK: ensure that critical components are up to date: https://github.com/psss/tmt/issues/682
dnf update -y podman crun conmon criu

# HACK: TF prioritizes Fedora tag repo over all others, in particular our daily COPR for revdep tests
# This is bad -- let the highest version win instead!
# https://gitlab.com/testing-farm/infrastructure/-/blob/testing-farm/ranch/public/citool-config/guest-setup/pre-artifact-installation/templates/tag.repo.j2?ref_type=heads
for f in $(grep -l -r 'testing-farm-tag-repository' /etc/yum.repos.d); do
sed -i '/priority/d' "$f"
done
dnf update -y cockpit-podman

# Show critical package versions
rpm -q runc crun podman criu kernel-core selinux-policy cockpit-podman cockpit-bridge || true

Expand Down

0 comments on commit 5ab52df

Please sign in to comment.