Project

General

Profile

Actions

action #55805

closed

coordination #56267: [epic][qe-core][functional] openSUSE welcome message is not properly handled

[opensuse][functional][u] test fails in opensuse_welcome - does not have welcome dialog for root logged in

Added by mlin7442 over 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Bugs in existing tests
Target version:
SUSE QA - Milestone 30
Start date:
2019-08-17
Due date:
% Done:

0%

Estimated time:
42.00 h
Difficulty:

Description

Observation

The "opensuse welcome" popup is not shown for root user. This is expected. The module opensuse_welcome should not be scheduled for this scenario.

openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-rootonly@64bit fails in
opensuse_welcome

Acceptance criteria

  • AC1: The module opensuse_welcome is not scheduled for rootonly scenario
  • AC2: EXCLUDE_MODULES is not used to fulfill AC1.

Tasks

  1. Create YAML schedule, see https://github.com/os-autoinst/os-autoinst-distri-opensuse/tree/master/schedule/functional
  2. Link it in functional job group, see https://gitlab.suse.de/qsf-u/qa-sle-functional-userspace/-/blob/master/functional_sle15_jobgroup.yaml
  3. Remove the EXCLUDE_MODULES=opensuse_welcome setting (and update the test suite description)

Further details

Always latest result in this scenario: latest


Related issues 1 (0 open1 closed)

Follows openQA Tests - action #55661: [opensuse][u] test fails in several modules after booting and login - "openSUSE Welcome" not handled (WAS: test fails in first_boot)Resolveddheidler2019-08-16

Actions
Actions #1

Updated by mlin7442 over 4 years ago

so I think opensuse_welcome module should not applicable if ROOTONLY=1

or this is a product bug ie. why not starts with root, need investigating.

Actions #2

Updated by SLindoMansilla over 4 years ago

  • Subject changed from test fails in opensuse_welcome - does not have welcome dialog for root logged in to [opensuse] test fails in opensuse_welcome - does not have welcome dialog for root logged in
  • Assignee set to mlin7442

I would say that this is a product bug. Assigning to you since you are investigating the issue.

Actions #3

Updated by SLindoMansilla over 4 years ago

  • Parent task set to #56267
Actions #4

Updated by SLindoMansilla over 4 years ago

  • Priority changed from Normal to High

It seems this doesn't have activity. Please, feel free to unassign if you want U-Team to take over.

Actions #5

Updated by favogt over 4 years ago

The log shows the reason:

