fedora-ci / mini-tps

Installability test for RPMs
GNU General Public License v2.0
1 stars 8 forks source link

Workaround for yum v3.4.3 downgrade test #66

Closed dhodovsk closed 2 months ago

dhodovsk commented 2 months ago

RHEL 7 has yum v3.4.3. As far as I understood, a downgrade on that version is failing to successfully resolve dependencies available in multiple repos by itself, which results in an error, e.g:

Error: Package: freeradius-utils-3.0.13-15.el7.x86_64 (rhel-opt)
           Requires: freeradius = 3.0.13-15.el7
           Installed: freeradius-3.0.13-15.el7_9.1.x86_64 (@brew-62705510)
               freeradius = 3.0.13-15.el7_9.1
           Available: freeradius-3.0.13-15.el7.x86_64 (rhel)
               freeradius = 3.0.13-15.el7

This MR workarounds the issue by adding list of all installed content from the tested task repo to the downgrade command.

jankaluza commented 2 months ago

I'm actually checking that there is no way to fully test it since the test packages are not built for epel7. Have you tried this code manually on rhel-7, or is it just a guess for now?

dhodovsk commented 2 months ago

I debugged and tried the command on centos:7 (before it EOLed) and then again on a random rcm rhel 7 image.

jpopelka commented 2 months ago

Can you also bump the Release in the spec file?