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 mismatching
cockpit-* rpms.

Counter the hack by dropping the tag repo priority and
upgrading all cockpit packages.
  • Loading branch information
martinpitt committed Oct 30, 2023
1 parent 0546069 commit 4be0329
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 @@ -48,6 +48,14 @@ if grep -q 'ID=.*rhel' /etc/os-release; then
dnf install -y kpatch kpatch-dnf
fi

# 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*'

# RHEL 8 does not build cockpit-tests; when dropping RHEL 8 support, move to test/browser/main.fmf
if [ "$PLAN" = basic ] && ! grep -q el8 /etc/os-release; then
dnf install -y cockpit-tests
Expand Down

0 comments on commit 4be0329

Please sign in to comment.