[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2290: allmydata.test.test_util.FileUtil.test_disk_stats sometimes fails on Travis
Tahoe-LAFS
trac at tahoe-lafs.org
Fri Sep 12 16:11:51 UTC 2014
#2290: allmydata.test.test_util.FileUtil.test_disk_stats sometimes fails on Travis
------------------------+--------------------------
Reporter: daira | Owner:
Type: defect | Status: new
Priority: normal | Milestone: undecided
Component: code | Version: 1.10.0
Resolution: | Keywords: tests travis
Launchpad Bug: |
------------------------+--------------------------
Comment (by warner):
I caught an instance of this with extra debug prints turned on, to dump
the return value from statvfs
https://travis-ci.org/tahoe-lafs/tahoe-lafs/jobs/35096649
{{{
allmydata.test.test_util.FileUtil.test_disk_stats ...
STATVFS posix.statvfs_result(f_bsize=4096, f_frsize=4096,
f_blocks=5242880, f_bfree=5242880, f_bavail=5242880, f_files=2621440,
f_ffree=2621439, f_favail=2621439, f_flag=4096, f_namemax=255)
STATVFS posix.statvfs_result(f_bsize=4096, f_frsize=4096,
f_blocks=5242880, f_bfree=5242880, f_bavail=5242880, f_files=2621440,
f_ffree=2621439, f_favail=2621439, f_flag=4096, f_namemax=255)
GET_DISK_STATS {'free_for_root': 21474836480, 'avail': 21474828288,
'free_for_nonroot': 21474836480, 'total': 21474836480, 'used': 0}
Traceback (most recent call last):
File "/home/travis/build/tahoe-lafs/tahoe-
lafs/src/allmydata/test/test_util.py", line 523, in test_disk_stats
self.failUnless(disk['used'] > 0, disk['used'])
File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-
packages/twisted/trial/_synctest.py", line 308, in assertTrue
raise self.failureException(msg)
twisted.trial.unittest.FailTest: 0
[FAILURE]
}}}
From what I can tell, every call to the os.statvfs in get_disk_stats()
in this particular run returned the same thing.
In the passing test runs, os.statvfs() returns varying values.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2290#comment:1>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list