Aug 21 17:53:13 install org.opensuse.opensuse_welcome.desktop[2284]: [2284:2284:0821/175313.472485:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

The embedded chromium used by opensuse-welcome does not support running as root.

Actions #6

Updated by StefanBruens over 4 years ago

So, what should be done here?

As favogt pointed out, openSUSE Welcome will not run for the root user. I would even argue not automatically starting a web browser with "arbitrary" content should be checked for.

So (pseudocode):

if (ROOTONLY) {
    check_screen(opensuse-welcome) and die ("openSUSE Welcome should not run for the root user");
} else {
    # do as before, i.e. unselect and close
}

Opinions?

Actions #7

Updated by SLindoMansilla over 4 years ago

StefanBruens wrote:

So, what should be done here?

As favogt pointed out, openSUSE Welcome will not run for the root user. I would even argue not automatically starting a web browser with "arbitrary" content should be checked for.

So (pseudocode):

if (ROOTONLY) {
    check_screen(opensuse-welcome) and die ("openSUSE Welcome should not run for the root user");
} else {
    # do as before, i.e. unselect and close
}

Opinions?

So, as I expected, that needs to be taken in addition to https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8451#discussion_r325169288

So, a function with the handling logic has to be created. Then this function has to be called when needed. Maybe we even can get rid of the opensuse_welcome module, or this module should only call that function.

Actions #8

Updated by StefanBruens over 4 years ago

SLindoMansilla wrote:

So, as I expected, that needs to be taken in addition to https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8451#discussion_r325169288

So, a function with the handling logic has to be created. Then this function has to be called when needed. Maybe we even can get rid of the opensuse_welcome module, or this module should only call that function.

Or just extend opensuse_welcome, no duplication needed.

The big advantage of keeping opensuse_welcome a module instead of a function call is one can actually check whats going on, without 5 levels of functions and nested state to be handled: https://openqa.opensuse.org/tests/1033059/modules/opensuse_welcome/steps/1/src

The wait_boot function in reboot_icewm https://openqa.opensuse.org/tests/1033059 does what the name says - it waits for the (re)boot to complete.

When the boot has completed there is either a plain desktop or the dialog, which should be handled accordingly.

Actions #9

Updated by SLindoMansilla over 4 years ago

StefanBruens wrote:

Or just extend opensuse_welcome, no duplication needed.

The big advantage of keeping opensuse_welcome a module instead of a function call is one can actually check whats going on, without 5 levels of functions and nested state to be handled: https://openqa.opensuse.org/tests/1033059/modules/opensuse_welcome/steps/1/src

This ticket was open to this kind of implementation.
Your PR made me think it is not possible. So, let's extend the opensuse_welcome module so that your PR is not needed. Otherwise you are not argumenting in favor of your PR.

If your PR is still necessary and the opensuse_welcome module cannot be extended to avoid the changes on your PR, then I still beg for a function that is used in the places your PR addresses and in the opensuse_welcome module.

The wait_boot function in reboot_icewm https://openqa.opensuse.org/tests/1033059 does what the name says - it waits for the (re)boot to complete.

When the boot has completed there is either a plain desktop or the dialog, which should be handled accordingly.

You are basically saying that I am right. A proper function that does what is expected is better when we have to call this logic in different modules and scenarios.
The wait_boot function was created after the pain of having several modules in several places for several products implementing several ways of rebooting, waiting for boot. So, even if that function exists, it is a pain to change the code without breaking another module in another scenario from another SUSE product. So, even if the function does what is expected, it is not used in all places.
Example of horror story: https://progress.opensuse.org/issues/38423

Actions #10

Updated by okurz over 4 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: rootonly
https://openqa.opensuse.org/tests/1045686

To prevent further reminder comments one of the following options should be followed:

  1. The test scenario is fixed by applying the bug fix to the tested product or the test is adjusted
  2. The openQA job group is moved to "Released"
  3. The label in the openQA scenario is removed
Actions #11

Updated by okurz over 4 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: rootonly
https://openqa.opensuse.org/tests/1058820

To prevent further reminder comments one of the following options should be followed:

  1. The test scenario is fixed by applying the bug fix to the tested product or the test is adjusted
  2. The openQA job group is moved to "Released"
  3. The label in the openQA scenario is removed
Actions #12

Updated by okurz over 4 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: rootonly
https://openqa.opensuse.org/tests/1071859

To prevent further reminder comments one of the following options should be followed:

  1. The test scenario is fixed by applying the bug fix to the tested product or the test is adjusted
  2. The openQA job group is moved to "Released"
  3. The label in the openQA scenario is removed
Actions #13

Updated by SLindoMansilla over 4 years ago

  • Description updated (diff)
  • Assignee deleted (mlin7442)

Two months of inactivity after the reminder. U-Team will take over ;)

Actions #14

Updated by SLindoMansilla over 4 years ago

  • Follows action #55661: [opensuse][u] test fails in several modules after booting and login - "openSUSE Welcome" not handled (WAS: test fails in first_boot) added
Actions #15

Updated by SLindoMansilla over 4 years ago

  • Status changed from New to Blocked

Tracking.
By now, I have added EXCLUDE_MODULES=opensuse_welcome to the test suite rootonly on https://openqa.opensuse.org/admin/test_suites

Actions #16

Updated by SLindoMansilla over 4 years ago

  • Assignee set to SLindoMansilla
Actions #17

Updated by SLindoMansilla over 4 years ago

  • Status changed from Blocked to New
Actions #18

Updated by SLindoMansilla about 4 years ago

  • Assignee deleted (SLindoMansilla)
Actions #19

Updated by SLindoMansilla almost 4 years ago

  • Subject changed from [opensuse] test fails in opensuse_welcome - does not have welcome dialog for root logged in to [opensuse][functional][u] test fails in opensuse_welcome - does not have welcome dialog for root logged in
  1. Create YAML schedule
  2. Remove the EXCLUDE_MODULES setting
Actions #20

Updated by SLindoMansilla almost 4 years ago

  • Description updated (diff)
Actions #21

Updated by SLindoMansilla almost 4 years ago

  • Description updated (diff)
Actions #22

Updated by SLindoMansilla almost 4 years ago

  • Status changed from New to Workable
  • Target version set to Milestone 30
  • Estimated time set to 42.00 h
Actions #23

Updated by zluo almost 4 years ago

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

take over

Actions #24

Updated by zluo almost 4 years ago

this can be done like my PR: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/10028

add yaml schedule for rootonly scenairo and remove EXCLUDE_MODULES item.

Actions #25

Updated by zluo almost 4 years ago

https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/10294 created.

will remove EXCLUDE_MODULES=opensuse_welcome after merge.

Actions #26

Updated by zluo almost 4 years ago

PR merged now, rootonly test suite updated now at https://openqa.opensuse.org/admin/test_suites

check this later on O3 for this change.

Actions #27

Updated by zluo almost 4 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF