← Back to team overview

touch-packages team mailing list archive

[Bug 1498541] Re: Automated screen unlock not working on wily images

 

I just tried following http://ubuntu-test-cases-
touch.readthedocs.org/en/latest/ on mako with devel-proposed:

$> IMAGE_OPT="--bootstrap --developer-mode --channel=ubuntu-touch/devel-proposed" ./scripts/provision.sh -w
FLASHING DEVICE
Attempting adb reboot bootloader
=========== Device in fastboot ==========
WARNING --developer-mode and --password are dangerous as they remove security features from your device
2015/09/22 19:00:23 Expecting the device to be in the bootloader... waiting
2015/09/22 19:00:23 Device is |mako|
2015/09/22 19:00:23 Flashing version 311 from ubuntu-touch/devel-proposed channel and server https://system-image.ubuntu.com to device mako
6.29 MB / 6.29 MB [========================================================================================================================================================================================================================================] 100.00 % 5.02 MB/s 
52.43 MB / 52.43 MB [======================================================================================================================================================================================================================================] 100.00 % 9.61 MB/s 
302.71 MB / 302.71 MB [===================================================================================================================================================================================================================================] 100.00 % 16.90 MB/s 
2015/09/22 19:00:59 Start pushing /home/michal/.cache/ubuntuimages/pool/ubuntu-347a20361b2397d6875cbacec432acd51a6771f82038a2ee29afd5a74d5d4938.tar.xz to device
2015/09/22 19:00:59 Start pushing /home/michal/.cache/ubuntuimages/gpg/image-signing.tar.xz to device
2015/09/22 19:00:59 Start pushing /home/michal/.cache/ubuntuimages/gpg/image-master.tar.xz to device
2015/09/22 19:00:59 Start pushing /home/michal/.cache/ubuntuimages/pool/custom-a4fc258c566f523739147a951e9dd53c03b46d7b0ca768dd4d5dd5a3738a0a4d.tar.xz to device
2015/09/22 19:00:59 Start pushing /home/michal/.cache/ubuntuimages/pool/device-00f7ea9bb6e1b445460b981872b273c4a49cea282a4478831543ccf9d83d7ab2.tar.xz to device
2015/09/22 19:00:59 Start pushing /home/michal/.cache/ubuntuimages/ubuntu-touch/devel-proposed/ubuntu/mako/version-311.tar.xz to device
2015/09/22 19:00:59 Done pushing /home/michal/.cache/ubuntuimages/gpg/image-signing.tar.xz to device
2015/09/22 19:00:59 Done pushing /home/michal/.cache/ubuntuimages/gpg/image-master.tar.xz to device
2015/09/22 19:00:59 Done pushing /home/michal/.cache/ubuntuimages/ubuntu-touch/devel-proposed/ubuntu/mako/version-311.tar.xz to device
2015/09/22 19:01:02 Done pushing /home/michal/.cache/ubuntuimages/pool/custom-a4fc258c566f523739147a951e9dd53c03b46d7b0ca768dd4d5dd5a3738a0a4d.tar.xz to device
2015/09/22 19:01:13 Done pushing /home/michal/.cache/ubuntuimages/pool/device-00f7ea9bb6e1b445460b981872b273c4a49cea282a4478831543ccf9d83d7ab2.tar.xz to device
2015/09/22 19:01:59 Done pushing /home/michal/.cache/ubuntuimages/pool/ubuntu-347a20361b2397d6875cbacec432acd51a6771f82038a2ee29afd5a74d5d4938.tar.xz to device
2015/09/22 19:01:59 Created ubuntu_command: /home/michal/.cache/ubuntuimages/ubuntu_commands149842736
2015/09/22 19:01:59 Rebooting into recovery to flash
SETTING UP WIFI
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/32011/1876
ADB_RC=0
Network file is /home/michal/.ubuntu-ci/wifi.conf
Provisioning network on device
Device 'wlan0' successfully activated with '332e3b2f-782c-42ae-ab32-a065f7ec3ac5'.

Network setup complete
PING launchpad.net (91.189.89.223) 56(84) bytes of data.
CUSTOMIZING IMAGE

====

The process was stuck here. The device is in limbo, I believe it tried
to reboot but got stuck after shutting down processes. This is
consistent with the behaviour I saw while using the device - it does not
reboot during normal use either.

Holding power button for a long time got me the charging screen, and
turning the device on again made the process continue.

====

