1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-12-20 07:25:59 +00:00
Commit Graph

581 Commits

Author SHA1 Message Date
Adam Williamson
3bb03d3fe8 select_rescue_mode: wait a bit longer for bootloader
It can take quite a while to show up with UEFI firmware on aarch64.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-11-21 15:30:21 -08:00
Adam Williamson
ad8a1243df Use type_safely not type_very_safely for encryption passphrase
Thanks to @jlinton , who worked out that the repeated inputs on
aarch64 seem to be caused by the relatively lengthy delay on
key down that we get when typing very slowly. Typing a bit faster
is actually more reliable in this case. I'm working on an
os-autoinst tweak that would avoid the lengthy key holds when
typing very slowly, which would allow us to revert this.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-11-21 10:40:23 -08:00
Adam Williamson
b0bc6025de Enable remote_desktop tests more widely, robustify and refactor
No reason these should only be run on the x86_64 live. Also
refactor the remote_desktop_client test to share the code for
opening a connection in GNOME Connections with the RDP install
test. The shared code is a combination of the two which should be
more robust than the previous remote_desktop_client version, which
was relying far too much on timings working out. This caused it to
fail often on x86_64 as well as on aarch64.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-11-19 16:55:14 -08:00
Adam Williamson
84bd4ae19b Tweak loadkeys stuff again
Extending the wait to 3 seconds in the utils.pm function probably
wasn't necessary; the problem is we were reimplementing it in
_do_install_and_reboot but without the wait. Let's revert the
wait to 3 seconds and use the function.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-11-12 16:14:23 -08:00
Adam Williamson
7cbdf4efb1 Longer wait for console_loadkeys_us
Seems to be taking longer than 3 seconds on French installs in
Rawhide, e.g.
https://openqa.fedoraproject.org/tests/3947220#step/_do_install_and_reboot/22

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-11-10 14:41:19 -08:00
Adam Williamson
4415c3ff37 drop workarounds that have gone stable or been superseded
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-10-30 12:21:03 -07:00
Adam Williamson
ad74a52e0b tweak check_software_start to wait longer for ignore
10 seconds isn't enough, the aarch64 upgrade tests often fail
because they're still Refreshing Data after 10 seconds, then
the ignore button appears but we already quit looking for it.

Let's wait 150 seconds for *either* the ignore button *or* the
UI to appear, if the UI appears we're done instantly, if the
ignore button appears, click it and wait for the UI.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-10-30 12:16:16 -07:00
Lukáš Růžička
6154f0ccb8 Create tests for remote desktop connections.
This adds a test for remote connection. It consists of a server part
in which Gnome RDP connection is set up, enabled, and the server is run,
and the client part that uses Connections as a client to connect to the
server.
The test is considered successful when the connection is established
and the user has logged into the system.

Fixes: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/333
2025-10-16 17:33:57 -07:00
Adam Williamson
2911c7d32b Revert "Run updvercheck.py in toolbox on atomic (CANNED)"
This reverts commit 8a657904d0.
We already had a tweak in _ostree_build to put python3-rpm in the
ostree; the real problem is that had broken with changes to
workstation-ostree-config. The next commit solves it properly.
2025-10-15 09:31:08 -07:00
Adam Williamson
8a657904d0 Run updvercheck.py in toolbox on atomic (CANNED)
This started failing in install_default_update_ostree
_advisory_post because the ostree no longer has python3-rpm baked
in, by the looks of it. Moving the execution of updvercheck.py
into a toolbox container *should* fix it with no undesirable side
effects, I hope. It looks like /tmp should be shared between the
host and the container so the file location should be OK.

The use of `toolbox run --` as a wrapper instead of interactive
toolbox entry/exit was suggested by Gemini PR review:
https://github.com/AdamWill/os-autoinst-distri-fedora-ai-test/pull/26#discussion_r2431461670

