These failures are happening reliably in parallel buildbot. They are all for tests that are run multiple times but in different layers.
One approach to address them is to tackle bug 682772 and bug 682771.
Another approach is to fix the code regression that is causing this to happen.
bac is inclined to do both, AIUI.
======================================================================
ERROR: lib/lp/bugs/doc/bug-set-status.txt
worker ID: worker-6
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 270, in run
self.setUp()
File "/usr/lib/python2.6/doctest.py", line 2120, in setUp
self._dt_setUp(test)
File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/testing/systemdocs.py", line 120, in setUp
kw_setUp(test)
File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/bugs/tests/test_doc.py", line 82, in uploaderBugsSetUp
lobotomize_stevea()
File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/soyuz/tests/test_doc.py", line 52, in lobotomize_stevea
transaction.commit()
File "/var/lib/buildbot/launchpad/dependencies/eggs/transaction-1.0.0-py2.6.egg/transaction/_manager.py", line 93, in commit
return self.get().commit()
File "/var/lib/buildbot/launchpad/dependencies/eggs/transaction-1.0.0-py2.6.egg/transaction/_transaction.py", line 322, in commit
self._commitResources()
File "/var/lib/buildbot/launchpad/dependencies/eggs/transaction-1.0.0-py2.6.egg/transaction/_transaction.py", line 414, in _commitResources
rm.tpc_begin(self)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/zope/zstorm.py", line 251, in tpc_begin
self._store.flush()
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/store.py", line 503, in flush
self._flush_one(obj_info)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/store.py", line 560, in _flush_one
self._connection.execute(expr, noresult=True)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/databases/postgres.py", line 266, in execute
return Connection.execute(self, statement, params, noresult)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/database.py", line 238, in execute
raw_cursor = self.raw_execute(statement, params)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/databases/postgres.py", line 276, in raw_execute
return Connection.raw_execute(self, statement, params)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/database.py", line 322, in raw_execute
self._check_disconnect(raw_cursor.execute, *args)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/database.py", line 371, in _check_disconnect
return function(*args, **kwargs)
File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/testing/pgsql.py", line 121, in execute
return self.real_cursor.execute(*args, **kwargs)
ProgrammingError: permission denied for relation emailaddress
======================================================================
ERROR: lib/lp/bugs/doc/bug-set-status.txt
worker ID: worker-6
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 270, in run
self.setUp()
File "/usr/lib/python2.6/doctest.py", line 2120, in setUp
self._dt_setUp(test)
File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/testing/systemdocs.py", line 120, in setUp
kw_setUp(test)
File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/soyuz/tests/test_doc.py", line 81, in uploadQueueSetUp
lobotomize_stevea()
File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/soyuz/tests/test_doc.py", line 52, in lobotomize_stevea
transaction.commit()
File "/var/lib/buildbot/launchpad/dependencies/eggs/transaction-1.0.0-py2.6.egg/transaction/_manager.py", line 93, in commit
return self.get().commit()
File "/var/lib/buildbot/launchpad/dependencies/eggs/transaction-1.0.0-py2.6.egg/transaction/_transaction.py", line 322, in commit
self._commitResources()
File "/var/lib/buildbot/launchpad/dependencies/eggs/transaction-1.0.0-py2.6.egg/transaction/_transaction.py", line 414, in _commitResources
rm.tpc_begin(self)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/zope/zstorm.py", line 251, in tpc_begin
self._store.flush()
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/store.py", line 503, in flush
self._flush_one(obj_info)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/store.py", line 560, in _flush_one
self._connection.execute(expr, noresult=True)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/databases/postgres.py", line 266, in execute
return Connection.execute(self, statement, params, noresult)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/database.py", line 238, in execute
raw_cursor = self.raw_execute(statement, params)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/databases/postgres.py", line 276, in raw_execute
return Connection.raw_execute(self, statement, params)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/database.py", line 322, in raw_execute
self._check_disconnect(raw_cursor.execute, *args)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/database.py", line 371, in _check_disconnect
return function(*args, **kwargs)
File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/testing/pgsql.py", line 121, in execute
return self.real_cursor.execute(*args, **kwargs)
ProgrammingError: permission denied for relation emailaddress
======================================================================
ERROR: lib/lp/bugs/doc/bugmessage.txt
worker ID: worker-1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 270, in run
self.setUp()
File "/usr/lib/python2.6/doctest.py", line 2120, in setUp
self._dt_setUp(test)
File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/testing/systemdocs.py", line 120, in setUp
kw_setUp(test)
File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/soyuz/tests/test_doc.py", line 81, in uploadQueueSetUp
lobotomize_stevea()
File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/soyuz/tests/test_doc.py", line 52, in lobotomize_stevea
transaction.commit()
File "/var/lib/buildbot/launchpad/dependencies/eggs/transaction-1.0.0-py2.6.egg/transaction/_manager.py", line 93, in commit
return self.get().commit()
File "/var/lib/buildbot/launchpad/dependencies/eggs/transaction-1.0.0-py2.6.egg/transaction/_transaction.py", line 322, in commit
self._commitResources()
File "/var/lib/buildbot/launchpad/dependencies/eggs/transaction-1.0.0-py2.6.egg/transaction/_transaction.py", line 414, in _commitResources
rm.tpc_begin(self)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/zope/zstorm.py", line 251, in tpc_begin
self._store.flush()
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/store.py", line 503, in flush
self._flush_one(obj_info)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/store.py", line 560, in _flush_one
self._connection.execute(expr, noresult=True)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/databases/postgres.py", line 266, in execute
return Connection.execute(self, statement, params, noresult)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/database.py", line 238, in execute
raw_cursor = self.raw_execute(statement, params)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/databases/postgres.py", line 276, in raw_execute
return Connection.raw_execute(self, statement, params)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/database.py", line 322, in raw_execute
self._check_disconnect(raw_cursor.execute, *args)
File "/var/lib/buildbot/launchpad/dependencies/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.6-linux-i686.egg/storm/database.py", line 371, in _check_disconnect
return function(*args, **kwargs)
File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/testing/pgsql.py", line 121, in execute
return self.real_cursor.execute(*args, **kwargs)
ProgrammingError: permission denied for relation emailaddress
======================================================================
FAILURE: lib/lp/bugs/doc/bugmessage.txt
worker ID: worker-1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 279, in run
testMethod()
File "/usr/lib/python2.6/doctest.py", line 2152, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for bugmessage.txt
File "lib/lp/bugs/doc/bugmessage.txt", line 0
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 97, in bugmessage.txt
Failed example:
test_message = bug_one.newMessage(
owner=bug_watch_updater,
subject="test message subject",
content="""This is a test comment. This bug is the same as the
one described here
http://some.bugzilla/show_bug.cgi?id=9876
See also CVE-1991-9911
""")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest bugmessage.txt[21]>", line 1, in <module>
test_message = bug_one.newMessage(
Unauthorized: (<Bug at 0x12467c8c>, 'newMessage', 'launchpad.Edit')
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 105, in bugmessage.txt
Failed example:
for cve in bug_one.cves:
print cve.displayname
Differences (ndiff with -expected +actual):
- CVE-1991-9911
CVE-1999-8979
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 109, in bugmessage.txt
Failed example:
for bugwatch in bug_one.watches:
print bugwatch.url
Differences (ndiff with -expected +actual):
https://bugzilla.mozilla.org/show_bug.cgi?id=123543
https://bugzilla.mozilla.org/show_bug.cgi?id=2000
https://bugzilla.mozilla.org/show_bug.cgi?id=42
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=304014
- http://some.bugzilla/show_bug.cgi?id=9876
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 122, in bugmessage.txt
Failed example:
print bug_message.message == test_message
Differences (ndiff with -expected +actual):
- True
+ False
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 139, in bugmessage.txt
Failed example:
bugmsg = bug_one.linkMessage(message)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest bugmessage.txt[29]>", line 1, in <module>
bugmsg = bug_one.linkMessage(message)
Unauthorized: (<Bug at 0x12467c8c>, 'linkMessage', 'launchpad.Edit')
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 140, in bugmessage.txt
Failed example:
bugmsg
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest bugmessage.txt[30]>", line 1, in <module>
bugmsg
NameError: name 'bugmsg' is not defined
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 142, in bugmessage.txt
Failed example:
bugmsg.index
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest bugmessage.txt[31]>", line 1, in <module>
bugmsg.index
NameError: name 'bugmsg' is not defined
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 144, in bugmessage.txt
Failed example:
for cve in bug_one.cves:
print cve.displayname
Differences (ndiff with -expected +actual):
- CVE-1991-3333
- CVE-1991-9911
CVE-1999-8979
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 149, in bugmessage.txt
Failed example:
for bugwatch in bug_one.watches:
print bugwatch.url
Differences (ndiff with -expected +actual):
https://bugzilla.mozilla.org/show_bug.cgi?id=123543
https://bugzilla.mozilla.org/show_bug.cgi?id=2000
https://bugzilla.mozilla.org/show_bug.cgi?id=42
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=304014
- http://some.bugzilla/show_bug.cgi?id=1234
- http://some.bugzilla/show_bug.cgi?id=9876
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 165, in bugmessage.txt
Failed example:
test_message = bug_one.newMessage(
owner=bug_watch_updater,
subject="test message subject",
content="This is a test comment.")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest bugmessage.txt[34]>", line 1, in <module>
test_message = bug_one.newMessage(
Unauthorized: (<Bug at 0x12467c8c>, 'newMessage', 'launchpad.Edit')
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 173, in bugmessage.txt
Failed example:
bug_one.date_last_message == test_message.datecreated
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest bugmessage.txt[37]>", line 1, in <module>
bug_one.date_last_message == test_message.datecreated
ForbiddenAttribute: ('datecreated', <BugMessage at 0x124674ac message=<Message at 0x12467f8c id=50> index=2>)
======================================================================
FAILURE: lib/lp/bugs/doc/bugmessage.txt
worker ID: worker-1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 279, in run
testMethod()
File "/usr/lib/python2.6/doctest.py", line 2152, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for bugmessage.txt
File "lib/lp/bugs/doc/bugmessage.txt", line 0
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 97, in bugmessage.txt
Failed example:
test_message = bug_one.newMessage(
owner=bug_watch_updater,
subject="test message subject",
content="""This is a test comment. This bug is the same as the
one described here
http://some.bugzilla/show_bug.cgi?id=9876
See also CVE-1991-9911
""")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest bugmessage.txt[21]>", line 1, in <module>
test_message = bug_one.newMessage(
Unauthorized: (<Bug at 0x12484b8c>, 'newMessage', 'launchpad.Edit')
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 105, in bugmessage.txt
Failed example:
for cve in bug_one.cves:
print cve.displayname
Differences (ndiff with -expected +actual):
- CVE-1991-9911
CVE-1999-8979
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 109, in bugmessage.txt
Failed example:
for bugwatch in bug_one.watches:
print bugwatch.url
Differences (ndiff with -expected +actual):
https://bugzilla.mozilla.org/show_bug.cgi?id=123543
https://bugzilla.mozilla.org/show_bug.cgi?id=2000
https://bugzilla.mozilla.org/show_bug.cgi?id=42
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=304014
- http://some.bugzilla/show_bug.cgi?id=9876
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 122, in bugmessage.txt
Failed example:
print bug_message.message == test_message
Differences (ndiff with -expected +actual):
- True
+ False
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 139, in bugmessage.txt
Failed example:
bugmsg = bug_one.linkMessage(message)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest bugmessage.txt[29]>", line 1, in <module>
bugmsg = bug_one.linkMessage(message)
Unauthorized: (<Bug at 0x12484b8c>, 'linkMessage', 'launchpad.Edit')
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 140, in bugmessage.txt
Failed example:
bugmsg
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest bugmessage.txt[30]>", line 1, in <module>
bugmsg
NameError: name 'bugmsg' is not defined
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 142, in bugmessage.txt
Failed example:
bugmsg.index
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest bugmessage.txt[31]>", line 1, in <module>
bugmsg.index
NameError: name 'bugmsg' is not defined
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 144, in bugmessage.txt
Failed example:
for cve in bug_one.cves:
print cve.displayname
Differences (ndiff with -expected +actual):
- CVE-1991-3333
- CVE-1991-9911
CVE-1999-8979
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 149, in bugmessage.txt
Failed example:
for bugwatch in bug_one.watches:
print bugwatch.url
Differences (ndiff with -expected +actual):
https://bugzilla.mozilla.org/show_bug.cgi?id=123543
https://bugzilla.mozilla.org/show_bug.cgi?id=2000
https://bugzilla.mozilla.org/show_bug.cgi?id=42
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=304014
- http://some.bugzilla/show_bug.cgi?id=1234
- http://some.bugzilla/show_bug.cgi?id=9876
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 165, in bugmessage.txt
Failed example:
test_message = bug_one.newMessage(
owner=bug_watch_updater,
subject="test message subject",
content="This is a test comment.")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest bugmessage.txt[34]>", line 1, in <module>
test_message = bug_one.newMessage(
Unauthorized: (<Bug at 0x12484b8c>, 'newMessage', 'launchpad.Edit')
----------------------------------------------------------------------
File "lib/lp/bugs/doc/bugmessage.txt", line 173, in bugmessage.txt
Failed example:
bug_one.date_last_message == test_message.datecreated
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest bugmessage.txt[37]>", line 1, in <module>
bug_one.date_last_message == test_message.datecreated
ForbiddenAttribute: ('datecreated', <BugMessage at 0x1248c82c message=<Message at 0x12480cac id=50> index=2>)
======================================================================
FAILURE: lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt
worker ID: worker-5
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 279, in run
testMethod()
File "/usr/lib/python2.6/doctest.py", line 2152, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for notifications-linked-bug.txt
File "lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt", line 0
----------------------------------------------------------------------
File "lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt", line 19, in notifications-linked-bug.txt
Failed example:
bugtask.transitionToStatus(BugTaskStatus.CONFIRMED, no_priv)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest notifications-linked-bug.txt[10]>", line 1, in <module>
Unauthorized: (<BugTask for bug 16 on <Distribution 'Ubuntu' (ubuntu)>>, 'transitionToStatus', 'launchpad.Edit')
----------------------------------------------------------------------
File "lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt", line 26, in notifications-linked-bug.txt
Failed example:
len(notifications)
Differences (ndiff with -expected +actual):
- 1
+ 0
----------------------------------------------------------------------
File "lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt", line 29, in notifications-linked-bug.txt
Failed example:
print notifications[0].metadata['recipient_set']
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest notifications-linked-bug.txt[15]>", line 1, in <module>
IndexError: list index out of range
----------------------------------------------------------------------
File "lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt", line 32, in notifications-linked-bug.txt
Failed example:
print notifications[0].subject
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest notifications-linked-bug.txt[16]>", line 1, in <module>
IndexError: list index out of range
----------------------------------------------------------------------
File "lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt", line 35, in notifications-linked-bug.txt
Failed example:
print notifications[0].body
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest notifications-linked-bug.txt[17]>", line 1, in <module>
IndexError: list index out of range
======================================================================
FAILURE: lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt
worker ID: worker-5
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 279, in run
testMethod()
File "/usr/lib/python2.6/doctest.py", line 2152, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for notifications-linked-bug.txt
File "lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt", line 0
----------------------------------------------------------------------
File "lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt", line 19, in notifications-linked-bug.txt
Failed example:
bugtask.transitionToStatus(BugTaskStatus.CONFIRMED, no_priv)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest notifications-linked-bug.txt[10]>", line 1, in <module>
Unauthorized: (<BugTask for bug 16 on <Distribution 'Ubuntu' (ubuntu)>>, 'transitionToStatus', 'launchpad.Edit')
----------------------------------------------------------------------
File "lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt", line 26, in notifications-linked-bug.txt
Failed example:
len(notifications)
Differences (ndiff with -expected +actual):
- 1
+ 0
----------------------------------------------------------------------
File "lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt", line 29, in notifications-linked-bug.txt
Failed example:
print notifications[0].metadata['recipient_set']
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest notifications-linked-bug.txt[15]>", line 1, in <module>
IndexError: list index out of range
----------------------------------------------------------------------
File "lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt", line 32, in notifications-linked-bug.txt
Failed example:
print notifications[0].subject
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest notifications-linked-bug.txt[16]>", line 1, in <module>
IndexError: list index out of range
----------------------------------------------------------------------
File "lib/lp/coop/answersbugs/tests/notifications-linked-bug.txt", line 35, in notifications-linked-bug.txt
Failed example:
print notifications[0].body
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest notifications-linked-bug.txt[17]>", line 1, in <module>
IndexError: list index out of range
The bugmessage.txt doctest is run in multiple layers. The bug can be demonstrated locally:
% cat "lib/lp/ bugs/doc/ bugmessage. txt" > t0
% bin/test --list-tests --load-list t0 mail.tests. test_doc. ProcessMailLaye r tests: bugs/doc/ bugmessage. txt bugs/doc/ bugmessage. txt bugs/doc/ bugmessage. txt bugs/doc/ bugmessage. txt bugs/doc/ bugmessage. txt
Listing lp.services.
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
Using just --list-tests shows the correct layers:
% bin/test --list-tests -t bugmessage.txt layers. LaunchpadZopele ssLayer tests: bugs/doc/ bugmessage. txt bugs/doc/ bugmessage. txt bugs/doc/ bugmessage. txt mail.tests. test_doc. ProcessMailLaye r tests: bugs/doc/ bugmessage. txt layers. LaunchpadFuncti onalLayer tests: bugs/doc/ bugmessage. txt
Listing lp.testing.
lib/lp/
lib/lp/
lib/lp/
Listing lp.services.
lib/lp/
Listing lp.testing.
lib/lp/