Project

General

Profile

Actions

action #105506

closed

[sporadic][tools] openQA-in-openQA test sporadically fails in shutdown

Added by okurz almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Start date:
2022-01-26
Due date:
2022-02-18
% Done:

0%

Estimated time:
Difficulty:

Description

Observation

openQA test in scenario openqa-Tumbleweed-dev-x86_64-openqa_install+publish@64bit-2G fails in
shutdown. Stepping through the video frame by frame it looks like the test switches to the root console but never types poweroff. The line

wait_screen_change { send_key 'ctrl-alt-f3' }

might be the culprite because we don't explicitly wait for the root console to appear but just assume that after the screen content changed significantly enough that we have reached the root console. However the root console might not yet be responsive at this time.

Test suite description

Maintainer: okurz@suse.de Test for installation of openQA itself. To be used with "openqa" distri. Publishes an qcow2 image including the openQA installation ready to run as an appliance.

Reproducible

Fails since (at least) Build :TW.10346 (current job). https://openqa.opensuse.org/tests/2157847#next_previous shows 19/407 failures so a fail-ratio of roughly 5%.

Expected result

Last good: :TW.10345 (or more recent)

Suggestions

  • Reproduce the error locally and confirm the fail-ratio
  • Either properly synchronize the switch to the responsive root terminal with an explicit assert_screen or use backend power functions over the test API.

Further details

Always latest result in this scenario: latest


Related issues 1 (0 open1 closed)

Related to openQA Project (public) - action #105429: openQA's fullstack test fails in `shutdown` moduleResolvedmkittler2022-01-25

Actions
Actions #1

Updated by okurz almost 3 years ago

  • Related to action #105429: openQA's fullstack test fails in `shutdown` module added
Actions #2

Updated by osukup almost 3 years ago

why this test didnt't use power_action ?

Actions #3

Updated by osukup almost 3 years ago

  • Assignee set to osukup
Actions #4

Updated by osukup almost 3 years ago

@okurz probadly is good idea to check openQA-in-openQA code to modermize/reuse code from os-autoins-distri-opensuse and reuse some things from there ( handling consoles/ serial console).

Actions #5

Updated by osukup almost 3 years ago

  • Status changed from New to In Progress
Actions #6

Updated by okurz almost 3 years ago

osukup wrote:

@okurz probadly is good idea to check openQA-in-openQA code to modermize/reuse code from os-autoins-distri-opensuse and reuse some things from there ( handling consoles/ serial console).

yes. I would like that. But at best without copy-pasting big blocks of code. This can be yet another good opportunity to either move some code upstream to os-autoinst or to introduce an intermediate helper library or plugin for test distributions.

Actions #7

Updated by openqa_review almost 3 years ago

  • Due date set to 2022-02-11

Setting due date based on mean cycle time of SUSE QE Tools

Actions #8

Updated by osukup almost 3 years ago

okurz wrote:

osukup wrote:

@okurz probadly is good idea to check openQA-in-openQA code to modermize/reuse code from os-autoins-distri-opensuse and reuse some things from there ( handling consoles/ serial console).

yes. I would like that. But at best without copy-pasting big blocks of code. This can be yet another good opportunity to either move some code upstream to os-autoinst or to introduce an intermediate helper library or plugin for test distributions.

I think best solution will be port openqa-in-openqa to standard 'os-autoinst-distri-opensuse' as new product like microos/sle/opensuse

btw ... about failing shutdown. Do we need for anything test which only select different console and then type poweroff ?

Actions #9

Updated by livdywan almost 3 years ago

osukup wrote:

btw ... about failing shutdown. Do we need for anything test which only select different console and then type poweroff ?

I think it would be fine to avoid the switch if we can.

The only reason I'd be curious about keeping the switching is that #105429 could be hitting the same underlying issue.

Actions #10

Updated by okurz almost 3 years ago

osukup wrote:

okurz wrote:

osukup wrote:

@okurz probadly is good idea to check openQA-in-openQA code to modermize/reuse code from os-autoins-distri-opensuse and reuse some things from there ( handling consoles/ serial console).

yes. I would like that. But at best without copy-pasting big blocks of code. This can be yet another good opportunity to either move some code upstream to os-autoinst or to introduce an intermediate helper library or plugin for test distributions.

I think best solution will be port openqa-in-openqa to standard 'os-autoinst-distri-opensuse' as new product like microos/sle/opensuse

Same as I stated yesterday in https://suse.slack.com/archives/C02AJ1E568M/p1643710583739559?thread_ts=1643709665.704599&cid=C02AJ1E568M and before in meetings: What we definitely should not do is merge openqa-in-openqa into os-autoinst-distri-opensuse because os-autoinst-distri-opensuse is already too big to be managed efficiently and we are using also openqa-in-openqa as a playground to learn how to better handle separate test distributions

Actions #12

Updated by osukup almost 3 years ago

  • Status changed from In Progress to Feedback

PR merged, now wait if changes solved issue on opensuse.org instance ( not able reproduce problem on private instance .. )

Actions #13

Updated by livdywan almost 3 years ago

  • Due date changed from 2022-02-11 to 2022-02-18
  • Status changed from Feedback to In Progress

okurz wrote:

https://github.com/os-autoinst/os-autoinst-distri-openQA/pull/77 merged

So it seems I missed that the PR got reverted. Good example of why we don't rely on personal instances for verification :-D

@osukup Please prepare an updated PR with the typo fixed. I'm generously bumping the due date by a week, but feel free to surprise me and do it now so we can verify on Monday that it all works nicely

Actions #15

Updated by osukup almost 3 years ago

  • Status changed from In Progress to Feedback

lets observe for day :D

Actions #16

Updated by osukup almost 3 years ago

  • Status changed from Feedback to Resolved

no fail in shutdown, so we can set resolved

Actions

Also available in: Atom PDF