Spurious/intermittent test failure in googleserviceharness.py

Bug #305858 reported by Gary Poster
4
Affects Status Importance Assigned to Milestone
Launchpad itself
New
Undecided
Unassigned

Bug Description

Launchpad's buildbot in build 40 showed the following failure. The failure cannot be reproduced there or elsewhere for the same revision, and so appears to be a spurious and intermittent failure. The test is being disabled for now, per policy.

{{{
File "/home/buildbot/slaves/launchpad/full/build/lib/canonical/launchpad/testing/tests/googleserviceharness.py",
line 51, in canonical.launchpad.testing.tests.googleserviceharness.GoogleServiceTestSetup
Failed example:
    GoogleServiceTestSetup().setUp()
Exception raised:
    Traceback (most recent call last):
      File "/home/buildbot/slaves/launchpad/full/build/utilities/../lib/zope/testing/doctest.py",
line 1360, in __run
        compileflags, 1) in test.globs
      File "<doctest
canonical.launchpad.testing.tests.googleserviceharness.GoogleServiceTestSetup[12]>",
line 1, in ?
        GoogleServiceTestSetup().setUp()
      File "/home/buildbot/slaves/launchpad/full/build/utilities/../lib/canonical/launchpad/testing/tests/googleserviceharness.py",
line 65, in setUp
        self.startService()
      File "/home/buildbot/slaves/launchpad/full/build/utilities/../lib/canonical/launchpad/testing/tests/googleserviceharness.py",
line 77, in startService
        googletestservice.wait_for_service()
      File "/home/buildbot/slaves/launchpad/full/build/utilities/../lib/canonical/launchpad/testing/googletestservice.py",
line 128, in wait_for_service
        raise RuntimeError("Socket poll time exceeded.")
    RuntimeError: Socket poll time exceeded.
----------------------------------------------------------------------
File "/home/buildbot/slaves/launchpad/full/build/lib/canonical/launchpad/testing/tests/googleserviceharness.py",
line 52, in canonical.launchpad.testing.tests.googleserviceharness.GoogleServiceTestSetup
Failed example:
    GoogleServiceTestSetup.service.pid != old_pid
Exception raised:
    Traceback (most recent call last):
      File "/home/buildbot/slaves/launchpad/full/build/utilities/../lib/zope/testing/doctest.py",
line 1360, in __run
        compileflags, 1) in test.globs
      File "<doctest
canonical.launchpad.testing.tests.googleserviceharness.GoogleServiceTestSetup[13]>",
line 1, in ?
        GoogleServiceTestSetup.service.pid != old_pid
    AttributeError: 'NoneType' object has no attribute 'pid'
...
}}}

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

A subsequent buildbot run (43) had the following failure. I am now disabling the entire doctest.

{{{
 GoogleServiceTestSetup (canonical.launchpad.testing.tests.googleserviceharness)

Failure in test GoogleServiceTestSetup (canonical.launchpad.testing.tests.googleserviceharness)
Failed doctest test for canonical.launchpad.testing.tests.googleserviceharness.GoogleServiceTestSetup
  File "/home/buildbot/slaves/launchpad/full/build/lib/canonical/launchpad/testing/tests/googleserviceharness.py", line 18, in GoogleServiceTestSetup

----------------------------------------------------------------------
File "/home/buildbot/slaves/launchpad/full/build/lib/canonical/launchpad/testing/tests/googleserviceharness.py", line 25, in canonical.launchpad.testing.tests.googleserviceharness.GoogleServiceTestSetup
Failed example:
    assert not service_is_available() # Sanity check.
Exception raised:
    Traceback (most recent call last):
      File "/home/buildbot/slaves/launchpad/full/build/utilities/../lib/zope/testing/doctest.py", line 1360, in __run
        compileflags, 1) in test.globs
      File "<doctest canonical.launchpad.testing.tests.googleserviceharness.GoogleServiceTestSetup[2]>", line 1, in ?
        assert not service_is_available() # Sanity check.
    AssertionError
}}}

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