Random test_hammer_hashcache failure

Bug #435065 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

The botnet occasionally reports the following failure:

======================================================================
FAIL: bzrlib.tests.test_hashcache.TestHashCache.test_hammer_hashcache (subunit.RemotedTestCase)
----------------------------------------------------------------------
RemoteException: Traceback (most recent call last):
  File "/home/babune/buildbot/bzr/slaves/gentoo/tests/gentoo/build/bzrlib/tests/test_hashcache.py", line 108, in test_hammer_hashcache
    self.assertEquals(got_sha1, last_sha1)
AssertionError: not equal:
a = '6155a947c458ba2c38e03051582f3d6a5bae0b84'
b = 'b1cbb95738ece7800df8c4bc52665001f4039e1a'

This one occurred today on gentoo
http://babune.ladeuil.net:26862/builders/gentoo/builds/28/steps/Non-regression%20tests/logs/stdio

Previous occurrence was on hardy 32 bits:
http://babune.ladeuil.net:26862/builders/hardy/builds/75/steps/Non-regression tests/logs/stdio

An even older one was on karmic 64 bits:
http://babune.ladeuil.net:26862/builders/karmic/builds/64/steps/Non-regression tests/logs/stdio

I suspect some timing dependency but I didn't investigate closely.

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 435065] [NEW] Random test_hammer_hashcache failure

It probably is timing dependent, it's an old crusty test.

--
Martin <http://launchpad.net/~mbp/>

Revision history for this message
Robert Collins (lifeless) wrote :

On Wed, 2009-09-23 at 07:16 +0000, Martin Pool wrote:
> It probably is timing dependent, it's an old crusty test.

It could alternatively be a latent bug :(

-Rob

Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Collins wrote:
> On Wed, 2009-09-23 at 07:16 +0000, Martin Pool wrote:
>> It probably is timing dependent, it's an old crusty test.
>
> It could alternatively be a latent bug :(
>
> -Rob
>

So the point of hammer_hashcache (as I recall) is to spin on updating a
file and checking the hashcache to make sure it really does wait an
appropriate amount of time to make sure that content has changed.

It isn't a very deterministic test, and it is a fairly long running one,
but I can agree with Robert that if there is a problem it may, in fact,
be genuine, and not just a testing artifact.

On the flip side, I don't think we use 'hashcache' since WT3, so it
isn't being exercised in day-to-day. (We've advised upgrading to
- --dirstate + since bzr 0.15.)

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkq6I/AACgkQJdeBCYSNAAN0GACeImen35KoUn0LUCFaSiU6z6jY
LsoAmwcbNB/KAtOCUAXn2kl3sTBinWzU
=6g47
-----END PGP SIGNATURE-----

Revision history for this message
Vincent Ladeuil (vila) wrote :

New occurrence on karmic:
  http://babune.ladeuil.net:26862/builders/karmic/builds/82/steps/Non-regression tests/logs/stdio
and gentoo:
  http://babune.ladeuil.net:26862/builders/gentoo/builds/36/steps/Non-regression tests/logs/stdio

While I still can't reproduce it, I'm more and more thinking about a VM related cause.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.