1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00
os-autoinst-distri-fedora/lib
Adam Williamson 56936df7a5 Update live install tests: handle awkward install ordering
There's this awkward path for the live image install tests on
updates. We run the 'are the correct versions of all the packages
installed' check on these tests to ensure the right versions
actually made it onto the live image. So we don't run
`dnf -y update` at the end of repo_setup_updates on that path,
because if we did that, even if the packages on the live image
were old, we'd update them there and hide the problem.

However, this causes a bit of an ordering issue, because in
order to set up the advisory repo, we need to install a few
packages. What if the update under test includes one of those
packages, or a dependency that wasn't already installed? In
that case, we wind up with the older stable version of the
package (because obviously we can't install the newer version
from the advisory repo *before we've set up the advisory repo*),
don't update it later, and so the 'correct version' check at
the end of the test fails. See:
https://openqa.fedoraproject.org/tests/1778707 for a case of
this happening with a python-cryptography update.

Up till now I was trying to handle this by just updating the
specific packages we install, but that doesn't account for
*dependencies* of them. I looked down the path of trying to
generate a list of all those dependencies and update all of
them but it looks a bit mad. So instead let's try this. On that
specific path, we'll generate the "all installed packages" list
*before* we run repo_setup, so it just doesn't include anything
that gets installed during repo_setup. The implementation is a
bit icky but not too horrible.

We *could* just *always* generate the all installed packages
list earlier, but then that would mean we *wouldn't* catch dep
issues in this kind of package on the other test paths, whereas
currently we do. I don't want to lose that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-02-22 14:54:18 -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 Update live install tests: handle awkward install ordering 2023-02-22 14:54:18 -08:00