Signed-off-by: Adam Williamson <awilliam@redhat.com>
Assisted-by: Google Gemini Code Assist
2025-10-15 00:58:18 -07:00
Adam Williamson
0b112a5b47 extend _graphical_input to also test non-switched keyboard layout
We are missing a check that the expected keyboard layout is used
at the desktop, for non-switched layouts (e.g. French). This is
actually broken for Workstation live installs at present, so we
really ought to be testing it. Along the way, let's clean up the
conditionals a bit, and let's do the actual input testing at a
console not the overview, since we want to do it on KDE as well
as GNOME now, and KDE's kicker menu is a pain to type in.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-10-10 18:05:49 -07:00
Adam Williamson
125f8f11e9 Add a French install test on Workstation and KDE live (with webUI)
Also add keyboard layout selection handling for webUI, natively
for the KDE live, via GNOME settings for Workstation live.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-10-10 18:05:45 -07:00
Adam Williamson
8ef714febf Add anaconda scratch with reboot fix as workaround for Rawhide
The bug causes a crash at boot on Silverblue installer, we need
the fix to stop all Rawhide Silverblue tests failing.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-10-09 12:32:49 -07:00
Adam Williamson
547cacb7a0 Replace FreeIPA scratch build overrides with updates
And remove the Rawhide one as that's stable already.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-10-09 12:32:16 -07:00
Adam Williamson
ecae6fb851 Add FreeIPA bump rebuilds to workarounds to fix upgrade tests
FreeIPA team bumped the F41 NVR past the F42 one, so now upgrade
tests from F41 to F42 are broken. To workaround this we need
bumped rebuilds for F42, F43 and F44, because if only do F42 the
problem moves to F42->F43 upgrades, etc.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-10-03 13:42:07 -07:00
Adam Williamson
783cdb6e03 Add an rmdepcheck test for updates (WIP)
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-09-22 12:22:23 -07:00
Adam Williamson
6a41721d5d g-i-s: also expect no 'software' page on Silverblue F43
The change is now landed on f43 workstation-ostree-config too.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-09-22 12:21:51 -07:00
Adam Williamson
a7fa13f2b0 g-i-s: don't expect 'software' on Rawhide Silverblue
See https://pagure.io/workstation-ostree-config/pull-request/682

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-09-20 23:02:04 -07:00
Adam Williamson
94d36a1e13 Retry more dnf commands
I'm seeing more test failures due to
https://github.com/rpm-software-management/dnf5/issues/2435 .
This retries more common dnf commands to try and workaround the
problem.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-09-16 10:27:37 -07:00
Adam Williamson
6d36010207 setup_repos: retry createrepo_c install up to 4 times
See https://github.com/rpm-software-management/dnf5/issues/2435 .
Lately this is sometimes failing because something else holds a
lock on the RPM database. To work around that, let's try again a
few times if it fails, with a bit of a wait.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-09-12 17:42:57 -07:00
Adam Williamson
4ddc3450a3 gnome_initial_setup: adjust to time zone active field change in 49
In GNOME 49 RC, the Time Zone page has been changed so the search
box is active by default. Previously we had to press tab to
activate it. We need to keep working with both, so unfortunately
that means adding a needle :/

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-09-05 09:54:50 -07:00
Adam Williamson
b99b0e3ec1 Drop workarounds (one went stable, we untagged libiscsi)
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-09-04 17:11:26 -07:00
Adam Williamson
ba6b6200a6 Add dep issue fix builds as workarounds for F44
Two different dep issues started breaking tests today -
a libiscsi soname bump broke deps in qemu and libvirt, and a
gnome-shell-extension-background-logo update had an invalid dep.
This adds fixes for all three as workarounds so I can get the
tests of each to pass, and other tests to pass while these are
going through gating.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-09-04 15:28:01 -07:00
Adam Williamson
a3dd914d2d sigh, brackets
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-08-25 15:02:52 -07:00
Adam Williamson
0f4e91c993 menu_launch_type: don't wait_still_screen for animated apps
This is intended for things like system monitor where there's
constant motion on the app screen so we can't wait_still_screen.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-08-25 15:02:03 -07:00
Adam Williamson
81e5837fda disable gpgcheck on openh264 repo for rawhide
Until https://pagure.io/releng/issue/12880 is addressed.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-08-13 10:00:35 +02:00
Adam Williamson
9af87e9e05 workarounds: drop 40, add 44
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-08-13 09:12:09 +02:00
Adam Williamson
859f079333 Use longer timeout for update download if openjdk is in it
Several tests on openjdk updates timed out on download...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-07-22 18:14:54 -07:00
Adam Williamson
ef1dd350d5 Drop no-longer-needed workaround
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-07-22 18:08:18 -07:00
Adam Williamson
f29fdadcbc Add FEDORA-2025-0a4cc22f49 as a workaround
It's needed to get workstation tests to pass, as the earlier
xen/qemu update broke qemu's deps and it's installed by default
in Workstation. Remove when the update goes stable soon.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-07-17 16:50:04 -07:00
Adam Williamson
ec37fbae4d Drop versionlock stuff
We have a newer fixed kernel pushed stable now, so this should
no longer be needed.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-07-12 13:37:27 -07:00
Adam Williamson
0ef1d5710e More versionlocking...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-07-11 23:39:36 -07:00
Adam Williamson
78ebfbb3ec sigh, also versionlock modules-extra
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-07-11 23:36:28 -07:00
Adam Williamson
cdaab4db5e OK, third try's the charm: versionlock to the rescue!
Let's lock out the bad bad kernel we hate.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-07-11 23:18:07 -07:00
Adam Williamson
9896fdd58d Actually, let's try using distro-sync for FEDORA-2025-14272e396a
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-07-11 22:45:49 -07:00
Lukáš Růžička
f58778ef7f Pass _boot_to_anaconda and _do_install on KDE webUI
This handles differences in webUI's appearance on the KDE live,
compared to the GNOME live which suppresses keyboard layout
selection, user creation and root password creation. By Lukas,
modified by Adam.
2025-07-10 00:43:24 -07:00
Adam Williamson
27b2859339 Upgrades: don't install target release packages in repo_setup
F42 to F43 upgrades suddenly started failing, and I think this
is why - we actually wind up installing packages from the target
release in setup_repos (called from repo_setup), because we set
up the buildroot repo then run some dnf commands. Let's tweak
that so for upgrade tests we create the buildroot repo disabled
at first, then enable it in upgrade_run.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-07-10 00:18:54 -07:00
Adam Williamson
5c5cfae706 Drop workaround that went stable months ago
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-07-10 00:01:15 -07:00
Adam Williamson
ad3796c9db side tag package lists: get binary not source package names
Whoops, this works much better.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-06-11 08:56:23 +02:00
Adam Williamson
3fd367938b Make updatepkgs and updatepkgnames more precise for side tags
The way side tags work, every package in the distro is in the side
tag repo, so updatepkgs and updatepkgnames end up huge. To fix
this, we'll use a koji query for all packages that are actually in
the side tag to generate updatepkgnames.txt, and then use that to
filter the dnf command to generate updatepkgs.txt.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-06-10 15:57:11 +02:00
Adam Williamson
62dabf3894 Fix the package count in advisory_check_nonmatching_packages
This doesn't work because the output has the filename in it. We
need just the line count. catting the file to wc achieves that
as now it doesn't know the file name.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-06-07 08:15:35 -07:00
Adam Williamson
e65c23b6f2 Update shortcut to launch desktop settings in KDE 6.3.90
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-05-26 10:16:22 -07:00
Adam Williamson
613324a755 Add libvirt with zfs obsoletion fix as F43 workaround 2025-05-09 00:19:20 -07:00
Adam Williamson
0887eece36 Drop already-stable workarounds
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-05-09 00:19:01 -07:00
Lukáš Růžička
0190f38677 Use the new features of menu_launch_type in code.
We have enhanced the menu_launch_type to allow for
start checking and maximizing applications.
This PR uses the new functions wherever it seems
logical.
If special logic was used for certain cases,
we have not touched these to preserve the
exact behaviour.

