action #63346
closed
[tools][sporadic] false-positive match on "screenlock-xscreensaver-20180821" when instead a console prompt is shown
Added by okurz about 4 years ago.
Updated about 4 years ago.
Category:
Bugs in existing tests
Target version:
SUSE QA - Milestone 30
Description
Observation¶
openQA test in scenario opensuse-Tumbleweed-NET-x86_64-zdup_tw2twnext_gnome@64bit fails in
updates_packagekit_gpk as a consequence of false-match on "screenlock-xscreensaver-20180821".
Tasks¶
- The previous module uses the root console. updates_packagekit_gpk is not able to switch to x11/Wayland session (x11 console).
select_console 'x11', await_console => 0;
Suggestion¶
- Try an scenario that just boots to desktop and tries to select all the console in a loop several times (100?) so that we are able to reproduce the issue and improve the console switching.
Reproducible¶
Often, not always, different scenarios.
Expected result¶
There should be no match of "screenlock-xscreensaver" on a terminal screen.
Suggestions¶
- Make needle more strict, e.g. increase match level or reduce size of matching boxes
- Crosscheck where needle is used, e.g. using openqa.opensuse.org/admin/needles
Further details¶
Always latest result in this scenario: latest
- Related to action #48899: [opensuse] kdelive/upgrade: does not handle package notifications added
- Description updated (diff)
- Status changed from New to Workable
- Target version set to Milestone 30
- Estimated time set to 42.00 h
- Description updated (diff)
- Status changed from Workable to In Progress
- Assignee set to zluo
screenlock-xscreensaver-20180821.json has 2 tags:
"tags": [
"screenlock",
"blackscreen"
],
I think, select_console 'x11' doesn't work because of poor performance.
We need logs anyway, the question is why no logs got uploaded to server? I can not exclude a crash atm.
sub ensure_unlocked_desktop {
my $counter = 10;
while ($counter--) {
assert_screen [qw(displaymanager displaymanager-password-prompt generic-desktop screenlock screenlock-password authentication-required-user-settings)], no_wait => 1;
if (match_has_tag 'displaymanager') {
if (check_var('DESKTOP', 'minimalx')) {
type_string "$username";
save_screenshot;
}
# Always select user if DM_NEEDS_USERNAME is set
if ((!check_var('DESKTOP', 'gnome') || (is_sle('<15') || is_leap('<15.0'))) && !get_var('DM_NEEDS_USERNAME')) {
send_key 'ret';
}
# On gnome, user may not be selected and using 'ret' is not enough in this case
else {
select_user_gnome($username);
}
}
....
select_user_gnome($username) seems to be not working.
- Assignee changed from zluo to okurz
- Related to action #63613: [opensuse][functionality][u] test fails in updates_packagekit_gpk - no logs are available added
- Blocks action #63670: [functional][u] test fails in x11 - black screen added
- Subject changed from [functional][u][sporadic] false-positive match on "screenlock-xscreensaver-20180821" when instead a console prompt is shown to [tools][sporadic] false-positive match on "screenlock-xscreensaver-20180821" when instead a console prompt is shown
- Status changed from In Progress to Resolved
as reported above with test results false-positive matches have been prevented. With this I see the ticket as successfully resolved.
Also available in: Atom
PDF