bzr selftest failure (bundles ?)

John Arbash Meinel john at arbash-meinel.com
Sat Jul 8 22:27:12 BST 2006


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

Matthieu Moy wrote:
> Hi,
> 
> 'don't know whether this is a known problem, but I get several failures
> in the latest bzr.dev.
> 
> Report is attached. Reading quickly, it seems mostly related to bundles.
> 
> This is on a Debian Testing/Unstable.
> 
> -- 
> Matthieu
> 
> 

Well, it seems to be all of the bundle tests failing, because the sha1
sum is not matching.

Digging deeper, it seems this might be the root cause:


> ======================================================================
> FAIL: unpack_highres_date (bzrlib.bundle.serializer)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/doctest.py", line 2152, in runTest
>     raise self.failureException(self.format_failure(new.getvalue()))
> AssertionError: Failed doctest test for bzrlib.bundle.serializer.unpack_highres_date
>   File "/home/moy/local/usr/src/bzr/bzr.dev/bzrlib/bundle/serializer/__init__.py", line 142, in unpack_highres_date
> 
> ----------------------------------------------------------------------
> File "/home/moy/local/usr/src/bzr/bzr.dev/bzrlib/bundle/serializer/__init__.py", line 162, in bzrlib.bundle.serializer.unpack_highres_date
> Failed example:
>     t == t2
> Expected:
>     True
> Got:
>     False
> ----------------------------------------------------------------------
> File "/home/moy/local/usr/src/bzr/bzr.dev/bzrlib/bundle/serializer/__init__.py", line 164, in bzrlib.bundle.serializer.unpack_highres_date
> Failed example:
>     o == o2
> Expected:
>     True
> Got:
>     False
> 
> 
> ----------------------------------------------------------------------
> Ran 2811 tests in 290.550s
> 
> FAILED (failures=8, errors=14)

Specifically, this is testing that we are able to take a date that looks
like this:
Thu 2005-06-30 12:38:52.350850105 -0500

And turn it into a timestamp + timezone that looks like this:
(1120153132.3508501, -18000)

The important one is that 'unpack_highres_date(format_highres_date())'
should be capable of converting into a date string, and then converting
back to the original value.

I don't know why it is failing on your machine. It seems like maybe
local_time_offset() is returning something weird.

Can you just do:

python
>>> import bzrlib.osutils
>>> print bzrlib.osutils.local_time_offset()

Thanks,
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFEsCMwJdeBCYSNAAMRAiwiAJdsZ0ztDORkXWWb8dLTLuwA9MV9AJ9955Im
TdjgHT8Lje2QdIrMcPRvmg==
=CE3+
-----END PGP SIGNATURE-----




More information about the bazaar mailing list