Comment 0 for bug 954319

Revision history for this message
Gary Poster (gary) wrote :

To dupe, unzip attatched lists.zip and run

./bin/test -vv --load-list=tmpXctd5i

or similar. Eventually you will start to see hundreds or thousands of tests failing because a readonly.txt marker is not cleaned up. The below are the first obviously related test failures, though an earlier one ( lp.services.webapp.tests.test_dbpolicy.LayerDatabasePolicyTestCase.test_WebServiceRequest_uses_LaunchpadDatabasePolicy fails right before these, for instance) might actually be the/a guilty party.

This can be duplicated outside of the parallel test machinery; it is unrelated.

======================================================================
FAIL: lp.services.webapp.tests.test_dbpolicy.LayerDatabasePolicyTestCase.test_WebServiceRequest_uses_ReadOnlyDatabasePolicy
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/services/webapp/tests/test_dbpolicy.py", line 237, in test_WebServiceRequest_uses_ReadOnlyDatabasePolicy
    touch_read_only_file()
  File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/services/database/tests/readonly.py", line 39, in touch_read_only_file
    assert is_read_only(), "Switching to read-only failed."
AssertionError: Switching to read-only failed.
======================================================================
FAIL: lp.services.webapp.tests.test_publication.TestReadOnlyNotifications.test_notification
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/services/webapp/tests/test_publication.py", line 205, in setUp
    touch_read_only_file()
  File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/services/database/tests/readonly.py", line 33, in touch_read_only_file
    "This function must not be called when a read-only.txt file "
AssertionError: This function must not be called when a read-only.txt file already exists.
======================================================================
FAIL: lp.services.webapp.tests.test_publication.TestReadOnlyNotifications.test_notification_xmlrpc
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/services/webapp/tests/test_publication.py", line 205, in setUp
    touch_read_only_file()
  File "/var/lib/buildbot/slaves/slave/lucid-devel/build/lib/lp/services/database/tests/readonly.py", line 33, in touch_read_only_file
    "This function must not be called when a read-only.txt file "
AssertionError: This function must not be called when a read-only.txt file already exists.