The crash workaround for the Fonts flatpak is dropped because it
no longer seems to be needed with the latest version of the
flatpak, and dropping it simplifies this migration.

Fixes: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/358
2025-04-25 14:40:54 -07:00
Adam Williamson
4a7e0721d4 Add FEDORA-2025-c25f31b10b as a workaround for F43
alsa-utils that requires this alsa-lib is already stable, so we
need this or all tests fail.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-04-15 07:50:01 -07:00
Adam Williamson
394249079f Stop wiping the openh264 repo
This caused problems (particularly with the more obscure package
install paths like cockpit and realmd) before, but I don't really
like removing it, as it differs from real-world usage. Tests are
currently failing because of a bug in this repo wiping - in
upgrade_preinstall, we should wipe the file again after the
dnf -y update --refresh call, in case that reinstalls it - but
instead of fixing that, let's try just leaving the file alone.

The risk here is that we run into problems when the repo doesn't
exist, again. In theory we should not because it has
skip_if_unavailable=True , and everything *should* respect that.
But if it does turn out to still be a problem we'll have to
revert this and fix upgrade_preinstall.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-04-03 12:52:30 -07:00
Adam Williamson
c08f08cc99 update tests: do main update with --best and fail if it fails
We currently use script_run (not assert_script_run) for the
catch-all update we run at the start of the test, and don't use
--best. This means that if a dependency issue happens at this
point, we don't catch it yet, we only catch it in _advisory_post.

By using assert_script_run and --best, we can fail on dep issues
at this point. We have to keep the _advisory_post check to catch
dep issues that crop up *later* in the test, including when
things like Cockpit or GNOME Software install updates and we
can't force them to use --best logic. But we can at least catch
*most* of them earlier this way.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-04-02 17:13:19 -07:00
Adam Williamson
eda3f9b4b6 Move testdata tarball into this repo
Again to reduce direct usage of pagure.io, move the testdata
tarball (used by download_testdata) directly into this repo. For
now it includes repository.tar.gz, which is silly, but I'll send
a follow-up PR to openqa_testdata to drop that file if this works
out. This includes a script to produce the tarball from the base
repository, and adjusts download_testdata to get the tarball from
autoinst_url and update its unpacking logic (as this version of
the tarball has a top-level directory).

Note the tarball in this commit is actually from the branch that
backs https://pagure.io/fedora-qa/openqa_testdata/pull-request/1
to reduce size.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-03-17 17:17:57 -07:00
Adam Williamson
93ea483979 Reduce pagure.io usage (WIP)
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-03-17 10:39:33 -07:00