Project

General

Profile

Actions

action #9492

closed

Test updates through Packagekit

Added by RBrownSUSE over 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
New test
Target version:
-
Start date:
2015-11-11
Due date:
% Done:

100%

Estimated time:
Difficulty:

Description

right now zypper_up test is installing the updates. This needs to be disabled for desktop installations and instead we should test through packagekit applications, e.g. apper


Checklist

  • SLE
  • TW
  • Leap
Actions #1

Updated by RBrownSUSE over 8 years ago

  • Checklist item changed from to [ ] SLE, [ ] TW, [ ] Leap
  • Target version deleted (154)
Actions #2

Updated by mkravec over 8 years ago

  • Assignee set to mkravec
Actions #3

Updated by mkravec almost 8 years ago

  • Checklist item changed from [ ] SLE, [ ] TW, [ ] Leap to [x] SLE, [ ] TW, [ ] Leap
  • % Done changed from 0 to 50

Gnome updates merged. There is one issue I can not explain:

Test should not fail, but video (3:45) shows something different than needles:
https://openqa.suse.de/tests/400245/modules/updates_gnome/steps/8

Actions #4

Updated by mkravec almost 8 years ago

  • Status changed from New to In Progress
  • % Done changed from 50 to 80
Actions #5

Updated by okurz almost 8 years ago

can you enlighten us about the "weird issue" you noted in #9492#note-3 ?

Actions #6

Updated by RBrownSUSE almost 8 years ago

My guess would be it's taking over 100 seconds for the update viewer to launch.. @mkravec does that make sense to you as a possible cause?

Actions #7

Updated by okurz almost 8 years ago

I think it's more the inverse, the updater opens up "too fast" while the "wait_idle" within the assert for desktop runner is still blocked and then the updater either closes itself or "esc" is forwarded to the wrong window?

Actions #8

Updated by mkravec almost 8 years ago

Test is failing only on gnome@64bit-ipmi and jpupava told me today that ipmi does not understand assert_and_click. Might be connected to this?

Actions #9

Updated by okurz almost 8 years ago

Every backend has to properly implement every call of the testapi. Of course ipmi also knows assert_and_click. The problem is visible in the logfile and you are right that it is ipmi specific:

18:39:26.0265 Debug: /var/lib/openqa/share/tests/sle/tests/x11/updates_gnome.pm:26 called testapi::x11_start_program
18:39:26.0266 <<< type_string(string='gpk-update-viewer', max_interval=250)
…
18:39:27.2032 wait_idle sleeping for 15 seconds
18:39:42.2189 >>> wait_idle: timed out after 15
18:39:42.2194 <<< send_key(key='ret')
18:39:42.4215 <<< wait_idle(timeout=57)
18:39:42.4219 wait_idle sleeping for 57 seconds
18:40:39.4379 >>> wait_idle: timed out after 57

so the second wait_idle which comes from send_key 'ret', 1 is sleeping blindly for 57(!) seconds. During this time the update manager probably disappears because of a timeout again.
Why 57 seconds? The default for wait_idle is shorter but the ipmi-backend scales the timeout so we end up with these 57 seconds. Fix? Probably remove the "wait_idle", i.e. the ,1 from send_key and replace with something proper.

Actions #10

Updated by mkravec almost 8 years ago

Oliver, thanks - I saw 57s wait_idle, but did not think that gpk-update-viewer closes after 60 by itself :)
Also send_key confused me with parameter "1" not being seconds, but boolean..

PR on the way.

Actions #11

Updated by mkravec almost 8 years ago

  • Checklist item changed from to [x] TW
Actions #12

Updated by mkravec almost 8 years ago

  • Checklist item changed from to [x] Leap
Actions #13

Updated by mkravec almost 8 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 80 to 100
Actions

Also available in: Atom PDF