Intermittent test failures: TestPullerMasterIntegration.test_mirror

Bug #890816 reported by Gary Poster
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Unassigned

Bug Description

As seen in https://lpbuildbot.canonical.com/builders/lucid_lp/builds/1557/steps/shell_6/logs/summary , these tests are failing intermittently:

   lp.codehosting.puller.tests.test_scheduler.TestPullerMasterIntegration.test_mirror
   lp.translations.scripts.tests.test_translations_to_branch.TestExportTranslationsToBranch.test_exportToStaleBranch
   lp.translations.scripts.tests.test_translations_to_branch.TestExportTranslationsToBranch.test_sets_bzr_id
   lp.translations.scripts.tests.test_translations_to_branch.TestExportTranslationsToBranch.test_translations_export_to_branch
   lp.translations.tests.test_rosetta_branches_script.TestRosettaBranchesScript.test_rosetta_branches_script
   lp.translations.tests.test_rosetta_branches_script.TestRosettaBranchesScript.test_rosetta_branches_script_oops

The first test fails as follows, after which the other tests fail with bzr errors. I'm guessing that test_mirror is causing the other problems, so I'm only disabling it for now.

Error in test lp.codehosting.puller.tests.test_scheduler.TestPullerMasterIntegration.test_mirror
Traceback (most recent call last):
_StringException: Empty attachments:
  twisted-log

log: {{{
525.717 creating repository in file:///tmp/testbzr-ZXLoiq.tmp/lp.codehosting.puller.tests.test_scheduler.TestPullerMasterIntegration.test_mirror/work/src-branch/.bzr/.
525.721 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x1371ef50> in file:///tmp/testbzr-ZXLoiq.tmp/lp.codehosting.puller.tests.test_scheduler.TestPullerMasterIntegration.test_mirror/work/src-branch/
525.733 trying to create missing lock '/tmp/testbzr-ZXLoiq.tmp/lp.codehosting.puller.tests.test_scheduler.TestPullerMasterIntegration.test_mirror/work/src-branch/.bzr/checkout/dirstate'
530.219 opening working tree '/tmp/testbzr-ZXLoiq.tmp/lp.codehosting.puller.tests.test_scheduler.TestPullerMasterIntegration.test_mirror/work/src-branch'
530.273 preparing to commit
    INFO Committing to: /tmp/testbzr-ZXLoiq.tmp/lp.codehosting.puller.tests.test_scheduler.TestPullerMasterIntegration.test_mirror/work/src-branch/
530.277 Selecting files for commit with filter None
    INFO Committed revision 1.
530.897 Committed revid <email address hidden> as revno 1.
}}}

traceback-1: {{{
Traceback (most recent call last):
  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/orig_sourcecode/eggs/testtools-0.9.12_r228-py2.6.egg/testtools/deferredruntest.py", line 199, in _log_user_exception
    raise e
UncleanReactorError: The reactor still thinks it needs to do things. Close all connections, kill all processes and make sure all delayed calls have either fired or been cancelled:
  <DelayedCall 0xc113170 [1795.54595113s] called=0 cancelled=1>
  <twisted.internet.process.ProcessWriter object at 0x12055b90>
  <twisted.internet.process.ProcessReader object at 0x12055110>
  <twisted.internet.process.ProcessReader object at 0x12055750>
}}}

Traceback (most recent call last):
  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/orig_sourcecode/eggs/testtools-0.9.12_r228-py2.6.egg/testtools/deferredruntest.py", line 199, in _log_user_exception
    raise e
TimeoutError: <lp.codehosting.puller.tests.test_scheduler.TestPullerMasterIntegration.test_mirror id=0xfd10b90> took longer than 10 seconds

thread ('127.0.0.1', 40959) -> ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 40959) -> ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 40959) -> ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung
thread ('127.0.0.1', 46752) hung

