Project

General

Profile

Actions

action #19022

closed

[opensuse][functional] test fails in yast2_control_center

Added by lnussel almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2017-05-08
Due date:
% Done:

100%

Estimated time:
Difficulty:

Description

Observation

openQA test in scenario opensuse-42.3-DVD-x86_64-yast2_ui@64bit fails in
yast2_control_center

The test is missing needles. Please get it to work

Reproducible

Fails since (at least) Build 0174

Expected result

Last good: (unknown) (or more recent)

Further details

Always latest result in this scenario: latest


Related issues 1 (0 open1 closed)

Blocks openQA Tests - action #19922: [sle][functional][opensuse]Harmonize extratests/yast2_ui tests for openSUSE and SLEResolvedokurz2017-06-202017-10-25

Actions
Actions #1

Updated by okurz almost 7 years ago

@zluo please take this ticket

Actions #2

Updated by zluo almost 7 years ago

  • Assignee set to zluo

well, the needles are there. As we already discussed yesterday, there is issue on server backend. I'll check the test again and test again my local server. Will update on this soon.

Actions #3

Updated by zluo almost 7 years ago

checked this issue and found that the needle doesn't match, only 16% coverage. It means there were changes. And I found also some other dismatched needles as well. So I need to check this test overall and provide new needles...

Actions #4

Updated by zluo almost 7 years ago

I found the reason for a lot of mismatched needles:

for example:
https://openqa.opensuse.org/tests/401500#step/yast2_control_center/24

The dialogue dosen't have a central position as it should be, therefore the needles cannot be matched... So this is an issue on openQA server itself.

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

found small changes for openldap: yast2_control-center_openldap-mirrormode-configuration_error is not needed anymore, so the test failed because following needle cannot be found.
Fix this at first.

Actions #8

Updated by zluo almost 7 years ago

Actions #9

Updated by zluo almost 7 years ago

tftp-server failed as well because of SLE has already installed tftp server, fix this now by changing following:

assert_screen [qw(yast2_control-center_tftp-server-install yast2_control-center_tftp-server-configuration_ready)];
if (match_has_tag 'yast2_control-center_tftp-server-install') {
send_key 'alt-i';
}
Actions #10

Updated by zluo almost 7 years ago

http://e13.suse.de/tests/2974#step/yast2_control_center/10

tftp-server has problem with needle macht, 82% only, will fixe this as well.

Actions #12

Updated by okurz almost 7 years ago

why should it be acceptable that the tftp server is already enabled? I assume you changed your test flow and are continuing from a snapshot where the tftp server was previously enabled. I suggest you run a clean job again to confirm.

Actions #13

Updated by zluo almost 7 years ago

@okurz

I use the latest build for the test (clone job from openqa.suse.de). And I also installed the latest build to verify tftp-server manually.

yast2_tftp was tested before yast2_control_center! So this is possible that has been already enabled.

For SLE we assume most server module like tftp-server got already installed, but it could the case that it is not enabled. For cancel installation it follows an error, which is not coming up now. Remove this assert_screen (error needle) make the test working again.

Actions #14

Updated by okurz almost 7 years ago

Having a server installed should not mean by default that a server is enabled and immediately running. The latest failure on openSUSE Leap fails in the printer dialog: https://openqa.opensuse.org/tests/403804#step/yast2_control_center/30
I suggest you crosscheck again on openSUSE Leap. If necessary add some "workaround" needles and use a higher TIMEOUT_SCALE to pass consoletest_finish.

Actions #15

Updated by lnussel almost 7 years ago

AFter looking at the code I think the control center test is just way too big and therefore hard to maintain. It calls basically all yast modules. I'd expect that the yast control center test tests specifics of the control center rather than every single yast module. Please split it up. To test the control center launching, just launch some yast modules that are tested in gui anyways via control center instead of with alt-f2.

Actions #16

Updated by okurz almost 7 years ago

Agreed. Talked with zluo yesterday and we are fine with that conclusion.

Actions #17

Updated by zluo almost 7 years ago

I've removed parts of this test and I've tested against openSUSE Leap at first.
It looks good for now.

