Unbreak 'make autopilot'

Bug #1354377 reported by Daniel Holbach
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Clock App
Fix Released
Medium
Unassigned

Bug Description

Loading tests from: /home/daniel/reboot-packaging/tests/autopilot

Tests running...
======================================================================
ERROR: ubuntu_clock_app.tests.test_alarm.TestAlarm.test_add_recurring_type_alarm_must_add_to_alarm_list(random)
----------------------------------------------------------------------
Empty attachments:
  process-stdout

/var/log/syslog: {{{Aug 8 12:17:03 daydream kernel: [13352.549735] input: autopilot-finger as /devices/virtual/input/input16}}}
process-return-code: {{{255}}}
process-stderr: {{{
Testability driver loaded. Wire protocol version is "1.4".
file:///home/daniel/reboot-packaging/app/ubuntu-clock-app.qml:87 Type ClockPage unavailable
file:///home/daniel/reboot-packaging/app/clock/ClockPage.qml:94 Type MainClock unavailable
file:///home/daniel/reboot-packaging/app/clock/MainClock.qml:20 module "DateTime" is not installed
}}}

Traceback (most recent call last):
  File "/home/daniel/reboot-packaging/tests/autopilot/ubuntu_clock_app/tests/test_alarm.py", line 68, in setUp
    super(TestAlarm, self).setUp()
  File "/home/daniel/reboot-packaging/tests/autopilot/ubuntu_clock_app/tests/__init__.py", line 67, in setUp
    self.launch_test_local()
  File "/home/daniel/reboot-packaging/tests/autopilot/ubuntu_clock_app/tests/__init__.py", line 79, in launch_test_local
    emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
  File "/usr/lib/python2.7/dist-packages/autopilot/testcase.py", line 264, in launch_test_application
    return self._launch_test_application(launcher, application, *arguments)
  File "/usr/lib/python2.7/dist-packages/autopilot/testcase.py", line 367, in _launch_test_application
    application_name=application_name,
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/__init__.py", line 154, in get_proxy_object_for_existing_process
    process
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/__init__.py", line 274, in _get_dbus_addresses_from_search_parameters
    % return_code
ProcessSearchError: Process exited with exit code: 255
======================================================================
ERROR: ubuntu_clock_app.tests.test_alarm.TestAlarm.test_add_recurring_type_alarm_must_add_to_alarm_list(weekday)
----------------------------------------------------------------------
Empty attachments:
  /var/log/syslog
  process-stdout

process-return-code: {{{255}}}
process-stderr: {{{
Testability driver loaded. Wire protocol version is "1.4".
file:///home/daniel/reboot-packaging/app/ubuntu-clock-app.qml:87 Type ClockPage unavailable
file:///home/daniel/reboot-packaging/app/clock/ClockPage.qml:149 Type UserWorldCityList unavailable
file:///home/daniel/reboot-packaging/app/worldclock/UserWorldCityList.qml:20 module "Timezone" is not installed
}}}

traceback-1: {{{
Traceback (most recent call last):
  File "/home/daniel/reboot-packaging/tests/autopilot/ubuntu_clock_app/tests/test_alarm.py", line 68, in setUp
    super(TestAlarm, self).setUp()
  File "/home/daniel/reboot-packaging/tests/autopilot/ubuntu_clock_app/tests/__init__.py", line 67, in setUp
    self.launch_test_local()
  File "/home/daniel/reboot-packaging/tests/autopilot/ubuntu_clock_app/tests/__init__.py", line 79, in launch_test_local
    emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
  File "/usr/lib/python2.7/dist-packages/autopilot/testcase.py", line 264, in launch_test_application
    return self._launch_test_application(launcher, application, *arguments)
  File "/usr/lib/python2.7/dist-packages/autopilot/testcase.py", line 367, in _launch_test_application
    application_name=application_name,
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/__init__.py", line 154, in get_proxy_object_for_existing_process
    process
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/__init__.py", line 274, in _get_dbus_addresses_from_search_parameters
    % return_code
ProcessSearchError: Process exited with exit code: 255
}}}
======================================================================
ERROR: ubuntu_clock_app.tests.test_alarm.TestAlarm.test_add_recurring_type_alarm_must_add_to_alarm_list(weekend)
----------------------------------------------------------------------
Empty attachments:
  /var/log/syslog
  process-stdout

