From: Brian Warner Date: Fri, 5 Jan 2007 07:42:52 +0000 (-0700) Subject: only run a single (short) py_ecc test on slave3, since it is so slow the tests timeout X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~398 X-Git-Url: https://git.rkrishnan.org/components/%22news.html?a=commitdiff_plain;h=409d92e7467ba2b1a0661c9d069cbe8a43db3b1c;p=tahoe-lafs%2Ftahoe-lafs.git only run a single (short) py_ecc test on slave3, since it is so slow the tests timeout --- diff --git a/src/allmydata/encode.py b/src/allmydata/encode.py index 80c01aad..ceba80b2 100644 --- a/src/allmydata/encode.py +++ b/src/allmydata/encode.py @@ -100,8 +100,9 @@ class PyRSEncoder(object): # TODO: this will write a 733kB file called 'ffield.lut.8' in the current # directory the first time it is run, to cache the lookup table for later - # use. It appears to take about 15 seconds to create this the first time. - # Make sure this file winds up somewhere reasonable. + # use. It appears to take about 15 seconds to create this the first time, + # and about 0.5s to load it in each time afterwards. Make sure this file + # winds up somewhere reasonable. # TODO: the encoder/decoder RSCode object depends upon the number of # required/total shares, but not upon the data. We could probably save a @@ -109,6 +110,9 @@ class PyRSEncoder(object): # any time we use the same required/total share numbers (which will # probably be always). + # on my workstation (fluxx, a 3.5GHz Athlon), this encodes data at a rate + # of 6.7kBps. Zooko's mom's 1.8GHz G5 got 2.2kBps . + def set_params(self, data_size, required_shares, total_shares): assert required_shares <= total_shares self.data_size = data_size diff --git a/src/allmydata/test/test_encode_share.py b/src/allmydata/test/test_encode_share.py index 1f887351..1e707ecd 100644 --- a/src/allmydata/test/test_encode_share.py +++ b/src/allmydata/test/test_encode_share.py @@ -81,12 +81,16 @@ class Tester: return d def test_encode(self): + if os.uname()[1] == "slave3" and self.enc_class == PyRSEncoder: + raise unittest.SkipTest("slave3 is really slow") return self.do_test(1000, 25, 100) def test_encode1(self): return self.do_test(8, 8, 16) def test_encode2(self): + if os.uname()[1] == "slave3" and self.enc_class == PyRSEncoder: + raise unittest.SkipTest("slave3 is really slow") return self.do_test(123, 25, 100) def test_sizes(self):