PING launchpad.net (91.189.89.222) 56(84) bytes of data.
SETTING UP SUDO
[sudo] password for phablet: method return time=1442942215.865996 sender=:1.7 -> destination=:1.41 serial=30 reply_serial=2
SETTING UP CLICK PACKAGES
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/32011/1607
ADB_RC=0
Fetching unity8 - into /tmp/tmpiwvUuQ
Downloading unity8 version 8.11+15.10.20150915-0ubuntu1 from https://launchpad.net/ubuntu/+archive/primary/+files/unity8_8.11%2B15.10.20150915.orig.tar.gz
Keeping tests from obtained package
Moving /tmp/tmpiwvUuQ/unity8-8.11+15.10.20150915/tests/autopilot/unity8 to /tmp/tmpviQ5tL
Fetching ubuntu-ui-toolkit - into /tmp/tmpKAp0g_
Downloading ubuntu-ui-toolkit version 1.3.1627+15.10.20150908-0ubuntu1 from https://launchpad.net/ubuntu/+archive/primary/+files/ubuntu-ui-toolkit_1.3.1627%2B15.10.20150908.orig.tar.gz
Keeping tests from obtained package
Moving /tmp/tmpKAp0g_/ubuntu-ui-toolkit-1.3.1627+15.10.20150908/tests/autopilot/ubuntuuitoolkit to /tmp/tmpviQ5tL
Only keeping entries with x-source
Checking out lp:dropping-letters to /tmp/tmpKS_ddu/work
Moving /tmp/tmpKS_ddu/work/tests/autopilot/dropping_letters_app to /tmp/tmpviQ5tL                                                      
Checking out lp:ubuntu-filemanager-app to /tmp/tmpCXa6CA/work
Moving /tmp/tmpCXa6CA/work/tests/autopilot/filemanager to /tmp/tmpviQ5tL                                                               
Checking out lp:reminders-app to /tmp/tmpDY1slE/work
Moving /tmp/tmpDY1slE/work/tests/autopilot/evernote to /tmp/tmpviQ5tL                                                                  
Moving /tmp/tmpDY1slE/work/tests/autopilot/reminders to /tmp/tmpviQ5tL
Moving /tmp/tmpDY1slE/work/tests/autopilot/thrift to /tmp/tmpviQ5tL
Checking out lp:ubuntu-rssreader-app/reboot to /tmp/tmpc3gwvY/work
Traceback (most recent call last):                                                                                                     
  File "/usr/bin/phablet-click-test-setup", line 266, in <module>
    main()
  File "/usr/bin/phablet-click-test-setup", line 255, in main
    fetch_click_tests(adb, test_dir, args.user, args.click)
  File "/usr/bin/phablet-click-test-setup", line 240, in fetch_click_tests
    test_dir)
  File "/usr/bin/phablet-click-test-setup", line 211, in get_bzr_tests
    os.listdir(test_base_dir))
OSError: [Errno 2] No such file or directory: '/tmp/tmpc3gwvY/work/tests/autopilot'
Removing directory /tmp/tmpc3gwvY
Removing directory /tmp/tmpDY1slE
Removing directory /tmp/tmpCXa6CA
Removing directory /tmp/tmpKS_ddu
Removing directory /tmp/tmpKAp0g_
Removing directory /tmp/tmpiwvUuQ
Removing directory /tmp/tmpviQ5tL

====

The above traced out, not sure if that's expected or not.

====

$>  michal@michal-laptop  ~/dev/canonical/phablet/ubuntu-test-cases  ./utils/host/reboot-and-unlock.sh
Installing unity8-autopilot as a pre-req for unlocking screen
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  autopilot-qt4 autopilot-qt5 binutils dpkg-dev libaudio2 libautopilot-qt
  libfontenc1 libgl1-mesa-glx libjs-jquery libjs-underscore libmng2
  libqt4-dbus libqt4-declarative libqt4-network libqt4-script libqt4-sql
  libqt4-xml libqt4-xmlpatterns libqt5quicktest5 libqtcore4 libqtdbus4
  libqtgui4 libwebp5 libwebpmux1 libxaw7 libxcb-dri3-0 libxcb-glx0
  libxcb-present0 libxfont1 libxkbfile1 libxmu6 libxmuu1 libxpathselect1.4v5
  libxpm4 libxshmfence1 libxt6 libxxf86vm1 make ofono-phonesim patch
  python3-autopilot python3-autopilot-trace python3-dateutil python3-decorator
  python3-evdev python3-extras python3-fixtures python3-junitxml
  python3-linecache2 python3-mimeparse python3-pbr python3-pil python3-psutil
  python3-subunit python3-testscenarios python3-testtools python3-traceback2
  python3-unittest2 qdbus qml-module-qttest qtcore4-l10n
  qttestability-autopilot ubuntu-keyboard-autopilot ubuntu-keyboard-tests
  ubuntu-ui-toolkit-autopilot ubuntu-ui-toolkit-examples unity8-fake-env
  url-dispatcher-tools x11-xkb-utils xauth xserver-common xvfb
Suggested packages:
  binutils-doc debian-keyring nas javascript-common
  libqt4-declarative-folderlistmodel libqt4-declarative-gestures
  libqt4-declarative-particles libqt4-declarative-shaders qt4-qmlviewer
  libqt4-dev libicu52 qt4-qtconfig make-doc ed diffutils-doc python-pil-doc
  python3-pil-dbg python-psutil-doc python-testtools-doc
Recommended packages:
  gcc c-compiler build-essential fakeroot libalgorithm-merge-perl
  libqt4-sql-mysql libqt4-sql-odbc libqt4-sql-psql libqt4-sql-sqlite
  gir1.2-gconf-2.0 gir1.2-gtk-3.0 gir1.2-ibus-1.0 libautopilot-gtk
  python3-xlib recordmydesktop ubuntu-ui-toolkit-doc xfonts-base