All server services are removed if they have been tested somewhere else as in yast console tests or yast2 gui tests. Next step is to implement single test module which is important and could not be tested easily on openQA.

Please take a look at my reference test and let me know if this is okay to you:

http://e13.suse.de/tests/2992#

Actions #18

Updated by zluo almost 7 years ago

PR on github:
Split yast2_control_center.pm #2913

Please check and merge, thanks!

Actions #20

Updated by okurz almost 7 years ago

  • Priority changed from Normal to High
Actions #21

Updated by zluo almost 7 years ago

Test results for openSUSE Leap:

https://openqa.opensuse.org/tests/407571#step/yast2_control_center/

All created needles for Leap work fine as well.

Actions #22

Updated by zluo almost 7 years ago

the recent runs for SLES 12 show still a broken needle. I fixed this now and started a test run:
https://openqa.opensuse.org/tests/409459#step/yast2_control_center/

It looks good.

And latest runs for openSUSE TW and Leap are okay:
https://openqa.opensuse.org/tests/410062#step/yast2_control_center
htt://popenqa.opensuse.org/tests/latest?flavor=DVD&arch=x86_64&test=yast2_ui&machine=64bit&distri=opensuse&version=42.3#step/yast2_control_center

Actions #23

Updated by okurz almost 7 years ago

leap looks ok for now but latest failure on tw: https://openqa.opensuse.org/tests/411243#step/yast2_control_center/33

Actions #24

Updated by zluo almost 7 years ago

Actions #25

Updated by okurz almost 7 years ago

I consider a "server issue" unlikely considering that we don't see issues like these in other scenarios. Either the test is too demanding in general or has a race condition inside which needs to be covered by test code.

Actions #26

Updated by zluo almost 7 years ago

well, other test cases are much smaller in general. This is not the first time that we experience server issue. If you have any idea to improve the code, please let me know. Otherwise we need to observe the test results for a while...

Actions #27

Updated by zluo almost 7 years ago

  • % Done changed from 0 to 100
Actions #28

Updated by okurz almost 7 years ago

  • Blocked by action #19922: [sle][functional][opensuse]Harmonize extratests/yast2_ui tests for openSUSE and SLE added
Actions #29

Updated by okurz almost 7 years ago

  • Blocked by deleted (action #19922: [sle][functional][opensuse]Harmonize extratests/yast2_ui tests for openSUSE and SLE)
Actions #30

Updated by okurz almost 7 years ago

  • Blocked by action #19922: [sle][functional][opensuse]Harmonize extratests/yast2_ui tests for openSUSE and SLE added
Actions #31

Updated by okurz almost 7 years ago

  • Blocked by deleted (action #19922: [sle][functional][opensuse]Harmonize extratests/yast2_ui tests for openSUSE and SLE)
Actions #32

Updated by okurz almost 7 years ago

  • Blocks action #19922: [sle][functional][opensuse]Harmonize extratests/yast2_ui tests for openSUSE and SLE added
Actions #33

Updated by zluo almost 7 years ago

  • Priority changed from High to Normal

checked the history of yast2_control_center. It fails since 3 days. Before that it was quite stable, at least for about 8 days...
will take a look at some places where got easy to fail and it might be to require modify code or create new needles...
Set it to normal for now.

Actions #34

Updated by riafarov almost 7 years ago

  • Assignee changed from zluo to riafarov
Actions #35

Updated by riafarov almost 7 years ago

  • Status changed from In Progress to Feedback
Actions #36

Updated by riafarov almost 7 years ago

  • Copied to action #20564: [opensuse][functional] Make yast2_proxy stable added
Actions #37

Updated by riafarov almost 7 years ago

  • Copied to deleted (action #20564: [opensuse][functional] Make yast2_proxy stable)
Actions #38

Updated by riafarov almost 7 years ago

  • Subject changed from test fails in yast2_control_center to [opensuse][functional] test fails in yast2_control_center
Actions #39

Updated by riafarov almost 7 years ago

  • Status changed from Feedback to Resolved

Test is tracked under https://progress.opensuse.org/issues/20668, resolving.

Actions

Also available in: Atom PDF