Project

General

Profile

Actions

action #28878

closed

[sle][functional][easy] test fails in consoletest_finish - fails to unlock

Added by jorauch about 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Bugs in existing tests
Start date:
2017-12-05
Due date:
2018-01-30
% Done:

100%

Estimated time:
Difficulty:

Description

Observation

openQA test in scenario sle-15-Installer-DVD-x86_64-we-module@64bit-virtio-vga fails in
consoletest_finish

Looks like the password is not typed at all

Reproducible

Fails since (at least) Build 324.2

Expected result

Last good: 349.1

Further details

Always latest result in this scenario: latest

Actions #1

Updated by okurz about 7 years ago

  • Due date set to 2018-01-16
  • Target version set to Milestone 13
Actions #2

Updated by zluo almost 7 years ago

  • Assignee set to zluo

investigate this issue...

Actions #3

Updated by zluo almost 7 years ago

filed bsc#1075038 for bootloader.
this issue blocks further tests.

Actions #5

Updated by zluo almost 7 years ago

  • Status changed from New to In Progress
Actions #6

Updated by zluo almost 7 years ago

for me there is no issue with consoletest_finish, however I will run a couple tests to be sure that is really no issue for now.

Actions #7

Updated by zluo almost 7 years ago

  • Status changed from In Progress to Rejected

no issue, reject then.

Actions #8

Updated by JERiveraMoya almost 7 years ago

  • Status changed from Rejected to In Progress

Reproducible here: https://openqa.suse.de/tests/1374782# What do you think @zluo? it seems that still happens in this scenario. Feel free to open a new ticket if you think is a different issue and close this one.

Actions #9

Updated by zluo almost 7 years ago

What I can see from the logs:

2018-01-11T10:41:31.0076 CET] [debug] >>> testapi::_handle_found_needle: found displaymanager-20171123, similarity 1.00 @ 339/266
[2018-01-11T10:41:31.0076 CET] [debug] /var/lib/openqa/cache/tests/sle/tests/console/consoletest_finish.pm:44 called utils::ensure_unlocked_desktop
[2018-01-11T10:41:31.0076 CET] [debug] <<< testapi::send_key(key='ret', do_wait=0)
[2018-01-11T10:41:31.0282 CET] [debug] /var/lib/openqa/cache/tests/sle/tests/console/consoletest_finish.pm:44 called utils::ensure_unlocked_desktop
[2018-01-11T10:41:31.0282 CET] [debug] <<< testapi::wait_still_screen(similarity_level=47, stilltime=2, timeout=30)
[2018-01-11T10:41:33.0299 CET] [debug] >>> testapi::wait_still_screen: detected same image for 2 seconds
[2018-01-11T10:41:33.0391 CET] [debug] # Test died: ensure_unlocked_desktop repeated too much. Check for X-server crash. at /var/lib/openqa/cache/tests/sle/lib/utils.pm line 373.

--
displaymanager-20171123 found and matched, but I see displaymanager-20180111 is available and has 98% match.

Why?

Actions #10

Updated by zluo almost 7 years ago

debugging ensure_unlocked_desktop in utils.pm:

sub ensure_unlocked_desktop {
my $counter = 10;
while ($counter--) {
assert_screen [qw(displaymanager displaymanager-password-prompt generic-desktop screenlock gnome-screenlock-password)], no_wait => 1;
if (match_has_tag 'displaymanager') {
if (check_var('DESKTOP', 'minimalx')) {
type_string "$username";
save_screenshot;
}
send_key 'ret';
diag "______________ username $username typed?";
}
if ((match_has_tag 'displaymanager-password-prompt') || (match_has_tag 'gnome-screenlock-password')) {
if ($password ne '') {
type_password;
assert_screen [qw(locked_screen-typed_password login_screen-typed_password)];
}
send_key 'ret';
diag "____________ password $password input?";
}

Actions #11

Updated by zluo almost 7 years ago

http://e13.suse.de/tests/248#step/consoletest_finish/11

shows that it is working, the question it doesn't screenlock at more, ensure_unlocked_desktop just works...

Actions #12

Updated by zluo almost 7 years ago

try with following changes:

if (match_has_tag 'displaymanager') {
if (check_var('DESKTOP', 'minimalx')) {
if ($username ne '') {
type_string "$username";
}
save_screenshot;
}
send_key 'ret';
}

I doubt that username has not been handled properly. type_string $username seems not to work...

Actions #13

Updated by zluo almost 7 years ago

scc registation is not working at moment :(

https://bugzilla.suse.com/show_bug.cgi?id=1075723

This blocks my testing...

Actions #14

Updated by okurz almost 7 years ago

The build before did not show this bug but showed the unlock problem as well. I don't see how that would block. Anyway, the new build has SCC registration working fine again, problem reproduced, most recent example: https://openqa.suse.de/tests/1385494#step/consoletest_finish/13

Actions #15

Updated by zluo almost 7 years ago

scc issue got resolved, so continue working on this ticket.

Actions #16

Updated by zluo almost 7 years ago

http://e13.suse.de/tests/253#
yast2_bootloader blocks the test.

Actions #17

Updated by okurz almost 7 years ago

  • Due date changed from 2018-01-16 to 2018-01-30
  • Priority changed from High to Urgent

mass-shift of tickets to next sprint due to training on sprint review day

Actions #18

Updated by okurz almost 7 years ago

As discussed with zluo the needle displaymanager-20171123 looks invaild. Proposed to delete it and then see what's going on.

Actions #19

Updated by okurz almost 7 years ago

  • Subject changed from [sle][functional] test fails in consoletest_finish - fails to unlock to [sle][functional][easy] test fails in consoletest_finish - fails to unlock
  • Description updated (diff)
Actions #20

Updated by zluo almost 7 years ago

http://e13.suse.de/tests/257#step/consoletest_finish/16

delete needle displaymanager-20171123 and fixed locked_screen-typed_password, it looks good now.

Actions #22

Updated by qmsu almost 7 years ago

It is needle displaymanager-20180112 which caused this failure in my tests:
https://openqa.suse.de/tests/1385510#step/consoletest_finish%231/13

I will submit a needle MR to remove displaymanager-20180112
https://gitlab.suse.de/openqa/os-autoinst-needles-sles/merge_requests/646

Actions #23

Updated by zluo almost 7 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
Actions #24

Updated by nicksinger almost 7 years ago

  • Status changed from Resolved to Workable

https://openqa.suse.de/tests/1404007 still shows the exact same issue as described initially - have to reopen.

Actions #25

Updated by zluo almost 7 years ago

qkzhu@suse.com created displaymanager needle again and breaks the test...

Actions #26

Updated by zluo almost 7 years ago

  • Assignee changed from zluo to okurz

@okurz any suggestion to handle this issue, to get out of this conflict? Thanks!

Actions #27

Updated by okurz almost 7 years ago

  • Status changed from Workable to In Progress
  • Assignee changed from okurz to zluo

I assume you talked to qkzhu to clarify? If not please do so. You can also assign this ticket to him with explanation.

Actions #28

Updated by zluo almost 7 years ago

  • Assignee changed from zluo to qkzhu

qkzhu, please take over, thanks!

Actions #29

Updated by qkzhu almost 7 years ago

  • Status changed from In Progress to Resolved

MR: https://gitlab.suse.de/openqa/os-autoinst-needles-sles/merge_requests/657

displaymanager-20180119 was required by application_starts_on_login,
but consoletest_finish was blocked by it. I will update application_starts_on_login later to avoid the conflict.

Actions

Also available in: Atom PDF