]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
doc: sundry amendments to docs and in-line code comments
authorZooko O'Whielacronx <zooko@zooko.com>
Sun, 28 Dec 2008 23:59:54 +0000 (16:59 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Sun, 28 Dec 2008 23:59:54 +0000 (16:59 -0700)
NEWS
docs/how_to_make_a_tahoe_release.txt
src/allmydata/interfaces.py
src/allmydata/test/test_immutable_checker.py
src/allmydata/test/test_system.py

diff --git a/NEWS b/NEWS
index df763f7ef06395eef32b50630a537a4abd99ceda..f8d607d18d211c8be9494dfd98e399800455b8ba 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -81,7 +81,8 @@ of existing mutable shares).
 This release adds the 'tahoe create-alias' command, which is a combination of
 'tahoe mkdir' and 'tahoe add-alias'. This also allows you to start using a
 new tahoe directory without exposing its URI in the argv list, which is
-publicly visible (through the process table) on most unix systems.
+publicly visible (through the process table) on most unix systems. Thanks to
+Kevin Reid for bringing this issue to our attention.
 
 The single-argument form of "tahoe put" was changed to create an unlinked
 file. I.e. "tahoe put bar.txt" will take the contents of a local "bar.txt"
index f94d74a812deddc239b1f6c1d53d5ba6ccdaa12f..1624abfea3c53a769de875d7ee487f0f06eb4532 100644 (file)
@@ -8,7 +8,7 @@
 * make sure debs got built and uploaded properly
 * make sure a sumo sdist tarball got built and uploaded properly
 * send out relnotes.txt
- x  + tahoe-announce@lists.allmydata.org, tahoe-dev@lists.allmydata.org, p2p-hackers@lists.zooko.com, lwn@lwn.net, cap-talk@mail.eros-os.org, cryptography@metzdown.com, twisted-python@twistedmatrix.com, fuse-devel@lists.sourceforge.net, duplicity-talk@nongnu.org, news@phoronix.com
+ x  + tahoe-announce@lists.allmydata.org, tahoe-dev@lists.allmydata.org, p2p-hackers@lists.zooko.com, lwn@lwn.net, cap-talk@mail.eros-os.org, cryptography@metzdown.com, twisted-python@twistedmatrix.com, fuse-devel@lists.sourceforge.net, duplicity-talk@nongnu.org, news@phoronix.com, python-list@python.org
 * update Wiki: front page news, news, old news, parade of release notes
 * update "current version" information and make an "announcement of new release" on freshmeat
 * upload to pypi with "make make-version && python ./setup.py sdist upload register"
index 2f8249352aa6cd938e2d287a95a87b7a6dec730d..7a185d913e7dfe9dd471754f77d39a617e28cae9 100644 (file)
@@ -1613,7 +1613,7 @@ class ICheckerResults(Interface):
 
 
     def get_data():
-        """Return a dictionary that describes the state of the file/dir.  Non-distributed LIT
+        """Return a dictionary that describes the state of the file/dir.  LIT
         files always return an empty dictionary. Normal files and directories return a
         dictionary with the following keys (note that these use binary strings rather than
         base32-encoded ones) (also note that for mutable files, these counts are for the 'best'
index e743726b698a75714cff06717ef51c15d06dbb34..a7e0c4db7291dfbfb3eed247ba91f72b39f6111d 100644 (file)
@@ -364,8 +364,7 @@ class Test(ShareManglingMixin, unittest.TestCase):
             d2 = filenode.check(Monitor(), verify=True)
             def _after_check(checkresults):
                 after_check_reads = self._count_reads()
-                # print "delta was ", after_check_reads - before_check_reads
-                self.failIf(after_check_reads - before_check_reads > DELTA_READS)
+                self.failIf(after_check_reads - before_check_reads > DELTA_READS, (after_check_reads, before_check_reads, DELTA_READS))
                 self.failUnless(checkresults.is_healthy())
 
             d2.addCallback(_after_check)
@@ -385,7 +384,6 @@ class Test(ShareManglingMixin, unittest.TestCase):
 
             def _after_check(checkresults):
                 after_check_reads = self._count_reads()
-                # print "delta was ", after_check_reads - before_check_reads
                 self.failIf(after_check_reads - before_check_reads > DELTA_READS)
                 self.failIf(checkresults.is_healthy())
 
index 7bc517350ac3e386dcf588927549e6b78b43d155..ea34f2a4450385b831ea45dff1c19fa442f4d02e 100644 (file)
@@ -2074,7 +2074,7 @@ class DeepCheckWebGood(DeepCheckBase, unittest.TestCase):
 
 
     def check_and_repair_is_healthy(self, cr, n, where, incomplete=False):
-        self.failUnless(ICheckAndRepairResults.providedBy(cr), where)
+        self.failUnless(ICheckAndRepairResults.providedBy(cr), (where, cr))
         self.failUnless(cr.get_pre_repair_results().is_healthy(), where)
         self.check_is_healthy(cr.get_pre_repair_results(), n, where, incomplete)
         self.failUnless(cr.get_post_repair_results().is_healthy(), where)
@@ -2156,8 +2156,7 @@ class DeepCheckWebGood(DeepCheckBase, unittest.TestCase):
         d.addCallback(lambda ign: self.mutable.check(Monitor(), verify=True))
         d.addCallback(self.check_is_healthy, self.mutable, "mutable")
         d.addCallback(lambda ign: self.large.check(Monitor(), verify=True))
-        d.addCallback(self.check_is_healthy, self.large, "large",
-                      incomplete=True)
+        d.addCallback(self.check_is_healthy, self.large, "large", incomplete=True)
         d.addCallback(lambda ign: self.small.check(Monitor(), verify=True))
         d.addCallback(self.failUnlessEqual, None, "small")
         d.addCallback(lambda ign: self.small2.check(Monitor(), verify=True))
@@ -2660,8 +2659,7 @@ class DeepCheckWebBad(DeepCheckBase, unittest.TestCase):
         d = cr.get_data()
         self.failIf(cr.is_healthy(), where)
         self.failIf(cr.is_recoverable(), where)
-        self.failUnless(d["count-shares-good"] < d["count-shares-needed"],
-                        where)
+        self.failUnless(d["count-shares-good"] < d["count-shares-needed"], (d["count-shares-good"], d["count-shares-needed"], where))
         self.failUnlessEqual(d["count-recoverable-versions"], 0, where)
         self.failUnlessEqual(d["count-unrecoverable-versions"], 1, where)
         return cr
@@ -2742,7 +2740,7 @@ class DeepCheckWebBad(DeepCheckBase, unittest.TestCase):
             #self.failUnlessEqual(c["count-objects-unhealthy"], 6)
             self.failUnlessEqual(c["count-objects-healthy"], 5) # todo
             self.failUnlessEqual(c["count-objects-unhealthy"], 4)
-            self.failUnlessEqual(c["count-objects-unrecoverable"], 2)
+            self.failUnlessEqual(c["count-objects-unrecoverable"], 2, str(c))
         d.addCallback(_check2)
 
         return d