CI: Install EPEL packages first

For unknown reason, packages from required_packages were installed in seemingly arbitrary order.

This lead to errors like:

    No match for argument: tox

As tox was trying to be installed before epel.

Or:

    Problem: conflicting requests
      - nothing provides epel-release = 9-10.el9 needed by epel-next-release-9-10.el9.noarch from @commandline

As epel-next-release was trying to be installed before epel.

Let's prefix everything with epel installation. One by one, in the required order.

Related: RHEL-167919, RHEL-168161
This commit is contained in:
Miro Hrončok 2026-04-21 18:06:09 +02:00
parent f201478fdf
commit 49157f095c

View File

@ -6,6 +6,12 @@
- dnf:
name: "*"
state: latest
- dnf:
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm"
state: installed
- dnf:
name: "https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm"
state: installed
- hosts: localhost
roles:
@ -41,8 +47,6 @@
dir: python/marshalparser
run: VERSION=3.9 SAMPLE=10 test_marshalparser_compatibility.sh
required_packages:
- 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm'
- 'https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm'
- gcc # for extension building in venv and selftest
- gdb # for test_gdb
- python3.9 # the test subject