[Bug 1315767] Re: upstart works as expected, notify-dbus-address tests fail depending on system-wide session jobs

Dimitri John Ledkov launchpad at surgut.co.uk
Wed May 7 19:07:33 UTC 2014


After starting upstart i've asserted that no jobs are running, however
there there a few of them running, including user session dbus job that
did notify upstart of its dbus address. Later in the test when we tried
to notify our test upstart with test dbus address, test upstart would
not connect to test dbus since it only accept dbus connections once and
was already running on the other dbus.

This is racy & dependant on the jobs configured in
/usr/share/upstart/session/

I've resolved this using "--no-startup-event" option. But it is
inherently racy, as potentially all user-session test upstart spawns are
affected. Thus something generic should be implemented in the
test_common_utilities, such that when test-upstart in user session mode
is spawned global jobs are not executed.

** Summary changed:

- intermitent test failure
+ upstart works as expected, notify-dbus-address tests fail depending on system-wide session jobs

** Also affects: upstart
   Importance: Undecided
       Status: New

** Changed in: upstart
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/1315767

Title:
  upstart works as expected, notify-dbus-address tests fail depending on
  system-wide session jobs

Status in Upstart:
  Confirmed
Status in “upstart” package in Ubuntu:
  New

Bug description:
  not ok 204 - ensure Session Init connects to D-Bus session bus when notified
  	wrong string value, expected 'init (upstart [0-9.][0-9.]*' got 'initctl: Name "com.ubuntu.Upstart" does not exist'
  	at tests/test_initctl.c:17285 (test_dbus_connection).
  /bin/bash: line 5:  6113 Aborted                 ${dir}$tst
  FAIL: test_initctl

  I've seen this failure on amd64, arm64 and powerpc. Retries did
  eventually pass the test-suite on amd64 & powerpc. However arm64 still
  fails on the official distro builders.

To manage notifications about this bug go to:
https://bugs.launchpad.net/upstart/+bug/1315767/+subscriptions



More information about the foundations-bugs mailing list