ProcessSearchError gives poor error message

Bug #1239427 reported by Thomi Richards
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Autopilot
Fix Released
High
Unassigned
autopilot (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The ProcessSearchError exception doesn't really tell us what we need to know. For example:

http://10.97.0.26:8080/job/generic-mediumtests-runner-maguro/2355/testReport/junit/ubuntuuitoolkit.tests.test_emulators/ToggleTestCase/test_check_toggle_already_checked_checkbox_/

The relevant log being:

test-log: {{{
09:26:13.826 INFO globals:49 - ************************************************************
09:26:13.831 INFO globals:50 - Starting test ubuntuuitoolkit.tests.test_emulators.ToggleTestCase.test_check_toggle_already_checked (checkbox)
09:26:13.833 WARNING testcase:118 - No tracing available - install the python-autopilot-trace package!
09:26:13.840 WARNING testcase:155 - Process manager backend unavailable, application snapshot support disabled.
09:26:14.070 INFO __init__:156 - Launching process: ['/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene', '-testability', '-I/usr/lib/modules', '/tmp/tmp8SnKub.qml', '--desktop_file_hint=/home/phablet/.local/share/applications/tmpJ0XLVA.desktop']
09:26:26.308 INFO testcase:552 - waiting for process to exit.
09:26:26.311 INFO testcase:554 - Killing process 2761
}}}

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ubuntuuitoolkit/tests/test_emulators.py", line 421, in setUp
    super(ToggleTestCase, self).setUp()
  File "/usr/lib/python2.7/dist-packages/ubuntuuitoolkit/tests/__init__.py", line 79, in setUp
    self.launch_application()
  File "/usr/lib/python2.7/dist-packages/ubuntuuitoolkit/tests/__init__.py", line 92, in launch_application
    app_type='qt')
  File "/usr/lib/python2.7/dist-packages/autopilot/testcase.py", line 284, in launch_test_application
    dbus_bus
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/__init__.py", line 187, in get_autopilot_proxy_object_for_process
    dbus_bus=dbus_bus,
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/__init__.py", line 271, in get_proxy_object_for_existing_process
    raise ProcessSearchError("Search criteria returned no results")
ProcessSearchError: Search criteria returned no results

Is it possible to display the search criteria in this case ?

We should also make it clear to distinguish between "the process failed to launch", and "the process launched, but we couldn't find the dbus interface."

Related branches

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:autopilot at revision 417, scheduled for release in autopilot, milestone 1.4

Changed in autopilot:
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (4.1 KiB)

This bug was fixed in the package autopilot - 1.4+14.04.20140129-0ubuntu1

---------------
autopilot (1.4+14.04.20140129-0ubuntu1) trusty; urgency=low

  [ Barry Warsaw ]
  * Make Autopilot tracepoint extension module compatible with python 3.
    (LP: #1266574)

  [ Steve Langasek ]
  * Fix the autopilot-touch package to be Architecture: all instead of
    having it be Architecture: any with a wrong architecture exclusion
    of a dependency.

  [ Christopher Lee ]
  * Handle xml parse exception nicely as well as add some nicer
    logging/feedback.
  * Fixes issues with load_test_suite_from_name.
  * Make autopilot able to run it's own tests again.
  * When setting up logging take into account not all modes/commands
    have a verbose argument.
  * Fixes the issue when listing an non-existent test suite raised an
    uncaught exception. .
  * Minor fix for a failing functional test, now passes under python 2
    and 3.
  * Minor fixup of TypeError in platform docs re: skipping tests.
  * Add details to Faq docs re: launching (click) applications. (LP:
    #1257148)
  * Refactor of the application launching code (incl. tests).
  * Fix issue with launching click app and added test to cover it.
  * Ensure test discovery looks and uses cwd before system path.
  * Attempts to use the newer version call to 'launch_uris_as_manager',
    falls back to the simpler 'launch_uris' if that fails.
  * Click applications now provide application_name to
    get_proxy_object_for_existing_process. (LP: #1274292)

  [ Thomi Richards ]
  * Fix tox.ini config file to restrict flake8 runs to the autopilot/
    directory.
  * Make autopilot fail when no command is specified. (LP: #1255334)
  * Move the contents of the 'autopilot' script into autopilot/run.py,
    and make setuptools generate the autopilot script for us.
  * Make autopilot understand how the "-qt=XXX" option works. (LP:
    #1255405)
  * Handle xml parse exception nicely as well as add some nicer
    logging/feedback.
  * Fix autopilot test case loading. (LP: #1255752, #1255659)
  * Move the BackendException class to solve a circular import.
  * Make autopilot support subunit bytestream output. (LP: #1255662)
  * Make autopilot able to run it's own tests again.
  * Remove an incorrect comment from the source code.
  * Fix some unit tests that were printing to stdout.
  * Lay the groundwork for attaching files to test results.
  * Fix failing tests in python3.
  * Add click package log file to test result. (LP: #1257453)
  * Add a simple shell script that can be used to generate unit test
    coverage for autopilot itself.
  * Add unit tests for common input code.
  * Remove some unused code code in the type support unit tests.
  * Don't include test lines in coverage count.
  * Add a few missing test cases, increase test case coverage.
  * Add unit tests for process snapshot support.
  * A few tweaks to the make_coverage script to make it a bit more
    useful.
  * Fix issue with launching click app and added test to cover it.
  * Add suppoprt for debugging profiles to autopilot.
  * Add ability to control autopilot timeout values from the command
    line. Refactor code so I can add testing to au...

Read more...

Changed in autopilot (Ubuntu):
status: New → Fix Released
Changed in autopilot:
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.