fwts_test.py Traceback on Artful

Bug #1741217 reported by Taihsiang Ho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Support Library
Fix Released
High
Maciej Kisielewski

Bug Description

[Description]

When running suspend/suspend_advanced_auto test job on Artful we will get:

No protocol specified
Unable to init server: Could not connect: Connection refused

(zenity:6790): Gtk-WARNING **: cannot open display: :0
==================== Test Results ====================
Traceback (most recent call last):
  File "/usr/bin/checkbox-support-fwts_test", line 11, in <module>
    load_entry_point('checkbox-support==0.37.0.dev0', 'console_scripts', 'checkbox-support-fwts_test')()
  File "/usr/lib/python3/dist-packages/checkbox_support/scripts/fwts_test.py", line 339, in main
    progress_indicator.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe

[Steps to Reproduce]

Run sru.pxu of the plainbox-provider-sru to perform a typicall desktop SRU test.

For example, run

checkbox-cli /usr/bin/checkbox-sru-launcher

ubuntu@201507-18697:~$ cat /usr/bin/checkbox-sru-launcher
#!/usr/bin/env checkbox-cli
[launcher]
launcher_version = 1

[config]
config_filename = $HOME/taipeilab.conf

[test plan]
unit = com.canonical.certification::sru
forced = yes

[test selection]
forced = yes

[ui]
type = silent
auto_retry = yes
max_attempts = 3
delay_before_retry = 15

taipeilab.conf contains private lab env variables that I don't want to show publicly.

[Expected Results]
The system performs the suspend and passes the test.

[Actual Result]
The test job failed and showed the Traceback information.

[More Information]

Issuing this command directly could not reproduce this issue:

checkbox-cli run com.canonical.certification::suspend/suspend_advanced_auto

ubuntu@201507-18697:~$ checkbox-cli run com.canonical.certification::suspend/suspend_advanced_auto
===========================[ Running Selected Jobs ]============================
--------------[ Running job 1 / 3. Estimated time left: 0:01:30 ]---------------
------------------------------------[ rtc ]-------------------------------------
ID: com.canonical.certification::rtc
Category: com.canonical.plainbox::uncategorised
... 8< -------------------------------------------------------------------------
state: supported
------------------------------------------------------------------------- >8 ---
Outcome: job passed
--------------[ Running job 2 / 3. Estimated time left: 0:01:30 ]---------------
-----------------------------------[ sleep ]------------------------------------
ID: com.canonical.certification::sleep
Category: com.canonical.plainbox::uncategorised
... 8< -------------------------------------------------------------------------
freeze: supported
mem: supported
disk: supported
------------------------------------------------------------------------- >8 ---
Outcome: job passed
--------------[ Running job 3 / 3. Estimated time left: 0:01:30 ]---------------
-----------------------[ suspend/suspend_advanced_auto ]------------------------
ID: com.canonical.certification::suspend/suspend_advanced_auto
Category: com.canonical.plainbox::suspend
... 8< -------------------------------------------------------------------------
==================== Test Results ====================
 - Cycle 0: Status: PASS Sleep Elapsed: 0.91698 Resume Elapsed: 2.33190
Average time to sleep: 0.91698
Average time to resume: 2.33190
Passed: 1
 - sleep
------------------------------------------------------------------------- >8 ---
Outcome: job passed
Finalizing session that hasn't been submitted anywhere: checkbox-run-2018-01-04T09.17.07
==================================[ Results ]===================================
 ☑ : rtc
 ☑ : sleep
 ☑ : suspend/suspend_advanced_auto

[Package Information]

ubuntu@201507-18697:~$ dpkg -l '*checkbox*' '*plainbox*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================================-===========================-===========================-===============================================================================================
un checkbox <none> <none> (no description available)
ii checkbox-autostart-desktop 0.4+git201712221005+pkg39~u all Automatic system testing for desktop systems
ii checkbox-ng 0.35.0+git201712221005+pkg8 all PlainBox based test runner
ii plainbox 0.38.0+git201712221012+pkg7 all toolkit for software and hardware integration testing
ii plainbox-insecure-policy 0.38.0+git201712221012+pkg7 all policykit policy required to use plainbox (insecure version)
ii plainbox-provider-checkbox 0.41.0+git201712201300+pkg7 amd64 CheckBox provider for PlainBox
ii plainbox-provider-resource-generic 0.34.0+git201712221009+pkg4 amd64 CheckBox generic resource jobs provider
ii plainbox-provider-sru 1.9.0+git201712080755+pkg20 all CheckBox SRU jobs provider
un plainbox-secure-policy <none> <none> (no description available)
ii python3-checkbox-ng 0.35.0+git201712221005+pkg8 all PlainBox based test runner (Python 3 library)
ii python3-checkbox-support 0.36.0+git201712211115+pkg6 all collection of Python modules used by PlainBox providers
ii python3-plainbox 0.38.0+git201712221012+pkg7 all toolkit for software and hardware testing (python3 module)
ubuntu@201507-18697:~$

ubuntu@201507-18697:~$ uname -a
Linux 201507-18697 4.13.0-22-generic #25-Ubuntu SMP Tue Dec 19 11:13:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@201507-18697:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful
ubuntu@201507-18697:~$

Related branches

Changed in checkbox-support:
status: New → In Progress
assignee: nobody → Maciej Kisielewski (kissiel)
importance: Undecided → High
milestone: none → 0.37.0
Changed in checkbox-support:
status: In Progress → Fix Committed
Changed in checkbox-support:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.