The following NEW packages will be installed:
  autopilot-qt4 autopilot-qt5 binutils dpkg-dev libaudio2 libautopilot-qt
  libfontenc1 libgl1-mesa-glx libjs-jquery libjs-underscore libmng2
  libqt4-dbus libqt4-declarative libqt4-network libqt4-script libqt4-sql
  libqt4-xml libqt4-xmlpatterns libqt5quicktest5 libqtcore4 libqtdbus4
  libqtgui4 libwebp5 libwebpmux1 libxaw7 libxcb-dri3-0 libxcb-glx0
  libxcb-present0 libxfont1 libxkbfile1 libxmu6 libxmuu1 libxpathselect1.4v5
  libxpm4 libxshmfence1 libxt6 libxxf86vm1 make ofono-phonesim patch
  python3-autopilot python3-autopilot-trace python3-dateutil python3-decorator
  python3-evdev python3-extras python3-fixtures python3-junitxml
  python3-linecache2 python3-mimeparse python3-pbr python3-pil python3-psutil
  python3-subunit python3-testscenarios python3-testtools python3-traceback2
  python3-unittest2 qdbus qml-module-qttest qtcore4-l10n
  qttestability-autopilot ubuntu-keyboard-autopilot ubuntu-keyboard-tests
  ubuntu-ui-toolkit-autopilot ubuntu-ui-toolkit-examples unity8-autopilot
  unity8-fake-env url-dispatcher-tools x11-xkb-utils xauth xserver-common xvfb
0 upgraded, 73 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.3 MB of archives.
After this operation, 59.3 MB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports/ wily/main libxmuu1 armhf 2:1.1.2-1 [9,208 B]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ wily/main libxt6 armhf 1:1.1.5-0ubuntu1 [130 kB]

[...]

NFO:reboot-and-wait:Restarting device... wait
INFO:reboot-and-wait:Restarting device... wait complete
INFO:reboot-and-wait:Waiting for networking to become active...
PING launchpad.net (91.189.89.223) 56(84) bytes of data.
INFO:reboot-and-wait:Network is active
': Unlock attempt 1 failed, script output: 'Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.UnityGreeter was not provided by any .service files
I: Unlock passed

$> ./scripts/run-autopilot-tests.sh -a unity8

[...]

====

Unity8 autopilot tests are running. The errors from the jenkins run:

> initctl: unable to determine sessions
> Error connecting: Cannot autolaunch D-Bus without X11 $DISPLAY

basically say neither UPSTART_SESSION or DBUS_SESSION_BUS_ADDRESS are
set in the environment. This is a problem with the shell environment,
not unity8 or the unlock script. Not sure what's different in what I did
above vs. what jenkins did, but the process worked here.

** Also affects: ubuntu-test-cases
   Importance: Undecided
       Status: New

** Changed in: unity8 (Ubuntu)
       Status: New => Incomplete

** Changed in: unity8 (Ubuntu)
     Assignee: Josh Arenson (josharenson) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1498541

Title:
  Automated screen unlock not working on wily images

Status in Ubuntu Test Cases:
  New
Status in unity8 package in Ubuntu:
  Incomplete

Bug description:
  The method to automatically unlock the screen prior to running
  autopilot tests is not working on wily images. For example:

  https://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-wily-
  mako/417/console

  The CI automation uses this script to setup and perform the unlock:
  http://bazaar.launchpad.net/~ubuntu-test-case-dev/ubuntu-test-cases/touch/view/head:/utils/host/reboot-and-unlock.sh

  The failure is seen on images from "ubuntu-touch/devel-
  proposed/ubuntu", in this case image 276.

  Attached is the full console log from that run.

  [The relavent messages are:]
  I: Unlock attempt 1 failed, script output: 'initctl: unable to determine sessions
  initctl: unable to determine sessions
  Error connecting: Cannot autolaunch D-Bus without X11 $DISPLAY
  '
  I: Unlock attempt 2 failed, script output: 'initctl: unable to determine sessions
  initctl: unable to determine sessions
  Error connecting: Cannot autolaunch D-Bus without X11 $DISPLAY
  '
  I: Unlock attempt 3 failed, script output: 'initctl: unable to determine sessions
  initctl: unable to determine sessions
  Error connecting: Cannot autolaunch D-Bus without X11 $DISPLAY
  '
  I: Unlock attempt 4 failed, script output: 'initctl: unable to determine sessions
  initctl: unable to determine sessions
  Error connecting: Cannot autolaunch D-Bus without X11 $DISPLAY
  '
  I: Unlock attempt 5 failed, script output: 'initctl: unable to determine sessions
  initctl: unable to determine sessions
  Error connecting: Cannot autolaunch D-Bus without X11 $DISPLAY
  '
  I: Too many unlock failures, giving up

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-test-cases/+bug/1498541/+subscriptions


References