Add beakerlib upgrade task for the RedHat ranch (incl. RHEL-10)

Problem

RHEL guests on the RedHat ranch ship an old beakerlib from the base compose, e.g. beakerlib-1.31.4-1.el10 on RHEL-10.2-Nightly. Tests can't use newer features such as rlImport --all with nick and name (upstream PR #199).

The pre-artifact-installation guest setup never upgrades beakerlib. EPEL is enabled on this ranch only for CentOS, and the public ranch's COPR workaround only runs on CentOS < 10.

Fix

Add workaround-beakerlib.yaml and include it from entrypoint.yaml after enable-epel.yaml. On RHEL 8 and newer it:

  • drops the packit beakerlib-beakerlib-master COPR .repo file for the running major version (epel-{{ ansible_distribution_major_version }}, an epel-10 build exists),
  • installs beakerlib with state: latest.

It skips auto-osbuild, pfmt, composer-api, hardened and image-mode images, like the other tasks in the entrypoint.

This moves infrastructure!1493 (closed) here, since production citool-config left the infrastructure repo in 4fe83357 (Remove production citool-config). The matching library.beakerlib role change is in profiles!109.

Ref: https://redhat.atlassian.net/browse/TFT-4721

Assisted-by: Claude Code

Edited by Miroslav Vadkerti

Merge request reports

Loading
Loading