The following test left new threads behind:
lp.codehosting.puller.tests.test_scheduler.TestPullerMasterIntegration.test_mirror
New thread(s): [<TestThread(('127.0.0.1', 46752), started 139707971270400)>]
 lp.translations.scripts.tests.test_translations_to_branch.TestExportTranslationsToBranch.test_exportToBranches_handles_nonascii_exceptionsNo handlers could be found for logger "amqplib"

Tags: test-system
Gary Poster (gary)
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 890816] [NEW] Intermittent test failures: TestPullerMasterIntegration.test_mirror

just bit me too

looks similar to bug 380266?

Revision history for this message
Martin Pool (mbp) wrote :

my failure was
lp.translations.tests.test_rosetta_branches_script.TestRosettaBranchesScript.test_rosetta_branches_script_oops
alone

--
Martin

Revision history for this message
Martin Pool (mbp) wrote :
Download full text (51.0 KiB)

The failure I had, which might be different, is as follows.

There is some stuff here that looks like a continuing case of
https://bugs.launchpad.net/launchpad/+bug/871596

Failing tests
-------------
 lp.translations.tests.test_rosetta_branches_script.TestRosettaBranchesScript.test_rosetta_branches_script_oops

======================================================================
FAILURE: lp.translations.tests.test_rosetta_branches_script.TestRosettaBranchesScript.test_rosetta_branches_script_oops
(subunit.RemotedTestCase)
----------------------------------------------------------------------
_StringException: Text attachment: traceback
------------
Traceback (most recent call last):
_StringException: librarian-log: {{{
2011-11-18 12:09:22+0530 [-] Log opened.
2011-11-18 12:09:22+0530 [-] twistd 11.1.0pre1 (/usr/bin/python2.6
2.6.5) starting up.
2011-11-18 12:09:22+0530 [-] reactor class:
twisted.internet.pollreactor.PollReactor.
2011-11-18 12:09:22+0530 [-] FileUploadFactory starting on 47329
2011-11-18 12:09:22+0530 [-] Starting factory
<canonical.librarian.libraryprotocol.FileUploadFactory instance at
0x3f3a0e0>
2011-11-18 12:09:22+0530 [-] Site starting on 41268
2011-11-18 12:09:22+0530 [-] Starting factory <twisted.web.server.Site
instance at 0x3f3a098>
2011-11-18 12:09:22+0530 [-] FileUploadFactory starting on 51187
2011-11-18 12:09:22+0530 [-] Starting factory
<canonical.librarian.libraryprotocol.FileUploadFactory instance at
0x3f3a128>
2011-11-18 12:09:22+0530 [-] Site starting on 50020
2011-11-18 12:09:22+0530 [-] Starting factory <twisted.web.server.Site
instance at 0x3f3ae18>
2011-11-18 12:09:22+0530 [-] Not using upstream librarian
2011-11-18 12:09:22+0530 [-] daemon ready!
}}}

