Project

General

Profile

Actions

action #28606

closed

[sle][functional][hard] vnc_two_passwords fails when system clock triggers wait_screen_change

Added by okurz over 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Start date:
2017-11-30
Due date:
2018-03-27
% Done:

100%

Estimated time:
Difficulty:

Description

Observation

openQA test in scenario sle-15-Installer-DVD-x86_64-extra_tests_on_gnome@64bit fails in
vnc_two_passwords

Reproducible

Fails since (at least) Build 288.8

Expected result

Last good: previous build was fine: https://openqa.suse.de/tests/1279195#step/vnc_two_passwords/26 . Seems like sporadic issue?

Acceptance criteria

  • AC1: High-level error message which is more helpful

Tasks

  • Investigate issue, find the root cause
  • Come up with solution and implement if easy, otherwise improve error message and create new ticket for implementation

Further details

Always latest result in this scenario: latest


Related issues 1 (0 open1 closed)

Has duplicate openQA Tests - action #16652: [sle][functional][ppc64le]test fails in vnc_two_passwords on Power trying to type the passwordRejectedokurz2017-02-10

Actions
Actions #1

Updated by okurz over 6 years ago

  • Subject changed from [sle][functional]test fails in vnc_two_passwords - "Test died: Expected: 0, received: 0, 1 for view_only_pw", wut? to [sle][functional][medium]test fails in vnc_two_passwords - "Test died: Expected: 0, received: 0, 1 for view_only_pw", wut?
  • Description updated (diff)
Actions #2

Updated by okurz over 6 years ago

  • Target version set to Milestone 14
Actions #3

Updated by okurz about 6 years ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: extra_tests_on_gnome
http://openqa.suse.de/tests/1423306

Actions #4

Updated by okurz about 6 years ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: extra_tests_on_gnome
https://openqa.suse.de/tests/1475475

Actions #5

Updated by okurz about 6 years ago

  • Due date set to 2018-03-13
  • Priority changed from Normal to High
Actions #6

Updated by riafarov about 6 years ago

  • Subject changed from [sle][functional][medium]test fails in vnc_two_passwords - "Test died: Expected: 0, received: 0, 1 for view_only_pw", wut? to [sle][functional][medium][sporadic] make vnc_two_passwords more stable - "Test died: Expected: 0, received: 0, 1 for view_only_pw", wut?
  • Description updated (diff)
  • Status changed from New to Workable
Actions #7

Updated by zluo about 6 years ago

  • Assignee set to zluo
Actions #8

Updated by zluo about 6 years ago

  • Status changed from Workable to In Progress

checked at https://openqa.suse.de/tests/1509722

no issues for now.

Actions #9

Updated by zluo about 6 years ago

  • Status changed from In Progress to Resolved
Actions #10

Updated by okurz about 6 years ago

  • Status changed from Resolved to In Progress

keep in mind that this was seen as a sporadic issue so a single job says nothing.

Actions #11

Updated by zluo about 6 years ago

okay, will test locally for sure.

Actions #12

Updated by zluo about 6 years ago

  • Priority changed from High to Low

http://e13.suse.de/tests/397#step/boot_to_desktop/5
boot_to_desktop from DVD-Installer doesn't work.

Set it to low because of sporadic issue.

Actions #13

Updated by zluo about 6 years ago

  • Status changed from In Progress to Blocked
Actions #14

Updated by okurz about 6 years ago

  • Status changed from Blocked to In Progress
  • Priority changed from Low to High

no, please don't do that. It fails often enough to be at least high prio. https://openqa.suse.de/tests/1514560#step/vnc_two_passwords/28 is the latest failure in RC1C1. And please do not use "Blocked" unless there is another report elsewhere wich needs to be tracked and resolved to unblock here. I do not see this so setting back to "In Progress".

Actions #15

Updated by zluo about 6 years ago

wrong input here, remove it.

Actions #16

Updated by zluo about 6 years ago

In rc1, vnc_two_passwords failed, but for recent run it seems to be okay again.
https://10.160.0.207/tests/latest?distri=sle&machine=64bit&arch=x86_64&test=extra_tests_on_gnome&flavor=Installer-DVD&version=15#step/vnc_two_passwords/19

I will check this now.

Actions #17

Updated by zluo about 6 years ago

  • Assignee changed from zluo to mkravec

@mkravec can you provide your input for this? I am not sure about reason, timeout for wait_screen_change?
thanks!

Actions #18

Updated by zluo about 6 years ago

the mouse doesn't show up as I can see...

Actions #20

Updated by zluo about 6 years ago

try following:

