rpm-software-management / librepo

A library providing C and Python (libcURL like) API for downloading packages and linux repository metadata in rpm-md format
http://rpm-software-management.github.io/librepo/
GNU Lesser General Public License v2.1
74 stars 90 forks source link

Tests for rhel-8.10 branch pull requests fail because CI is run in Fedora 38 #291

Open ppisar opened 9 months ago

ppisar commented 9 months ago

I noticed and pull requests against rhel-8.10 branch are tested in Fedora 38 environment instead of RHEL 8 https://github.com/rpm-software-management/librepo/actions/runs/6560240882/job/17818030871?pr=289. Then the tests always fails because the built packages cannot be installed because a system librepo has a far higher NEVRA then the test build:

STEP 11/15: RUN rm /opt/ci/rpms/*-{devel,debuginfo,debugsource}*.rpm;     if [ -n "$(find /opt/ci/rpms/ -maxdepth 1 -name '*.rpm' -print -quit)" ]; then         dnf -y install /opt/ci/rpms/*.rpm --disableplugin=local;     fi
No matches found for the following disable plugin patterns: local
Last metadata expiration check: 0:01:03 ago on Wed Oct 18 11:53:10 2023.
Error: 
 Problem 1: package libdnf-0.72.0-20231018113256.0.g908dba63.fc38.x86_64 from @commandline requires librepo(x86-64) >= 1.15.0, but none of the providers can be installed
  - cannot install both librepo-1.14.2-20231018113252.7.gbb1ab8c.fc38.x86_64 from @commandline and librepo-1.16.0-20231018004717.5.ge206603.fc38.x86_64 from @System

Either reconfigure CI to test rhel-8.* PRs in RHEL-8 environment, or disable them.

ppisar commented 9 months ago

The same happens with pull requests against rhel-9.4 branch.

kontura commented 9 months ago

Just for reference I once made a PR to disable the CI (on the dnf component since the problem is not specific just to librepo): https://github.com/rpm-software-management/dnf/pull/1831 (it also contains one unrelated commit).