Compare commits

..

4 Commits

Author SHA1 Message Date
Adam Williamson e3da59b33a Apply some debugging hacks for the periodic failure bug
This is all in aid of trying to figure out what's going on in
https://pagure.io/fedora-qa/os-autoinst-distri-fedora/pull-request/312#comment-199540
 - sometimes the upgrade process just does not work, it seems
like the prepared update file gets wiped for some reason. This
is all trying to figure out exactly when that happens and
whether it's because we're running out of disk space.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-04-04 18:13:03 -07:00
Lukas Ruzicka 6b5a562783 Add the graphical upgrade tests.
This PR builds on some elements of the current upgrade process,
such as upgrade_boot, upgrade_preinstall, upgrade_postinstall, but
replaces the upgrade_run with graphical_upgrade_run to use graphical
methods to upgrade the system.
This would not be possible without necessary settings, that are
performed by graphical_upgrade_prerequisites.
Works for both Gnome and KDE.
2024-04-04 18:07:04 -07:00
Adam Williamson 5701d1a5a5 Try and robustify menu_launch_type a bit
The mistypes on KDE are bugging me. Let's see if this - mainly
the wait_screen_change, the other just seems like a logical
tweak - helps at all.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-04-04 11:19:16 -07:00
Lukáš Růžička bde855b343 Add needles 2024-04-03 09:19:30 +02:00
74 changed files with 548 additions and 2 deletions

View File

@ -168,6 +168,17 @@ sub post_fail_hook {
}
}
# TEST TEST FOR DEBUGGING ONLY
if (get_var("GUI_UPGRADE")) {
script_run "df -h";
script_run "ls -l /var/lib/PackageKit";
script_run "ls -l /var/lib/PackageKit/prepared-upgrade";
$self->root_console(tty => 4);
send_key "ctrl-c";
upload_logs "/tmp/pk.log", failok => 1;
}
# END DEBUGGING
}
1;

View File

@ -1356,12 +1356,12 @@ sub menu_launch_type {
diag("Moving the mouse away from the launcher.");
mouse_set(1, 1);
}
send_key 'super';
wait_screen_change { send_key 'super'; };
# srsly KDE y u so slo
wait_still_screen 3;
type_very_safely $app;
# Wait for KDE to place focus correctly.
sleep 2;
wait_still_screen 2;
send_key 'ret';
wait_still_screen(3);
}

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 352,
"ypos": 216,
"width": 112,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_about_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 216,
"ypos": 113,
"width": 22,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_add_popup"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 18,
"ypos": 205,
"width": 147,
"height": 16,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_annotation_added"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 681,
"ypos": 589,
"width": 35,
"height": 48,
"type": "match",
"match": 90
}
],
"properties": [],
"tags": [
"okular_annotation_placed"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 671,
"ypos": 582,
"width": 46,
"height": 51,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_annotation_removed"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 534,
"ypos": 272,
"width": 53,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_button_credits"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 781,
"ypos": 614,
"width": 50,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_button_save"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 125,
"ypos": 74,
"width": 76,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_change_zoom"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 993,
"ypos": 118,
"width": 17,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_close_annotation"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 205,
"ypos": 435,
"width": 105,
"height": 42,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_content_rotated_once"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 610,
"ypos": 583,
"width": 85,
"height": 33,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_content_rotated_twice"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 355,
"ypos": 339,
"width": 88,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_credits_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 678,
"ypos": 358,
"width": 159,
"height": 59,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_document_zoom_200"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 451,
"ypos": 709,
"width": 101,
"height": 26,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_dual_mode"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 244,
"ypos": 134,
"width": 102,
"height": 16,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_facing_pages"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 448,
"ypos": 8,
"width": 127,
"height": 15,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_file_opened"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 262,
"ypos": 226,
"width": 65,
"height": 16,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_file_select_pdf"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 388,
"ypos": 171,
"width": 167,
"height": 16,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_help_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 416,
"ypos": 244,
"width": 89,
"height": 16,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_menu_about"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 31,
"ypos": 336,
"width": 68,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_menu_properties"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 15,
"ypos": 204,
"width": 79,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_menu_saveas"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 47,
"ypos": 37,
"width": 35,
"height": 15,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_menu_view"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 359,
"ypos": 115,
"width": 73,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_navi_page_one"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 358,
"ypos": 320,
"width": 96,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_navi_page_two"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 311,
"ypos": 516,
"width": 101,
"height": 16,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_open_file_dialog"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 443,
"ypos": 317,
"width": 120,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_presentation_dialogue"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 597,
"ypos": 472,
"width": 43,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_presentation_ok"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 427,
"ypos": 422,
"width": 110,
"height": 16,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_properties_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 710,
"ypos": 673,
"width": 62,
"height": 15,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_remove_annotation"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 335,
"ypos": 396,
"width": 46,
"height": 54,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_runs"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 553,
"ypos": 589,
"width": 53,
"height": 29,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_search_found"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 651,
"ypos": 608,
"width": 55,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_select_annotation_place"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 97,
"ypos": 321,
"width": 73,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_submenu_orientation"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 349,
"ypos": 322,
"width": 75,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_submenu_rotate"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 238,
"ypos": 69,
"width": 87,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"okular_view_mode"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -64,6 +64,9 @@ sub run {
record_soft_failure "Modular repos present! Upgrade will fail, so removing";
assert_script_run "rm -f /etc/yum.repos.d/*modul*";
}
# TEST TEST FOR DEBUGGING ONLY
assert_script_run 'sed -i -e "s,libexec/packagekitd,libexec/packagekitd --verbose,g" /usr/lib/systemd/system/packagekit.service';
# END DEBUGGING
# Switch to a user account
enter_cmd("su -l $user");
# Navigate to the version file directory

View File

@ -41,6 +41,12 @@ sub run {
}
# Let's check, that the desktop is shown.
check_desktop();
# TEST TEST FOR DEBUGGING ONLY
$self->root_console(tty => 4);
type_string "while true; do date -u >> /tmp/pk.log; df -h >> /tmp/pk.log; ls -l /var/lib/PackageKit >> /tmp/pk.log 2>&1; sleep 1; done\n";
$self->root_console(tty => 3);
desktop_vt;
# END DEBUGGING
# Start the package manager application depending
# on which DE we are on.