Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fmf: Hack around Testing Farm's tag-repository priority #19547

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion test/browser/browser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ chmod a+w "$LOGS"
# show some system info
nproc
free -h
rpm -q cockpit-system
rpm -qa | grep cockpit

# install firefox (available everywhere in Fedora and RHEL)
# we don't need the H.264 codec, and it is sometimes not available (rhbz#2005760)
Expand Down 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