wait_still_screen;
my $c1 = wait_screen_change { type_string "string", 30};
my $c2 = wait_screen_change { mouse_click, 30};
if ($c1 != $c2 || $c1 != $opt->{change}) {
die "Expected: $opt->{change}, received: $c1, $c2 for $opt->{pw}";
}

--

increase timeout to 30 sec

Actions #21

Updated by mkravec about 6 years ago

  • % Done changed from 0 to 50

If you increase timeout to 1 minute it will always fail. Test is failing because of this:

If you compare system clock with SP4 testrun:

wait_screen_change was designed for installation. You have to figure out how to hide system clock if you want to use it reliably after installation.

Actions #22

Updated by zluo about 6 years ago

I tested yesterday quite long time on loewe with total 10 remote workers. I found out that it might be to do with server performance. If I send more than 10 jobs and all remote-workers are running at same time, then it failed mostly. If I send single job, it just works fine.

So I think this is something which is quite difficult to localize where in code and how to improve code...

@mkravec please provide your input, thanks.

Actions #23

Updated by mkravec about 6 years ago

  • Subject changed from [sle][functional][medium][sporadic] make vnc_two_passwords more stable - "Test died: Expected: 0, received: 0, 1 for view_only_pw", wut? to [sle][functional][medium][sporadic] vnc_two_passwords does not hide system clock
Actions #24

Updated by zluo about 6 years ago

  • Assignee changed from mkravec to zluo

@mkravec, thanks.

to hide system top bar should the resolution after we talked about this... investigate how to hide top bar, at least disable showing the clock.

Actions #25

Updated by zluo about 6 years ago

I cannot find a way to hide gnome top bar atm...

Actions #26

Updated by mgriessmeier about 6 years ago

  • Due date changed from 2018-03-13 to 2018-03-27
  • Assignee deleted (zluo)
  • Target version changed from Milestone 14 to Milestone 15
Actions #27

Updated by okurz about 6 years ago

  • Subject changed from [sle][functional][medium][sporadic] vnc_two_passwords does not hide system clock to [sle][functional][medium][sporadic] vnc_two_passwords fails because the clock changes when the screen is expected to not check, we can not hide the system clock in more recent gnome
  • Assignee set to mkravec

So apparently the problem is that the test relies on the full screen view to not change during a waiting time of 10 seconds. For this in the SLE12 case the test tweaked the gnome theme to hide the system clock. I researched and failed to find a feasible way (other than recompiling gnome) to hide the system clock.

@mkravec Can you explain why the test needs this? Or do you have an alternative in mind?

Actions #28

Updated by mkravec about 6 years ago

  • Subject changed from [sle][functional][medium][sporadic] vnc_two_passwords fails because the clock changes when the screen is expected to not check, we can not hide the system clock in more recent gnome to [sle][functional] vnc_two_passwords fails when system clock triggers wait_screen_change
  • Priority changed from High to Normal
Actions #29

Updated by okurz about 6 years ago

  • Has duplicate action #16652: [sle][functional][ppc64le]test fails in vnc_two_passwords on Power trying to type the password added
Actions #30

Updated by okurz about 6 years ago

@mkravec Can you explain why the test needs this? Or do you have an alternative in mind?

Actions #31

Updated by mkravec about 6 years ago

@okurz, recompile gnome to hide clock? What about gnome extensions?

You can find information about current implementation in original poo#11794 (mentioned in test module). I am trying the alternative.

Actions #32

Updated by nicksinger about 6 years ago

  • Subject changed from [sle][functional] vnc_two_passwords fails when system clock triggers wait_screen_change to [sle][functional][hard] vnc_two_passwords fails when system clock triggers wait_screen_change
Actions #33

Updated by okurz about 6 years ago

mkravec wrote:

@okurz, recompile gnome to hide clock? What about gnome extensions?

yes, these are the two ways I know about but I wonder what is actually wanted here. Isn't there a way for us to test something without relying on wait_still_screen?

Actions #34

Updated by mkravec about 6 years ago

okurz wrote:

Isn't there a way for us to test something without relying on wait_still_screen?

Comment #31 - "I am trying the alternative"

Actions #36

Updated by mkravec about 6 years ago

  • Status changed from In Progress to Resolved
Actions #37

Updated by okurz about 6 years ago

  • Status changed from Resolved to In Progress

According to our DoD we should keep the ticket open until we verified on production. I have merged the missing needle MR https://gitlab.suse.de/openqa/os-autoinst-needles-sles/merge_requests/763 as well now. Let's see how a retriggered test will cope: https://openqa.suse.de/tests/1543511

Actions #38

Updated by okurz about 6 years ago

  • Status changed from In Progress to Resolved

so one test passed, so far so good. Let's assume we are good. Thank you very much.

Actions

Also available in: Atom PDF