os-autoinst-distri-fedora/lib
Adam Williamson 06bfd2d2ae Make the update non-matching package check smarter
With Rawhide updates, we quite often run into a situation where
a test runs after a *later* version of the package has already
gone stable. This even happens for stable releases too, though
less often. The current shell-based check just always fails on
this case, but it's usually OK, and manually marking every case
like this with an "it's OK!" comment gets tiring. Instead, let's
use a smarter Python script to do the check. We compare the EVR
of all installed update packages with the EVR of the package
from the update. If it's the same, fine. If the installed package
is lower-versioned, that's always an error, and we fail. If the
installed package is higher-versioned, we check whether the
update already went stable. If it did, then we soft fail, because
probably nothing can go wrong at this point (this is the usual
Rawhide case). If the update did not yet go stable, we still
hard fail, because something can go wrong in this case: if the
update *now* goes stable, the older version from the update may
be tagged over the newer version the test got (presumably from
current stable).

If anything goes wrong with the Bodhi check, or the test is
running on a task not an advisory, we treat both cases as fatal.

The script also gives easier-to-understand output than the old
approach, which should be a bonus.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-01-31 10:14:45 -08:00
..
anaconda.pm Drop all handling of MODULAR 2022-12-15 11:10:40 -08:00
anacondatest.pm Add a perltidy check and apply it to the entire codebase 2022-07-28 14:38:38 -07:00
bugzilla.pm Add a perltidy check and apply it to the entire codebase 2022-07-28 14:38:38 -07:00
cockpit.pm Revert "Try and get more detailed Firefox logs from startx" 2022-11-25 12:13:08 -08:00
fedoradistribution.pm Add a perltidy check and apply it to the entire codebase 2022-07-28 14:38:38 -07:00
freeipa.pm Revert "Try and get more detailed Firefox logs from startx" 2022-11-25 12:13:08 -08:00
installedtest.pm _post_fail_hook: only do advisory package checks when appropriate 2022-12-14 08:47:46 -08:00
modularity.pm Add a perltidy check and apply it to the entire codebase 2022-07-28 14:38:38 -07:00
packagetest.pm Replace remaining wait_idles with sleeps 2020-01-02 17:44:45 -08:00
tapnet.pm tapnet: don't double-declare @forwards 2022-05-26 14:49:57 -07:00
utils.pm Make the update non-matching package check smarter 2023-01-31 10:14:45 -08:00