oops-0: {{{
Oops-Id: OOPS-66ba39d11b4bffbc28734ed8911f91ea
Exception-Type: DisconnectionError
Exception-Value: terminating connection due to administrator command
SSL connection has been closed unexpectedly
Date: 2011-11-18T06:46:33.271000+00:00
Page-Id:
Branch: test
Revision: 14323
User: unauthenticated, Anonymous, Anonymous, Anonymous User
URL: http://launchpad.dev:8085
Duration: 0.00231289863586
Oops-Reporter: T

CHANNEL_CREATION_TIME=1321598793.27
CONTENT_LENGTH=281
CONTENT_TYPE=text/xml
GATEWAY_INTERFACE=CGI/1.1
HTTP_HOST=xmlrpc-private.launchpad.dev:8087
HTTP_USER_AGENT=xmlrpclib.py/1.0.1 (by www.pythonware.com)
PATH_INFO=/codehosting
REMOTE_ADDR=127.0.0.88
REQUEST_METHOD=POST
SCRIPT_NAME=
SERVER_NAME=ip-10-10-242-173
SERVER_PORT=8087
SERVER_PROTOCOL=HTTP/1.0
SERVER_SOFTWARE=zope.server.http (PrivateXMLRPC)
wsgi.input=%3Chidden%3E
xmlrpc args=(%27+launchpad-services%27,
%27//%7Eperson-name-101766/product-name-101761/branch-101768%27)
zc.zservertracelog.interfaces.ITraceLog=%3Chidden%3E

00000-00000@SQL-main-master SELECT FeatureFlag.date_modified,
FeatureFlag.flag, FeatureFlag.priority, FeatureFlag.scope,
FeatureFlag."value" FROM FeatureFlag ORDER BY FeatureFlag.flag,
FeatureFlag.priority DESC

Traceback (most recent call last):
 Module zope.publisher.publish, line 131, in publish
   obj = request.traverse(obj)
 Module zope.publisher.http, line 455, in traverse
   ob = super(HTTPRequest, self).traverse(obj)
 Module zope.publisher.base, line 250, i...

Revision history for this message
Gary Poster (gary) wrote :
Download full text (4.1 KiB)

Interesting, Martin. Yeah, I think what you encountered is a case of a different bug. The original traceback for that test that seemed related to the codehosting test failure was this:

Error in test lp.translations.tests.test_rosetta_branches_script.TestRosettaBranchesScript.test_rosetta_branches_script_oops
Traceback (most recent call last):
_StringException: librarian-log: {{{
2011-11-15 19:40:49+0530 [-] Log opened.
2011-11-15 19:40:49+0530 [-] twistd 11.1.0pre1 (/usr/bin/python2.6 2.6.5) starting up.
2011-11-15 19:40:49+0530 [-] reactor class: twisted.internet.pollreactor.PollReactor.
2011-11-15 19:40:49+0530 [-] FileUploadFactory starting on 35368
2011-11-15 19:40:49+0530 [-] Starting factory <canonical.librarian.libraryprotocol.FileUploadFactory instance at 0x37f6cf8>
2011-11-15 19:40:49+0530 [-] Site starting on 39164
2011-11-15 19:40:49+0530 [-] Starting factory <twisted.web.server.Site instance at 0x3757b00>
2011-11-15 19:40:49+0530 [-] FileUploadFactory starting on 57170
2011-11-15 19:40:49+0530 [-] Starting factory <canonical.librarian.libraryprotocol.FileUploadFactory instance at 0x37575f0>
2011-11-15 19:40:49+0530 [-] Site starting on 49954
2011-11-15 19:40:49+0530 [-] Starting factory <twisted.web.server.Site instance at 0x3757a70>
2011-11-15 19:40:49+0530 [-] Not using upstream librarian
2011-11-15 19:40:49+0530 [-] daemon ready!
}}}
Traceback (most recent call last):
  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/lib/lp/translations/tests/test_rosetta_branches_script.py", line 87, in test_rosetta_branches_script_oops
    branch = self._setup_series_branch(pot_path)
  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/lib/lp/translations/tests/test_rosetta_branches_script.py", line 49, in _setup_series_branch
    branch, tree = self.create_branch_and_tree()
  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/lib/lp/testing/__init__.py", line 675, in create_branch_and_tree
    bzr_branch = self.createBranchAtURL(branch_url, format=format)
  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/lib/lp/testing/__init__.py", line 654, in createBranchAtURL
    branch_url, format=format)
  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/orig_sourcecode/eggs/bzr-2.5.0dev2_r6152-py2.6-linux-x86_64.egg/bzrlib/bzrdir.py", line 581, in create_branch_convenience
    bzrdir = BzrDir.create(base, format, possible_transports)
  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/orig_sourcecode/eggs/bzr-2.5.0dev2_r6152-py2.6-linux-x86_64.egg/bzrlib/bzrdir.py", line 1039, in create
    return format.initialize_on_transport(t)
  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/orig_sourcecode/eggs/bzr-2.5.0dev2_r6152-py2.6-linux-x86_64.egg/bzrlib/bzrdir.py", line 1430, in initialize_on_transport
    return self._initialize_on_transport_vfs(transport)
  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/orig_sourcecode/eggs/bzr-2.5.0dev2_r6152-py2.6-linux-x86_64.egg/bzrlib/bzrdir.py", line 1569, in _initialize_on_transport_vfs
    control_files.lock_write()
  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/orig_sourcecode/eggs/bzr-2.5.0dev2_r6152-py2.6-linux-x86_64.egg/bzrlib/lockable_files.py", ...

Read more...

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 890816] Re: Intermittent test failures: TestPullerMasterIntegration.test_mirror
Download full text (4.9 KiB)

I think that is because a bzr hook that expects to be run only during
a bzr TestCase has fired during something that's not actually a bzr
test case. I'm not sure why that would be. Perhaps some code is kind
of half using bzrlib test facilities without properly initializing
them, or perhaps an earlier test ended abruptly without cleaning up.

On 19 November 2011 02:36, Gary Poster <email address hidden> wrote:
> Interesting, Martin.  Yeah, I think what you encountered is a case of a
> different bug.  The original traceback for that test that seemed related
> to the codehosting test failure was this:
>
> Error in test lp.translations.tests.test_rosetta_branches_script.TestRosettaBranchesScript.test_rosetta_branches_script_oops
> Traceback (most recent call last):
> _StringException: librarian-log: {{{
> 2011-11-15 19:40:49+0530 [-] Log opened.
> 2011-11-15 19:40:49+0530 [-] twistd 11.1.0pre1 (/usr/bin/python2.6 2.6.5) starting up.
> 2011-11-15 19:40:49+0530 [-] reactor class: twisted.internet.pollreactor.PollReactor.
> 2011-11-15 19:40:49+0530 [-] FileUploadFactory starting on 35368
> 2011-11-15 19:40:49+0530 [-] Starting factory <canonical.librarian.libraryprotocol.FileUploadFactory instance at 0x37f6cf8>
> 2011-11-15 19:40:49+0530 [-] Site starting on 39164
> 2011-11-15 19:40:49+0530 [-] Starting factory <twisted.web.server.Site instance at 0x3757b00>
> 2011-11-15 19:40:49+0530 [-] FileUploadFactory starting on 57170
> 2011-11-15 19:40:49+0530 [-] Starting factory <canonical.librarian.libraryprotocol.FileUploadFactory instance at 0x37575f0>
> 2011-11-15 19:40:49+0530 [-] Site starting on 49954
> 2011-11-15 19:40:49+0530 [-] Starting factory <twisted.web.server.Site instance at 0x3757a70>
> 2011-11-15 19:40:49+0530 [-] Not using upstream librarian
> 2011-11-15 19:40:49+0530 [-] daemon ready!
> }}}
> Traceback (most recent call last):
>  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/lib/lp/translations/tests/test_rosetta_branches_script.py", line 87, in test_rosetta_branches_script_oops
>    branch = self._setup_series_branch(pot_path)
>  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/lib/lp/translations/tests/test_rosetta_branches_script.py", line 49, in _setup_series_branch
>    branch, tree = self.create_branch_and_tree()
>  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/lib/lp/testing/__init__.py", line 675, in create_branch_and_tree
>    bzr_branch = self.createBranchAtURL(branch_url, format=format)
>  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/lib/lp/testing/__init__.py", line 654, in createBranchAtURL
>    branch_url, format=format)
>  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/orig_sourcecode/eggs/bzr-2.5.0dev2_r6152-py2.6-linux-x86_64.egg/bzrlib/bzrdir.py", line 581, in create_branch_convenience
>    bzrdir = BzrDir.create(base, format, possible_transports)
>  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/orig_sourcecode/eggs/bzr-2.5.0dev2_r6152-py2.6-linux-x86_64.egg/bzrlib/bzrdir.py", line 1039, in create
>    return format.initialize_on_transport(t)
>  File "/srv/buildbot/slaves/launchpad/lucid-devel/build/orig_sourcecode/eggs/bzr-2.5.0dev2_r6152-py2.6-linux-x86_64.egg...

Read more...

Curtis Hovey (sinzui)
tags: added: test-system
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.