process-return-code: {{{255}}}
process-stderr: {{{
Testability driver loaded. Wire protocol version is "1.4".
file:///home/daniel/reboot-packaging/app/ubuntu-clock-app.qml:87 Type ClockPage unavailable
file:///home/daniel/reboot-packaging/app/clock/ClockPage.qml:149 Type UserWorldCityList unavailable
file:///home/daniel/reboot-packaging/app/worldclock/UserWorldCityList.qml:20 module "Timezone" is not installed
}}}

traceback-2: {{{
Traceback (most recent call last):
  File "/home/daniel/reboot-packaging/tests/autopilot/ubuntu_clock_app/tests/test_alarm.py", line 68, in setUp
    super(TestAlarm, self).setUp()
  File "/home/daniel/reboot-packaging/tests/autopilot/ubuntu_clock_app/tests/__init__.py", line 67, in setUp
    self.launch_test_local()
  File "/home/daniel/reboot-packaging/tests/autopilot/ubuntu_clock_app/tests/__init__.py", line 79, in launch_test_local
    emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
  File "/usr/lib/python2.7/dist-packages/autopilot/testcase.py", line 264, in launch_test_application
    return self._launch_test_application(launcher, application, *arguments)
  File "/usr/lib/python2.7/dist-packages/autopilot/testcase.py", line 367, in _launch_test_application
    application_name=application_name,
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/__init__.py", line 154, in get_proxy_object_for_existing_process
    process
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/__init__.py", line 274, in _get_dbus_addresses_from_search_parameters
    % return_code
ProcessSearchError: Process exited with exit code: 255
}}}

Ran 3 tests in 5.628s
FAILED (failures=3)
~/reboot-packaging/obj-x86_64-linux-gnu/app

Tags: reboot

Related branches

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

The errors indicate that the c++ plugins that clock app requires are not built before running the autopilot tests. I got "make autopilot" working by,

mkdir builddir && cd builddir
cmake ..
make
make autopilot

Changed in ubuntu-clock-app:
milestone: none → rtm
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Daniel Holbach (dholbach) wrote :

With bug 1354074 being fixed in lp:~dholbach/ubuntu-clock-app/reboot-packaging it looks like we're slowly getting somewhere. Still http://91.189.93.70:8080/job/generic-mediumtests-utopic/1430/console says "Did not find any tests".

Can anyone help with this?

Revision history for this message
Daniel Holbach (dholbach) wrote :
Revision history for this message
Daniel Holbach (dholbach) wrote :

My work-flow is:

Run once:
 sudo apt-get install packaging-dev qemu-system qemu-utils
 adt-buildvm-ubuntu-cloud -v
 bzr branch lp:~dholbach/ubuntu-clock-app/reboot-packaging

Then run
 cd reboot-packaging
 bzr bd -- -S -us -uc
 cd ..
 adt-run -U -o test-output --source ubuntu-clock-app_1.2.dsc --- qemu adt-utopic-amd64-cloud.img

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

I would differ by building a click and extracting tests from it instead :-)

Workflow:

bzr branch lp:~dholbach/ubuntu-clock-app/reboot-packaging
click-buddy --dir reboot-packaging (or build click in qtcreator, etc)
adt-run reboot-packaging com.ubuntu.clock.devel_0.1_all.click --- qemu adt-utopic-cloud.img

Revision history for this message
Daniel Holbach (dholbach) wrote :

What's the current method how autopkgtests are run?

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

To test a click on the device, something like;

adt-run reboot-packaging com.ubuntu.clock.devel_0.1_all.click --- ssh -s adb

Changed in ubuntu-clock-app:
status: Confirmed → Fix Committed
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-clock-app/reboot at revision 50, scheduled for release in ubuntu-clock-app, milestone rtm

Changed in ubuntu-clock-app:
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.