Project

General

Profile

Actions

action #169906

closed

coordination #169657: [epic] Handle test fixes and adjustments

Ensure dialog 'Password needed' is reached

Added by leli 3 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
2024-11-14
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Failed job
This is a sporadic issue, it seems sometimes the 'Password needed' dialog hasn't popup. On passed job it will popup like this https://openqa.suse.de/tests/15938465#step/yast2_security/12.

Some suggestions for this:

  1. check whether a timing issue, increase match_timeout value to wait more time.
    Line:31, tests/sle/tests/yast2_gui/yast2_security.pm

    y2_module_guitest::launch_yast2_module_x11("security", match_timeout => 120, apply_workaround => is_sle('>=15-SP4') ? 1 : 0);
    
  2. manual check the status would be helpful(on local env or on openQA and stop at the module of yast2_security, both ok)

Acceptance criteria

AC1:: Ensure dialog 'Password needed' is reached.

Actions #1

Updated by leli 3 months ago

  • Subject changed from Investigate why sometimes can't assert tag of 'desktop-runner-border' to Check why dialog 'Password needed' hasn't popup in time
  • Description updated (diff)
Actions #2

Updated by leli 3 months ago

  • Description updated (diff)
Actions #3

Updated by JERiveraMoya 3 months ago

  • Tags set to qe-yam-nov-sprint
  • Status changed from New to Workable
  • Parent task set to #169657
Actions #4

Updated by JERiveraMoya 3 months ago

  • Subject changed from Check why dialog 'Password needed' hasn't popup in time to Ensure dialog 'Password needed' is reached
Actions #5

Updated by JERiveraMoya 3 months ago

  • Description updated (diff)
Actions #6

Updated by hjluo 2 months ago

  • Status changed from Workable to In Progress
  • Assignee set to hjluo
Actions #7

Updated by hjluo 2 months ago

Actions #8

Updated by JERiveraMoya 2 months ago

Please send PR and run 10 at least.

Actions #9

Updated by hjluo 2 months ago · Edited

Actions #10

Updated by hjluo 2 months ago · Edited

  • Now run 20 jobs with 180 seconds of waiting time. and 10 jobs failed.
Actions #11

Updated by hjluo 2 months ago

  • Run 20 jobs with 240 seconds of waiting time. and 4 out of 20 jobs failed. now I'm checking the code to see the different behavor with the log.
Actions #12

Updated by leli 2 months ago

hjluo wrote in #note-11:

  • Run 20 jobs with 240 seconds of waiting time. and 4 out of 20 jobs failed. now I'm checking the code to see the different behavor with the log.

I think you can try to reproduce the issue manually, then decide how to act for next step.

Actions #13

Updated by hjluo 2 months ago

leli wrote in #note-12:

hjluo wrote in #note-11:

  • Run 20 jobs with 240 seconds of waiting time. and 4 out of 20 jobs failed. now I'm checking the code to see the different behavor with the log.

I think you can try to reproduce the issue manually, then decide how to act for next step.

yes, I'd try, looks like when this issue happened, there's workaroud in the previous screen. Thanks

Actions #14

Updated by JERiveraMoya 2 months ago

  • Tags changed from qe-yam-nov-sprint to qe-yam-dec-sprint-fy25
Actions #15

Updated by JERiveraMoya 2 months ago

Did you find any tip how to solve it? (asking as usual as sprint review is near).
It is kind of low prio (and sporadic) compare with other items in the backlog, we could put it on backlog if no more clues, but I'm also fine if you want to continue because you found some way to dig in with the problem. wdyt?

Actions #16

Updated by hjluo 2 months ago · Edited

  • I did manual test and everyting works, the dialog popped up. now checking log and code for more information.
  • I'd like to keep working on it when I was waiting VRs from other tickets.
Actions #17

Updated by leli 2 months ago · Edited

hjluo wrote in #note-16:

  • I did manual test and everyting works, the dialog popped up. now checking log and code for more information.

So this more like a timing issue, please think to increase the RAM and cpu, etc for env effect, more timeout value is also possible.

  • I'd like to keep working on it when I was waiting VRs from other tickets.
Actions #18

Updated by hjluo about 2 months ago · Edited

  • Now run 45.2 with QEMURAM=8096 20 jobs. and 4 out of 20 jobs failed for yast2_security.
  • Now I'm checking the video to see if there anything abnormal.
Actions #19

Updated by hjluo about 2 months ago

[2024-12-09T06:50:32.746411Z] [debug] [pid:79637] Check connection to the app by url: http://localhost:39124/v1/widgets

[2024-12-09T06:46:08.217896Z] [info] [pid:14245] yast2_software_management test module started
[2024-12-09T06:46:44.978676Z] [info] [pid:14245] yast2_security test module started
[2024-12-09T06:51:34.121588Z] [debug] [pid:14245] Check connection to the app by url: http://localhost:39119/v1/widgets
[2024-12-09T06:55:58.355376Z] [info] [pid:14245] yast2_lang test module started
[2024-12-09T06:58:41.999747Z] [info] [pid:14245] yast2_users test module started
[2024-12-09T06:59:26.750345Z] [info] [pid:14245] yast2_datetime test module started

for the passed one the output is like:

[2024-12-09T06:46:09.972898Z] [info] [pid:77080] yast2_software_management test module started
[2024-12-09T06:46:47.083504Z] [info] [pid:77080] yast2_security test module started
[2024-12-09T06:52:47.352606Z] [info] [pid:77080] yast2_lang test module started
[2024-12-09T06:55:27.893805Z] [info] [pid:77080] yast2_users test module started
[2024-12-09T06:56:13.262953Z] [info] [pid:77080] yast2_datetime test module started
[2024-12-09T06:56:53.313133Z] [info] [pid:77080] yast2_hostnames test module started
[2024-12-09T06:58:02.315312Z] [info] [pid:77080] yast2_network_settings test module started
Actions #20

Updated by hjluo about 2 months ago

  • Checked the latest result for RAM=8096 and all failed jobs failed at 3rd time to launch the yast2 security, and the waitmatch wait there for 180 seconds and the password screen still not appeared.
Actions #21

Updated by hjluo about 2 months ago

Actions #22

Updated by leli about 2 months ago

You can try to move this module before yast2_system_settings to have a look.

Actions #23

Updated by hjluo about 2 months ago · Edited

leli wrote in #note-22:

You can try to move this module before yast2_system_settings to have a look.

OK. tried it on ARM and move security module to the first didn't fix the issue 7 out of 20 jobs failed.

Actions #24

Updated by leli about 2 months ago

Another thought for this issue, maybe we need do some clean between each test inside the module, suggest to logout and login between each security test.

Actions #25

Updated by hjluo about 2 months ago · Edited

leli wrote in #note-24:

Another thought for this issue, maybe we need do some clean between each test inside the module, suggest to logout and login between each security test.

  • Tried one and looks works and will run 20 jobs to verify it it's works.
  • just 4 cases failed with script_out error, looks better now, and changed the code and rerun again.
Actions #26

Updated by hjluo about 2 months ago

now all 20 jobs passed, send out PR#20686 for review.

Actions #27

Updated by hjluo about 2 months ago

  • Lemon reviewed the PR and now changed the code and rerun all VRs.
Actions #28

Updated by hjluo about 2 months ago

  • Now still in the PR review for newer comments.
Actions #29

Updated by JERiveraMoya about 2 months ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF