mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-25 07:13:09 +00:00
Protect against long load times in Cockpit
We seem to be hitting very long loads on the Services and Logs pages of Cockpit in recent Rawhide testing especially. As I don't have time to deeply debug this at the moment, let's just give it longer (but make it a soft failure when it takes longer than expected). Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
5d3fc244eb
commit
20ef09d4f4
@ -29,12 +29,21 @@ sub run {
|
|||||||
record_soft_failure "Log refresh took a long time";
|
record_soft_failure "Log refresh took a long time";
|
||||||
}
|
}
|
||||||
# check we get to the appropriate detail screen
|
# check we get to the appropriate detail screen
|
||||||
assert_screen "cockpit_logs_detail";
|
unless (check_screen "cockpit_logs_detail", 30) {
|
||||||
|
assert_screen "cockpit_logs_detail", 60;
|
||||||
|
record_soft_failure "Accessing log entry took a long time";
|
||||||
|
}
|
||||||
# go to the services screen
|
# go to the services screen
|
||||||
assert_and_click "cockpit_services";
|
assert_and_click "cockpit_services";
|
||||||
wait_still_screen(timeout => 90, stilltime => 5);
|
wait_still_screen(timeout => 90, stilltime => 5);
|
||||||
# click on an entry
|
# click on an entry
|
||||||
assert_and_click "cockpit_services_entry";
|
if (check_screen "cockpit_services_entry") {
|
||||||
|
click_lastmatch;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
assert_and_click "cockpit_services_entry";
|
||||||
|
record_soft_failure "Loading services screen took a long time";
|
||||||
|
}
|
||||||
# check we get to the appropriate detail screen...but this click
|
# check we get to the appropriate detail screen...but this click
|
||||||
# often gets lost for some reason, so retry it once
|
# often gets lost for some reason, so retry it once
|
||||||
assert_and_click "cockpit_services_entry" unless (check_screen "cockpit_services_detail", 10);
|
assert_and_click "cockpit_services_entry" unless (check_screen "cockpit_services_detail", 10);
|
||||||
|
Loading…
Reference in New Issue
Block a user