Ticket #1525: more-deterministically-wrong.darcs.patch

File more-deterministically-wrong.darcs.patch, 75.7 KB (added by davidsarah, at 2011-09-05T05:46:26Z)

Version of broken test that is more deterministic (allmydata.test.test_sftp2)

Line 
13 patches for repository davidsarah@dev.allmydata.org:/home/darcs/tahoe/trunk:
2
3Sun Sep  4 03:01:08 BST 2011  david-sarah@jacaranda.org
4  * SFTP: make sure that download failures are not dropped. fixes #1525
5
6Sun Sep  4 05:58:44 BST 2011  david-sarah@jacaranda.org
7  * SFTP: tests for ref #1525, but test_openFile_write is failing depending on the order of previous tests :-( Can anyone help debugging this?
8
9Mon Sep  5 06:41:02 BST 2011  david-sarah@jacaranda.org
10  * More deterministically wrong test for #1525. Not to be committed to trunk.
11
12New patches:
13
14[SFTP: make sure that download failures are not dropped. fixes #1525
15david-sarah@jacaranda.org**20110904020108
16 Ignore-this: 190e1e227fb921a4c883e1a095393e5c
17] {
18hunk ./src/allmydata/frontends/sftpd.py 25
19 from twisted.internet.interfaces import ITransport
20 
21 from twisted.internet import defer
22-from twisted.internet.interfaces import IFinishableConsumer
23+from twisted.internet.interfaces import IConsumer
24 from foolscap.api import eventually
25 from allmydata.util import deferredutil
26 
27hunk ./src/allmydata/frontends/sftpd.py 295
28 
29 
30 class OverwriteableFileConsumer(PrefixingLogMixin):
31-    implements(IFinishableConsumer)
32+    implements(IConsumer)
33     """I act both as a consumer for the download of the original file contents, and as a
34     wrapper for a temporary file that records the downloaded data and any overwrites.
35     I use a priority queue to keep track of which regions of the file have been overwritten
36hunk ./src/allmydata/frontends/sftpd.py 322
37         self.milestones = []  # empty heap of (offset, d)
38         self.overwrites = []  # empty heap of (start, end)
39         self.is_closed = False
40-        self.done = self.when_reached(download_size)  # adds a milestone
41-        self.is_done = False
42-        def _signal_done(ign):
43-            if noisy: self.log("DONE", level=NOISY)
44-            self.is_done = True
45-        self.done.addCallback(_signal_done)
46+        self.done = defer.Deferred()
47+        self.done_status = None  # Failure -> download failed, not None or Failure -> download succeeded
48         self.producer = None
49 
50     def get_file(self):
51hunk ./src/allmydata/frontends/sftpd.py 346
52             self.download_size = size
53 
54         if self.downloaded >= self.download_size:
55-            self.finish()
56+            self.download_succeeded("size changed")
57 
58     def registerProducer(self, p, streaming):
59         if noisy: self.log(".registerProducer(%r, streaming=%r)" % (p, streaming), level=NOISY)
60hunk ./src/allmydata/frontends/sftpd.py 359
61             p.resumeProducing()
62         else:
63             def _iterate():
64-                if not self.is_done:
65+                if self.done_status is None:
66                     p.resumeProducing()
67                     eventually(_iterate)
68             _iterate()
69hunk ./src/allmydata/frontends/sftpd.py 426
70                 return
71             if noisy: self.log("MILESTONE %r %r" % (next, d), level=NOISY)
72             heapq.heappop(self.milestones)
73-            eventually(d.callback, None)
74+            eventually(d.callback, "reached")
75 
76         if milestone >= self.download_size:
77hunk ./src/allmydata/frontends/sftpd.py 429
78-            self.finish()
79+            self.download_succeeded("reached download_size")
80 
81     def overwrite(self, offset, data):
82         if noisy: self.log(".overwrite(%r, <data of length %r>)" % (offset, len(data)), level=NOISY)
83hunk ./src/allmydata/frontends/sftpd.py 475
84             if noisy: self.log("truncating read to %r bytes" % (length,), level=NOISY)
85 
86         needed = min(offset + length, self.download_size)
87-        d = self.when_reached(needed)
88-        def _reached(ign):
89+        # If we fail to reach the needed number of bytes, the read request will fail.
90+        d = self.when_reached_or_failed(needed)
91+        def _reached_in_read(res):
92             # It is not necessarily the case that self.downloaded >= needed, because
93             # the file might have been truncated (thus truncating the download) and
94             # then extended.
95hunk ./src/allmydata/frontends/sftpd.py 483
96 
97             assert self.current_size >= offset + length, (self.current_size, offset, length)
98-            if noisy: self.log("self.f = %r" % (self.f,), level=NOISY)
99+            if noisy: self.log("_reached_in_read(%r), self.f = %r" % (res, self.f), level=NOISY)
100             self.f.seek(offset)
101             return self.f.read(length)
102hunk ./src/allmydata/frontends/sftpd.py 486
103-        d.addCallback(_reached)
104+        d.addCallback(_reached_in_read)
105         return d
106 
107hunk ./src/allmydata/frontends/sftpd.py 489
108-    def when_reached(self, index):
109-        if noisy: self.log(".when_reached(%r)" % (index,), level=NOISY)
110-        if index <= self.downloaded:  # already reached
111+    def when_reached_or_failed(self, index):
112+        if noisy: self.log(".when_reached_or_failed(%r)" % (index,), level=NOISY)
113+        def _reached(res):
114+            if noisy: self.log("reached %r with result %r" % (index, res), level=NOISY)
115+            return res
116+        if self.done_status is not None:
117+            return defer.execute(_reached, self.done_status)
118+        if index <= self.downloaded:  # already reached successfully
119             if noisy: self.log("already reached %r" % (index,), level=NOISY)
120hunk ./src/allmydata/frontends/sftpd.py 498
121-            return defer.succeed(None)
122+            return defer.succeed("already reached")
123         d = defer.Deferred()
124hunk ./src/allmydata/frontends/sftpd.py 500
125-        def _reached(ign):
126-            if noisy: self.log("reached %r" % (index,), level=NOISY)
127-            return ign
128         d.addCallback(_reached)
129         heapq.heappush(self.milestones, (index, d))
130         return d
131hunk ./src/allmydata/frontends/sftpd.py 507
132     def when_done(self):
133         return self.done
134 
135-    def finish(self):
136-        """Called by the producer when it has finished producing, or when we have
137-        received enough bytes, or as a result of a close. Defined by IFinishableConsumer."""
138+    def download_succeeded(self, res):
139+        self.download_done(eventually_callback, res)
140+
141+    def download_failed(self, err):
142+        self.download_done(eventually_errback, err)
143+
144+    def download_done(self, trigger, res):
145+        # Only the first call to download_done counts, but we log subsequent calls
146+        # (multiple calls are normal).
147+        if self.done_status is not None:
148+            self.log("IGNORING extra call to download_done with result %r; previous result was %r"
149+                     % (res, self.done_status), level=OPERATIONAL)
150+            return
151+
152+        self.log("DONE with result %r" % (res,), level=OPERATIONAL)
153+        if res is None:
154+            # Make sure we can distinguish success from not-done-yet.
155+            res = "finished"
156+        self.done_status = res
157+
158+        trigger(self.done)(res)
159 
160         while len(self.milestones) > 0:
161             (next, d) = self.milestones[0]
162hunk ./src/allmydata/frontends/sftpd.py 531
163-            if noisy: self.log("MILESTONE FINISH %r %r" % (next, d), level=NOISY)
164+            if noisy: self.log("MILESTONE FINISH %r %r %r" % (next, d, res), level=NOISY)
165             heapq.heappop(self.milestones)
166             # The callback means that the milestone has been reached if
167             # it is ever going to be. Note that the file may have been
168hunk ./src/allmydata/frontends/sftpd.py 536
169             # truncated to before the milestone.
170-            eventually(d.callback, None)
171+            trigger(d)(res)
172 
173     def close(self):
174         if not self.is_closed:
175hunk ./src/allmydata/frontends/sftpd.py 545
176                 self.f.close()
177             except Exception, e:
178                 self.log("suppressed %r from close of temporary file %r" % (e, self.f), level=WEIRD)
179-        self.finish()
180+        self.download_succeeded("closed")
181+        return self.done_status
182 
183     def unregisterProducer(self):
184         pass
185hunk ./src/allmydata/frontends/sftpd.py 687
186         if (self.flags & FXF_TRUNC) or not filenode:
187             # We're either truncating or creating the file, so we don't need the old contents.
188             self.consumer = OverwriteableFileConsumer(0, tempfile_maker)
189-            self.consumer.finish()
190+            self.consumer.download_succeeded("download not needed")
191         else:
192             assert IFileNode.providedBy(filenode), filenode
193 
194hunk ./src/allmydata/frontends/sftpd.py 700
195 
196                 self.consumer = OverwriteableFileConsumer(download_size, tempfile_maker)
197 
198-                version.read(self.consumer, 0, None)
199+                d = version.read(self.consumer, 0, None)
200+                d.addCallbacks(self.consumer.download_succeeded, self.consumer.download_failed)
201+                # It is correct to drop d here.
202             self.async.addCallback(_read)
203 
204         eventually(self.async.callback, None)
205hunk ./src/allmydata/frontends/sftpd.py 812
206         self.closed = True
207 
208         if not (self.flags & (FXF_WRITE | FXF_CREAT)):
209+            # We never fail a close of a handle opened only for reading, even if the file
210+            # failed to download. (We could not do so deterministically, because it would
211+            # depend on whether we reached the point of failure before abandoning the
212+            # download.) Any reads that depended on file content that could not be downloaded
213+            # will have failed.
214             def _readonly_close():
215                 if self.consumer:
216                     self.consumer.close()
217hunk ./src/allmydata/frontends/sftpd.py 837
218         def _committed(res):
219             if noisy: self.log("_committed(%r)" % (res,), level=NOISY)
220 
221-            self.consumer.close()
222+            status = self.consumer.close()
223 
224             # We must close_notify before re-firing self.async.
225             if self.close_notify:
226hunk ./src/allmydata/frontends/sftpd.py 842
227                 self.close_notify(self.userpath, self.parent, self.childname, self)
228+
229+            if not isinstance(res, Failure) and isinstance(status, Failure):
230+                # Odd, because we don't expect a failure from close() but not from when_done(), but log it and fail anyway.
231+                self.log("failure in _committed(%r) from %r.close: %r" % (res, self.consumer, status), level=WEIRD)
232+                return status
233             return res
234 
235         def _close(ign):
236}
237[SFTP: tests for ref #1525, but test_openFile_write is failing depending on the order of previous tests :-( Can anyone help debugging this?
238david-sarah@jacaranda.org**20110904045844
239 Ignore-this: bfd1c5feef7e1427312ba55505988917
240] {
241hunk ./src/allmydata/test/no_network.py 308
242         ss.hung_until.callback(None)
243         ss.hung_until = None
244 
245+    def nuke_from_orbit(self):
246+        """ Delete all share directories in this grid. It's the only way to be sure ;-) """
247+        for server in self.servers_by_number.values():
248+            fileutil.rm_dir(server.sharedir)
249+
250 
251 class GridTestMixin:
252     def setUp(self):
253hunk ./src/allmydata/test/test_sftp.py 67
254         self.basedir = "sftp/" + basedir
255         self.set_up_grid(num_clients=num_clients, num_servers=num_servers)
256 
257+        #print self.basedir
258+        #for server in self.g.servers_by_number.values():
259+        #    print server.sharedir
260+
261         self.client = self.g.clients[0]
262         self.username = "alice"
263 
264hunk ./src/allmydata/test/test_sftp.py 526
265             return d2
266         d.addCallback(_read_short)
267 
268+        # check that failed downloads cause failed reads
269+        d.addCallback(lambda ign: self.handler.openFile("uri/"+self.gross_uri, sftp.FXF_READ, {}))
270+        def _read_broken(rf):
271+            d2 = defer.succeed(None)
272+            d2.addCallback(lambda ign: self.g.nuke_from_orbit())
273+            d2.addCallback(lambda ign:
274+                self.shouldFailWithSFTPError(sftp.FX_FAILURE, "read broken",
275+                                             rf.readChunk, 0, 100))
276+            # close shouldn't fail
277+            d2.addCallback(lambda ign: rf.close())
278+            d2.addCallback(lambda res: self.failUnlessReallyEqual(res, None))
279+            return d2
280+        d.addCallback(_read_broken)
281+
282         d.addCallback(lambda ign: self.failUnlessEqual(sftpd.all_heisenfiles, {}))
283         d.addCallback(lambda ign: self.failUnlessEqual(self.handler._heisenfiles, {}))
284         return d
285hunk ./src/allmydata/test/test_sftp.py 1003
286                       self.shouldFail(NoSuchChildError, "rename new while open", "new",
287                                       self.root.get, u"new"))
288 
289+        # check that failed downloads cause failed reads and close when open for writing
290+        gross = u"gro\u00DF".encode("utf-8")
291+        d.addCallback(lambda ign: self.handler.openFile(gross, sftp.FXF_READ | sftp.FXF_WRITE, {}))
292+        def _read_write_broken(rwf):
293+            d2 = rwf.writeChunk(0, "abcdefghij")
294+            d2.addCallback(lambda ign: self.g.nuke_from_orbit())
295+
296+            # we should still be able to read what we just wrote
297+            #d2.addCallback(lambda ign: rwf.readChunk(0, 10))
298+            #d2.addCallback(lambda data: self.failUnlessReallyEqual(data, "abcdefghij"))
299+            # but reading past that should fail
300+            d2.addCallback(lambda ign:
301+                self.shouldFailWithSFTPError(sftp.FX_FAILURE, "read/write broken",
302+                                             rwf.readChunk, 0, 100))
303+            # close should fail in this case
304+            d2.addCallback(lambda ign:
305+                self.shouldFailWithSFTPError(sftp.FX_FAILURE, "read/write broken close",
306+                                             rwf.close))
307+            return d2
308+        d.addCallback(_read_write_broken)
309+
310         d.addCallback(lambda ign: self.failUnlessEqual(sftpd.all_heisenfiles, {}))
311         d.addCallback(lambda ign: self.failUnlessEqual(self.handler._heisenfiles, {}))
312         return d
313}
314[More deterministically wrong test for #1525. Not to be committed to trunk.
315david-sarah@jacaranda.org**20110905054102
316 Ignore-this: ccdb69164db86d9f5b816f4435d717d0
317] {
318hunk ./src/allmydata/frontends/sftpd.py 322
319         self.milestones = []  # empty heap of (offset, d)
320         self.overwrites = []  # empty heap of (start, end)
321         self.is_closed = False
322+
323+        self.download_finished = defer.Deferred()
324+        # download_done will swallow any failure, which is correct; download_finished is only
325+        # keeping track of when the download has completed, successfully or not.
326+        self.download_finished.addBoth(self.download_done)
327+
328         self.done = defer.Deferred()
329         self.done_status = None  # Failure -> download failed, not None or Failure -> download succeeded
330         self.producer = None
331hunk ./src/allmydata/frontends/sftpd.py 352
332             self.download_size = size
333 
334         if self.downloaded >= self.download_size:
335-            self.download_succeeded("size changed")
336+            self.download_done("size changed")
337 
338     def registerProducer(self, p, streaming):
339         if noisy: self.log(".registerProducer(%r, streaming=%r)" % (p, streaming), level=NOISY)
340hunk ./src/allmydata/frontends/sftpd.py 435
341             eventually(d.callback, "reached")
342 
343         if milestone >= self.download_size:
344-            self.download_succeeded("reached download_size")
345+            self.download_done("reached download_size")
346 
347     def overwrite(self, offset, data):
348         if noisy: self.log(".overwrite(%r, <data of length %r>)" % (offset, len(data)), level=NOISY)
349hunk ./src/allmydata/frontends/sftpd.py 513
350     def when_done(self):
351         return self.done
352 
353-    def download_succeeded(self, res):
354-        self.download_done(eventually_callback, res)
355-
356-    def download_failed(self, err):
357-        self.download_done(eventually_errback, err)
358+    def when_download_finished(self):
359+        return self.download_finished
360 
361hunk ./src/allmydata/frontends/sftpd.py 516
362-    def download_done(self, trigger, res):
363+    def download_done(self, res):
364         # Only the first call to download_done counts, but we log subsequent calls
365         # (multiple calls are normal).
366         if self.done_status is not None:
367hunk ./src/allmydata/frontends/sftpd.py 530
368             res = "finished"
369         self.done_status = res
370 
371-        trigger(self.done)(res)
372+        eventually(self.done.callback, res)
373 
374         while len(self.milestones) > 0:
375             (next, d) = self.milestones[0]
376hunk ./src/allmydata/frontends/sftpd.py 539
377             # The callback means that the milestone has been reached if
378             # it is ever going to be. Note that the file may have been
379             # truncated to before the milestone.
380-            trigger(d)(res)
381+            eventually(d.callback,res)
382 
383     def close(self):
384         if not self.is_closed:
385hunk ./src/allmydata/frontends/sftpd.py 548
386                 self.f.close()
387             except Exception, e:
388                 self.log("suppressed %r from close of temporary file %r" % (e, self.f), level=WEIRD)
389-        self.download_succeeded("closed")
390+        self.download_done("closed")
391         return self.done_status
392 
393     def unregisterProducer(self):
394hunk ./src/allmydata/frontends/sftpd.py 617
395         self.closed = True
396         return defer.succeed(None)
397 
398+    def when_download_finished(self):
399+        d = defer.Deferred()
400+        self.async.addBoth(d.callback, None)
401+        return d
402+
403     def getAttrs(self):
404         request = ".getAttrs()"
405         self.log(request, level=OPERATIONAL)
406hunk ./src/allmydata/frontends/sftpd.py 695
407         if (self.flags & FXF_TRUNC) or not filenode:
408             # We're either truncating or creating the file, so we don't need the old contents.
409             self.consumer = OverwriteableFileConsumer(0, tempfile_maker)
410-            self.consumer.download_succeeded("download not needed")
411+            self.consumer.download_done("download not needed")
412         else:
413             assert IFileNode.providedBy(filenode), filenode
414 
415hunk ./src/allmydata/frontends/sftpd.py 709
416                 self.consumer = OverwriteableFileConsumer(download_size, tempfile_maker)
417 
418                 d = version.read(self.consumer, 0, None)
419-                d.addCallbacks(self.consumer.download_succeeded, self.consumer.download_failed)
420+                d.addBoth(eventually_callback(self.consumer.download_finished))
421                 # It is correct to drop d here.
422             self.async.addCallback(_read)
423 
424hunk ./src/allmydata/frontends/sftpd.py 765
425         def _read(ign):
426             if noisy: self.log("_read in readChunk(%r, %r)" % (offset, length), level=NOISY)
427             d2 = self.consumer.read(offset, length)
428-            d2.addCallbacks(eventually_callback(d), eventually_errback(d))
429+            d2.addBoth(eventually_callback(d))
430             # It is correct to drop d2 here.
431             return None
432         self.async.addCallbacks(_read, eventually_errback(d))
433hunk ./src/allmydata/frontends/sftpd.py 887
434         else:
435             self.async.addCallback(_close)
436 
437-        self.async.addCallbacks(eventually_callback(d), eventually_errback(d))
438+        self.async.addBoth(eventually_callback(d))
439         d.addBoth(_convert_error, request)
440         return d
441 
442hunk ./src/allmydata/frontends/sftpd.py 891
443+    def when_download_finished(self):
444+        """This is for use by tests, to avoid unclean reactor errors."""
445+        if self.consumer:
446+            return self.consumer.when_download_finished()
447+        else:
448+            return defer.succeed(None)
449+
450     def getAttrs(self):
451         request = ".getAttrs()"
452         self.log(request, level=OPERATIONAL)
453hunk ./src/allmydata/test/test_sftp.py 537
454             # close shouldn't fail
455             d2.addCallback(lambda ign: rf.close())
456             d2.addCallback(lambda res: self.failUnlessReallyEqual(res, None))
457-            return d2
458+
459+            # wait until the download finishes to avoid unclean reactor errors
460+            return deferredutil.gatherResults([d2, rf.when_download_finished()])
461         d.addCallback(_read_broken)
462 
463         d.addCallback(lambda ign: self.failUnlessEqual(sftpd.all_heisenfiles, {}))
464hunk ./src/allmydata/test/test_sftp.py 1023
465             d2.addCallback(lambda ign:
466                 self.shouldFailWithSFTPError(sftp.FX_FAILURE, "read/write broken close",
467                                              rwf.close))
468-            return d2
469+
470+            # wait until the download finishes to avoid unclean reactor errors
471+            return deferredutil.gatherResults([d2, rwf.when_download_finished()])
472         d.addCallback(_read_write_broken)
473 
474         d.addCallback(lambda ign: self.failUnlessEqual(sftpd.all_heisenfiles, {}))
475addfile ./src/allmydata/test/test_sftp2.py
476hunk ./src/allmydata/test/test_sftp2.py 1
477+
478+from twisted.trial import unittest
479+from twisted.internet import defer, base
480+
481+from twisted.conch.ssh import filetransfer as sftp
482+from allmydata.frontends import sftpd
483+
484+from allmydata.immutable import upload
485+from allmydata.test.no_network import GridTestMixin
486+from allmydata.test.common import ShouldFailMixin
487+from allmydata.test.common_util import ReallyEqualMixin
488+from allmydata.util import deferredutil
489+
490+
491+defer.Deferred.debug = True
492+base.DelayedCall.debug = True
493+
494+class Handler(GridTestMixin, ShouldFailMixin, ReallyEqualMixin, unittest.TestCase):
495+    """This is a no-network unit test of the SFTPUserHandler and the abstractions it uses."""
496+
497+    def _set_up(self, basedir, num_clients=1, num_servers=10):
498+        self.basedir = "sftp/" + basedir
499+        self.set_up_grid(num_clients=num_clients, num_servers=num_servers)
500+
501+        #print self.basedir
502+        #for server in self.g.servers_by_number.values():
503+        #    print server.sharedir
504+
505+        self.client = self.g.clients[0]
506+        self.username = "alice"
507+
508+        d = self.client.create_dirnode()
509+        def _created_root(node):
510+            self.root = node
511+            self.root_uri = node.get_uri()
512+            sftpd._reload()
513+            self.handler = sftpd.SFTPUserHandler(self.client, self.root, self.username)
514+        d.addCallback(_created_root)
515+        return d
516+
517+    def _set_up_tree(self):
518+        gross = upload.Data("0123456789" * 101, None)
519+        d = self.root.add_file(u"gro\u00DF", gross)
520+        def _created_gross(n):
521+            self.gross = n
522+            self.gross_uri = n.get_uri()
523+        d.addCallback(_created_gross)
524+        return d
525+
526+    def test_broken(self):
527+        d = self._set_up("broken")
528+        d.addCallback(lambda ign: self._set_up_tree())
529+
530+        # check that failed downloads cause failed reads
531+        d.addCallback(lambda ign: self.handler.openFile("uri/"+self.gross_uri, sftp.FXF_READ, {}))
532+        def _read_broken(rf):
533+            d2 = defer.succeed(None)
534+            d2.addCallback(lambda ign: self.g.nuke_from_orbit())
535+            # close shouldn't fail
536+            d2.addCallback(lambda ign: rf.close())
537+            d2.addCallback(lambda res: self.failUnlessReallyEqual(res, None))
538+
539+            # wait until the download finishes to avoid unclean reactor errors
540+            return deferredutil.gatherResults([d2, rf.when_download_finished()])
541+        d.addCallback(_read_broken)
542+        return d
543}
544
545Context:
546
547[cli: make --mutable-type imply --mutable in 'tahoe put'
548Kevan Carstensen <kevan@isnotajoke.com>**20110903190920
549 Ignore-this: 23336d3c43b2a9554e40c2a11c675e93
550]
551[SFTP: add a comment about a subtle interaction between OverwriteableFileConsumer and GeneralSFTPFile, and test the case it is commenting on.
552david-sarah@jacaranda.org**20110903222304
553 Ignore-this: 980c61d4dd0119337f1463a69aeebaf0
554]
555[improve the storage/mutable.py asserts even more
556warner@lothar.com**20110901160543
557 Ignore-this: 5b2b13c49bc4034f96e6e3aaaa9a9946
558]
559[storage/mutable.py: special characters in struct.foo arguments indicate standard as opposed to native sizes, we should be using these characters in these asserts
560wilcoxjg@gmail.com**20110901084144
561 Ignore-this: 28ace2b2678642e4d7269ddab8c67f30
562]
563[test_mutable.Version: consolidate some tests, reduce runtime from 19s to 15s
564warner@lothar.com**20110831050451
565 Ignore-this: 64815284d9e536f8f3798b5f44cf580c
566]
567[mutable/retrieve: handle the case where self._read_length is 0.
568Kevan Carstensen <kevan@isnotajoke.com>**20110830210141
569 Ignore-this: fceafbe485851ca53f2774e5a4fd8d30
570 
571 Note that the downloader will still fetch a segment for a zero-length
572 read, which is wasteful. Fixing that isn't specifically required to fix
573 #1512, but it should probably be fixed before 1.9.
574]
575[NEWS: added summary of all changes since 1.8.2. Needs editing.
576Brian Warner <warner@lothar.com>**20110830163205
577 Ignore-this: 273899b37a899fc6919b74572454b8b2
578]
579[test_mutable.Update: only upload the files needed for each test. refs #1500
580Brian Warner <warner@lothar.com>**20110829072717
581 Ignore-this: 4d2ab4c7523af9054af7ecca9c3d9dc7
582 
583 This first step shaves 15% off the runtime: from 139s to 119s on my laptop.
584 It also fixes a couple of places where a Deferred was being dropped, which
585 would cause two tests to run in parallel and also confuse error reporting.
586]
587[Let Uploader retain History instead of passing it into upload(). Fixes #1079.
588Brian Warner <warner@lothar.com>**20110829063246
589 Ignore-this: 3902c58ec12bd4b2d876806248e19f17
590 
591 This consistently records all immutable uploads in the Recent Uploads And
592 Downloads page, regardless of code path. Previously, certain webapi upload
593 operations (like PUT /uri/$DIRCAP/newchildname) failed to pass the History
594 object and were left out.
595]
596[Fix mutable publish/retrieve timing status displays. Fixes #1505.
597Brian Warner <warner@lothar.com>**20110828232221
598 Ignore-this: 4080ce065cf481b2180fd711c9772dd6
599 
600 publish:
601 * encrypt and encode times are cumulative, not just current-segment
602 
603 retrieve:
604 * same for decrypt and decode times
605 * update "current status" to include segment number
606 * set status to Finished/Failed when download is complete
607 * set progress to 1.0 when complete
608 
609 More improvements to consider:
610 * progress is currently 0% or 100%: should calculate how many segments are
611   involved (remembering retrieve can be less than the whole file) and set it
612   to a fraction
613 * "fetch" time is fuzzy: what we want is to know how much of the delay is not
614   our own fault, but since we do decode/decrypt work while waiting for more
615   shares, it's not straightforward
616]
617[Teach 'tahoe debug catalog-shares about MDMF. Closes #1507.
618Brian Warner <warner@lothar.com>**20110828080931
619 Ignore-this: 56ef2951db1a648353d7daac6a04c7d1
620]
621[debug.py: remove some dead comments
622Brian Warner <warner@lothar.com>**20110828074556
623 Ignore-this: 40e74040dd4d14fd2f4e4baaae506b31
624]
625[hush pyflakes
626Brian Warner <warner@lothar.com>**20110828074254
627 Ignore-this: bef9d537a969fa82fe4decc4ba2acb09
628]
629[MutableFileNode.set_downloader_hints: never depend upon order of dict.values()
630Brian Warner <warner@lothar.com>**20110828074103
631 Ignore-this: caaf1aa518dbdde4d797b7f335230faa
632 
633 The old code was calculating the "extension parameters" (a list) from the
634 downloader hints (a dictionary) with hints.values(), which is not stable, and
635 would result in corrupted filecaps (with the 'k' and 'segsize' hints
636 occasionally swapped). The new code always uses [k,segsize].
637]
638[layout.py: fix MDMF share layout documentation
639Brian Warner <warner@lothar.com>**20110828073921
640 Ignore-this: 3f13366fed75b5e31b51ae895450a225
641]
642[teach 'tahoe debug dump-share' about MDMF and offsets. refs #1507
643Brian Warner <warner@lothar.com>**20110828073834
644 Ignore-this: 3a9d2ef9c47a72bf1506ba41199a1dea
645]
646[test_mutable.Version.test_debug: use splitlines() to fix buildslaves
647Brian Warner <warner@lothar.com>**20110828064728
648 Ignore-this: c7f6245426fc80b9d1ae901d5218246a
649 
650 Any slave running in a directory with spaces in the name was miscounting
651 shares, causing the test to fail.
652]
653[test_mutable.Version: exercise 'tahoe debug find-shares' on MDMF. refs #1507
654Brian Warner <warner@lothar.com>**20110828005542
655 Ignore-this: cb20bea1c28bfa50a72317d70e109672
656 
657 Also changes NoNetworkGrid to put shares in storage/shares/ .
658]
659[test_mutable.py: oops, missed a .todo
660Brian Warner <warner@lothar.com>**20110828002118
661 Ignore-this: fda09ae86481352b7a627c278d2a3940
662]
663[test_mutable: merge davidsarah's patch with my Version refactorings
664warner@lothar.com**20110827235707
665 Ignore-this: b5aaf481c90d99e33827273b5d118fd0
666]
667[test_mutable.Version: factor out some expensive uploads, save 25% runtime
668Brian Warner <warner@lothar.com>**20110827232737
669 Ignore-this: ea37383eb85ea0894b254fe4dfb45544
670]
671[SDMF: update filenode with correct k/N after Retrieve. Fixes #1510.
672Brian Warner <warner@lothar.com>**20110827225031
673 Ignore-this: b50ae6e1045818c400079f118b4ef48
674 
675 Without this, we get a regression when modifying a mutable file that was
676 created with more shares (larger N) than our current tahoe.cfg . The
677 modification attempt creates new versions of the (0,1,..,newN-1) shares, but
678 leaves the old versions of the (newN,..,oldN-1) shares alone (and throws a
679 assertion error in SDMFSlotWriteProxy.finish_publishing in the process).
680 
681 The mixed versions that result (some shares with e.g. N=10, some with N=20,
682 such that both versions are recoverable) cause problems for the Publish code,
683 even before MDMF landed. Might be related to refs #1390 and refs #1042.
684]
685[layout.py: annotate assertion to figure out 'tahoe backup' failure
686Brian Warner <warner@lothar.com>**20110827195253
687 Ignore-this: 9b92b954e3ed0d0f80154fff1ff674e5
688]
689[Add 'tahoe debug dump-cap' support for MDMF, DIR2-CHK, DIR2-MDMF. refs #1507.
690Brian Warner <warner@lothar.com>**20110827195048
691 Ignore-this: 61c6af5e33fc88e0251e697a50addb2c
692 
693 This also adds tests for all those cases, and fixes an omission in uri.py
694 that broke parsing of DIR2-MDMF-Verifier and DIR2-CHK-Verifier.
695]
696[MDMF: more writable/writeable consistentifications
697warner@lothar.com**20110827190602
698 Ignore-this: 22492a9e20c1819ddb12091062888b55
699]
700[MDMF: s/Writable/Writeable/g, for consistency with existing SDMF code
701warner@lothar.com**20110827183357
702 Ignore-this: 9dd312acedbdb2fc2f7bef0d0fb17c0b
703]
704[test_mutable.Update: increase timeout from 120s to 400s, slaves are failing
705Brian Warner <warner@lothar.com>**20110825230140
706 Ignore-this: 101b1924a30cdbda9b2e419e95ca15ec
707]
708[tests: fix check_memory test
709zooko@zooko.com**20110825201116
710 Ignore-this: 4d66299fa8cb61d2ca04b3f45344d835
711 fixes #1503
712]
713[docs/write_coordination.rst: fix formatting and add more specific warning about access via sshfs.
714david-sarah@jacaranda.org**20110831232148
715 Ignore-this: cd9c851d3eb4e0a1e088f337c291586c
716]
717[setup.cfg: remove no-longer-supported test_mac_diskimage alias. refs #1479
718david-sarah@jacaranda.org**20110826230345
719 Ignore-this: 40e908b8937322a290fb8012bfcad02a
720]
721[TAG allmydata-tahoe-1.9.0a1
722warner@lothar.com**20110825161122
723 Ignore-this: 3cbf49f00dbda58189f893c427f65605
724]
725[touch NEWS to trigger buildslaves
726warner@lothar.com**20110825161026
727 Ignore-this: 3d444737d005a9051780d15604166401
728]
729[test_mutable.Update: remove .timeout overrides, otherwise tests ERROR
730Brian Warner <warner@lothar.com>**20110825022455
731 Ignore-this: 140ea1f7207ffd68be40e112f6e3d310
732]
733[blacklist.py: add read() method too, for completeness
734warner@lothar.com**20110825021902
735 Ignore-this: c79a429f311b01732eba2a71119e84
736]
737[Additional tests for MDMF URIs and for zero-length files. refs #393
738david-sarah@jacaranda.org**20110823011532
739 Ignore-this: a7cc0c09d1d2d72413f9cd227c47a9d5
740]
741[Additional tests for zero-length partial reads and updates to mutable versions. refs #393
742david-sarah@jacaranda.org**20110822014111
743 Ignore-this: 5fc6f4d06e11910124e4a277ec8a43ea
744]
745[Implementation, tests and docs for blacklists. This version allows listing directories containing a blacklisted child. Inclusion of blacklist.py fixed. fixes #1425
746david-sarah@jacaranda.org**20110824155928
747 Ignore-this: a306f36bb6640eaf046e66dc4beeb11c
748]
749[Make the immutable/read-only constraint checking for MDMF URIs identical to that for SSK URIs. refs #393
750david-sarah@jacaranda.org**20110823012720
751 Ignore-this: e1f59d7ff2007c81dbef2aeb14abd721
752]
753[mutable/layout.py: fix unused import. refs #393
754david-sarah@jacaranda.org**20110816225043
755 Ignore-this: 7c9d6d91521ceb9a7abd14b2c60c0604
756]
757[mutable/retrieve.py: cosmetics and remove a stale comment. refs #393
758david-sarah@jacaranda.org**20110816214612
759 Ignore-this: 916e60c9dff1ef85595822e609ff34b7
760]
761[mutable/filenode.py: don't fetch more segments than necesasry to update the file
762Kevan Carstensen <kevan@isnotajoke.com>**20110813210005
763 Ignore-this: 2b0ad0533baa6f19f18851317dfc9f15
764]
765[test/test_mutable: test for incorrect div_ceil equations
766Kevan Carstensen <kevan@isnotajoke.com>**20110813183936
767 Ignore-this: 74e6061ab2ec5e706a1235611f87d5d6
768]
769[mutable/retrieve.py: use floor division to calculate segment boundaries, don't fetch more segments than necessary
770Kevan Carstensen <kevan@isnotajoke.com>**20110813183833
771 Ignore-this: 3e272249107afd3fbc1dd30c6a4f1e31
772]
773[mdmf: clean up boolean expressions, correct typos, remove self._paused, and don't unconditionally initialize block hash trees, asll as suggested by davidsarahs' review comments
774Kevan Carstensen <kevan@isnotajoke.com>**20110813183710
775 Ignore-this: cc6ad9f98b64f379151aa58b77b6c4e5
776]
777[now that tests pass with full-size keys, return test-keys to normal (522bit)
778warner@lothar.com**20110811175418
779 Ignore-this: dbce8a6699ba9a90d91cffbc8aa87900
780]
781[fix SHARE_HASH_CHAIN_SIZE computation
782warner@lothar.com**20110811175350
783 Ignore-this: 4508359d2207c8c1b7552b546697264
784]
785[More idiomatic resolution of the conflict between ticket393-MDMF-2 and trunk. refs #393
786david-sarah@jacaranda.org**20110810202942
787 Ignore-this: 7fc54a30ab0bc6ce75b7d819800c1182
788]
789[Replace the hard-coded 522-bit RSA key size used for tests with a TEST_RSA_KEY_SIZE constant defined in test/common.py (part 2). refs #393
790david-sarah@jacaranda.org**20110810202310
791 Ignore-this: 7fbd4d004279599bbcb10f7b31fb010f
792]
793[Replace the hard-coded 522-bit RSA key size used for tests with a TEST_RSA_KEY_SIZE constant defined in test/common.py (part 1). refs #393
794david-sarah@jacaranda.org**20110810202243
795 Ignore-this: c58d8130a2f383ff4421c632499b027b
796]
797[merge some minor conflicts in test code from the 393-2 branch and trunk
798zooko@zooko.com**20110810172139
799 Ignore-this: 4a16f13eeae585c7c1dbe18c67072c90
800]
801[doc: eliminate the phrase "rootcap" from doc/frontends/FTP-and-SFTP.rst
802zooko@zooko.com**20110809132601
803 Ignore-this: f7e1dd212daa65c81fb57977bce24304
804 Two different people have asked me for help, saying they couldn't figure out what a "rootcap" is. Hopefully just calling it a "cap" will make it easier for them to find out from the other docs what it is.
805]
806[test_web.py: fix a test failure dependent on whether simplejson.loads returns a unicode or str object.
807david-sarah@jacaranda.org**20110808213925
808 Ignore-this: f7b267be8be56fcabc968e3c89999490
809]
810[immutable/filenode: fix pyflakes warnings
811Kevan Carstensen <kevan@isnotajoke.com>**20110807004514
812 Ignore-this: e8d875bf8b1c5571e31b0eff42ecf64c
813]
814[test: fix assorted tests broken by MDMF changes
815Kevan Carstensen <kevan@isnotajoke.com>**20110807004459
816 Ignore-this: 9a0dc7e5c74bfe840a9fce278619a103
817]
818[uri: add MDMF and MDMF directory caps, add extension hint support
819Kevan Carstensen <kevan@isnotajoke.com>**20110807004436
820 Ignore-this: 6486b7d4dc0e849c6b1e9cdfb6318eac
821]
822[test/test_mutable: tests for MDMF
823Kevan Carstensen <kevan@isnotajoke.com>**20110807004414
824 Ignore-this: 29f9c3a806d67df0ed09c4f0d857d347
825 
826 These are their own patch because they cut across a lot of the changes
827 I've made in implementing MDMF in such a way as to make it difficult to
828 split them up into the other patches.
829]
830[webapi changes for MDMF
831Kevan Carstensen <kevan@isnotajoke.com>**20110807004348
832 Ignore-this: d6d4dac680baa4c99b05882b3828796c
833 
834     - Learn how to create MDMF files and directories through the
835       mutable-type argument.
836     - Operate with the interface changes associated with MDMF and #993.
837     - Learn how to do partial updates of mutable files.
838]
839[mutable/servermap: Rework the servermap to work with MDMF mutable files
840Kevan Carstensen <kevan@isnotajoke.com>**20110807004259
841 Ignore-this: 154b987fa0af716c41185b88ff7ee2e1
842]
843[dirnode: teach dirnode to make MDMF directories
844Kevan Carstensen <kevan@isnotajoke.com>**20110807004224
845 Ignore-this: 765ccd6a07ff752bf6057a3dab9e5abd
846]
847[Fix some test failures caused by #393 patch.
848david-sarah@jacaranda.org**20110802032810
849 Ignore-this: 7f65e5adb5c859af289cea7011216fef
850]
851[docs: amend configuration, webapi documentation to talk about MDMF
852Kevan Carstensen <kevan@isnotajoke.com>**20110802022056
853 Ignore-this: 4cab9b7e4ab79cc1efdabe2d457f27a6
854]
855[cli: teach CLI how to create MDMF mutable files
856Kevan Carstensen <kevan@isnotajoke.com>**20110802021613
857 Ignore-this: 18d0ff98e75be231eed3c53319e76936
858 
859 Specifically, 'tahoe mkdir' and 'tahoe put' now take a --mutable-type
860 argument.
861]
862[frontends/sftpd: Resolve incompatibilities between SFTP frontend and MDMF changes
863Kevan Carstensen <kevan@isnotajoke.com>**20110802021207
864 Ignore-this: 5e0f6e961048f71d4eed6d30210ffd2e
865]
866[mutable/layout: Define MDMF share format, write tools for working with MDMF share format
867Kevan Carstensen <kevan@isnotajoke.com>**20110802021120
868 Ignore-this: fa76ef4800939e19ba3cbc22a2eab4e
869 
870 The changes in layout.py are mostly concerned with the MDMF share
871 format. In particular, we define read and write proxy objects used by
872 retrieval, publishing, and other code to write and read the MDMF share
873 format. We create equivalent proxies for SDMF objects so that these
874 objects can be suitably general.
875]
876[immutable/filenode: implement unified filenode interface
877Kevan Carstensen <kevan@isnotajoke.com>**20110802020905
878 Ignore-this: d9a442fc285157f134f5d1b4607c6a48
879]
880[immutable/literal.py: Implement interface changes in literal nodes.
881Kevan Carstensen <kevan@isnotajoke.com>**20110802020814
882 Ignore-this: 4371e71a50e65ce2607c4d67d3a32171
883]
884[test/common: Alter common test code to work with MDMF.
885Kevan Carstensen <kevan@isnotajoke.com>**20110802015643
886 Ignore-this: e564403182d0030439b168dd9f8726fa
887 
888 This mostly has to do with making the test code implement the new
889 unified filenode interfaces.
890]
891[mutable: train checker and repairer to work with MDMF mutable files
892Kevan Carstensen <kevan@isnotajoke.com>**20110802015140
893 Ignore-this: 8b1928925bed63708b71ab0de8d4306f
894]
895[nodemaker: teach nodemaker about MDMF caps
896Kevan Carstensen <kevan@isnotajoke.com>**20110802014926
897 Ignore-this: 430c73121b6883b99626cfd652fc65c4
898]
899[client: teach client how to create and work with MDMF files
900Kevan Carstensen <kevan@isnotajoke.com>**20110802014811
901 Ignore-this: d72fbc4c2ca63f00d9ab9dc2919098ff
902]
903[mutable/filenode: Modify mutable filenodes for use with MDMF
904Kevan Carstensen <kevan@isnotajoke.com>**20110802014501
905 Ignore-this: 3c230bb0ebe60a94c667b0ee0c3b28e0
906 
907 In particular:
908     - Break MutableFileNode and MutableFileVersion into distinct classes.
909     - Implement the interface modifications made for MDMF.
910     - Be aware of MDMF caps.
911     - Learn how to create and work with MDMF files.
912]
913[nodemaker: teach nodemaker how to create MDMF mutable files
914Kevan Carstensen <kevan@isnotajoke.com>**20110802014258
915 Ignore-this: 2bf1fd4f8c1d1ad0e855c678347b76c2
916]
917[interfaces: change interfaces to work with MDMF
918Kevan Carstensen <kevan@isnotajoke.com>**20110802014119
919 Ignore-this: 2f441022cf888c044bc9e6dd609db139
920 
921 A lot of this work concerns #993, in that it unifies (to an extent) the
922 interfaces of mutable and immutable files.
923]
924[mutable/publish: teach the publisher how to publish MDMF mutable files
925Kevan Carstensen <kevan@isnotajoke.com>**20110802013931
926 Ignore-this: 115217ec2b289452ec774cb725da8a86
927 
928 Like the downloader, the publisher needs some substantial changes to handle multiple segment mutable files.
929]
930[mutable/retrieve: rework the mutable downloader to handle multiple-segment files
931Kevan Carstensen <kevan@isnotajoke.com>**20110802013524
932 Ignore-this: 398d11b5cb993b50e5e4fa6e7a3856dc
933 
934 The downloader needs substantial reworking to handle multiple segment
935 mutable files, which it needs to handle for MDMF.
936]
937[Fix repeated 'the' in license text.
938david-sarah@jacaranda.org**20110819204836
939 Ignore-this: b3bd4e9ec22029fe15533ad2a60003ad
940]
941[Remove Non-Profit Open Software License from the set of 'added permission' licenses. Although it actually does qualify as an Open Source license (because it allows relicensing under plain OSL), its wording is unclear and could easily be misunderstood, and it contributes to incompatible license proliferation.
942david-sarah@jacaranda.org**20110819204742
943 Ignore-this: 7373819a6b5367581356728ea62cabb1
944]
945[docs: change links that pointed to COPYING.TGPPL.html to point to COPYING.TGPPL.rst instead
946zooko@zooko.com**20110819060142
947 Ignore-this: 301652554fd7ab4bfa5aa8f8a2863a9e
948]
949[docs: formatting: reflow to fill-column 77
950zooko@zooko.com**20110819060110
951 Ignore-this: ed1317c126f07c63b944bd2fa6aa2d21
952]
953[docs: formatting: M-x whitespace-cleanup
954zooko@zooko.com**20110819060041
955 Ignore-this: 8554b16a25067094d0dc4dc71e1b3950
956]
957[licensing: add to the list of licenses that we grant the added permission for
958zooko@zooko.com**20110819054656
959 Ignore-this: eb1490416ac6b7414a27f150a8a8a047
960 Added: most of the ones listed on the FSF's "List of Free Software, GPL Incompatible Licenses", plus the Non-Profit Open Software License.
961]
962[docs: reflow the added text at the top of COPYING.GPL to fill-column 77
963zooko@zooko.com**20110819053059
964 Ignore-this: e994ed6ffbcc12656406f11cb862ce99
965]
966[docs: reformat COPYING.TGPPL.html to COPYING.TGPPL.rst
967zooko@zooko.com**20110819052753
968 Ignore-this: 34ddf623e0a6de008ba859ca9c92b2fd
969]
970[docs: reflow docs/logging.rst to fill-column 77
971zooko@zooko.com**20110819044103
972 Ignore-this: a6901f2244995f278ddf8d75d29410bf
973]
974[doc: fix formatting error in docs/logging.rst
975zooko@zooko.com**20110819043946
976 Ignore-this: fa182dbbe7f4fda15e0a8bfcf7f00051
977]
978[Cleanups for suppression of UserWarnings. refs #1435
979david-sarah@jacaranda.org**20110818040749
980 Ignore-this: 3863ef399c1c382a1365d51f000d314c
981]
982[suppress warning emitted by newer zope.interface with Nevow 0.10
983zooko@zooko.com**20110817203134
984 Ignore-this: b86d4ce0ed1c0da76d1f9eaf8d08d9c4
985 refs #1435
986]
987[doc: formatting: reflow to fill-column=77
988zooko@zooko.com**20110809132510
989 Ignore-this: 2d6d2e203d52925968b4451f36364792
990]
991[_auto_deps.py: change the requirement for zope.interface to <= 3.6.2, >= 3.6.6. fixes #1435
992david-sarah@jacaranda.org**20110815025347
993 Ignore-this: 17a88c0f6573f044fbcd6b666667bd37
994]
995[allmydata/__init__.py, test_version.py: make version parsing understand '<=', with test. refs #1435
996david-sarah@jacaranda.org**20110815035153
997 Ignore-this: 8c3a75f4a2b42b56bac48b5053c5e9c2
998]
999[Makefile and setup.py: remove setup.py commands that we no longer need, and their uses in the Makefile. Delete a stale and incorrect comment about updating _version.py. Also fix some coding style checks in the Makefile to operate on all source files.
1000david-sarah@jacaranda.org**20110801031952
1001 Ignore-this: 80a435dee3bc6e29058d4b37ff579922
1002]
1003[remove misc/debian[_helpers], rely upon official packaging instead. fixes #1454
1004warner@lothar.com**20110811182705
1005 Ignore-this: 79673cafc7c108db49b5ab908d7b4668
1006]
1007[Makefile: remove targets that used misc/debian[_helpers] which no longer exist. Also change docs/debian.rst to reflect the fact that we no longer support building .debs using those targets. refs #1454
1008david-sarah@jacaranda.org**20110801031857
1009 Ignore-this: 347cbeff45757db630ce34d0cfb84f92
1010]
1011[replace tabs with spaces in the #1441 'tahoe debug' synopsis
1012warner@lothar.com**20110811173704
1013 Ignore-this: 513fbfb18a3dd93119ea3700118df7ee
1014]
1015[Correct the information printed by '/usr/bin/tahoe debug --help' on Debian/Ubuntu. fixes #1441
1016david-sarah@jacaranda.org**20110724162530
1017 Ignore-this: 30d4b8c20e420e9a9d1b73eba1113ae
1018]
1019[doc: edit the explanation of K-of-N tradeoffs
1020zooko@zooko.com**20110804193409
1021 Ignore-this: ab6f4e35a995c2099340b5c9c5d30f40
1022]
1023[doc: clean up formatting of doc/configuration.rst
1024zooko@zooko.com**20110804192722
1025 Ignore-this: 7a98a3a8afb7e5441ff1f534211199ba
1026 reflow to 77 chars line width, M-x white-space cleanup, blank link between name and definition
1027]
1028[Add test for webopen. fixes #1149
1029david-sarah@jacaranda.org**20110724211659
1030 Ignore-this: 1e22853f7eb05e24c3141d56a513f661
1031]
1032[test_client.py: relax a check in test_create_drop_uploader so that it should pass on Python 2.4.x. refs #1429
1033david-sarah@jacaranda.org**20110810052504
1034 Ignore-this: 1380749ceaf33c30e26c50d57476616c
1035]
1036[test/common_util.py: correct fix to mkdir_nonascii. refs #1472
1037david-sarah@jacaranda.org**20110810051906
1038 Ignore-this: 93c0c33370bc47d95c26c4cce8e05290
1039]
1040[test/common_util.py: fix a typo. refs #1472
1041david-sarah@jacaranda.org**20110810044235
1042 Ignore-this: f88643d7c82cb3577686d77bbff9e2bc
1043]
1044[test_client.py, test_drop_upload.py: fix pyflakes warnings.
1045david-sarah@jacaranda.org**20110810034505
1046 Ignore-this: 1e2d71bf2f43d63cbb423d32a6f96793
1047]
1048[Factor out methods dealing with non-ASCII directories and filenames from test_drop_upload.py into common_util.py. refs #1429, #1472
1049david-sarah@jacaranda.org**20110810031558
1050 Ignore-this: 3de8f945fa7a58fc318a1184bad0fd1a
1051]
1052[test_client.py: add a test that the drop-uploader is initialized correctly by client.py. Also give the DropUploader service a name, which is necessary for the test. refs #1429
1053david-sarah@jacaranda.org**20110810030538
1054 Ignore-this: 13d511ea9bbe9da2dcffe4a91ce94eae
1055]
1056[drop-upload: rename 'start' method to 'startService', which is what you're supposed to use to start a Service. refs #1429
1057david-sarah@jacaranda.org**20110810030345
1058 Ignore-this: d1f5e5c63937ea37be37324e2f1ae99d
1059]
1060[test_drop_upload.py: add comment explaining why we don't use FilePath.setContent. refs #1429
1061david-sarah@jacaranda.org**20110810025942
1062 Ignore-this: b95358030b63cb467d1d7f1b9a9b6978
1063]
1064[test_drop_upload.py: fix some grammatical and spelling nits. refs #1429
1065david-sarah@jacaranda.org**20110809221231
1066 Ignore-this: fd331acddd9f754173f274a34fe62f03
1067]
1068[drop-upload: report the configured local directory being absent differently from it being a file
1069zooko@zooko.com**20110809220930
1070 Ignore-this: a08879100f5f20e609be3f0ffa3b25cc
1071 refs #1429
1072]
1073[drop-upload: rename the 'upload.uri' parameter to 'upload.dircap', and a couple of cleanups to error messages. refs #1429
1074zooko@zooko.com**20110809220508
1075 Ignore-this: 4846368cbe331e8653bdce1f314e276b
1076 I rerecorded this patch, originally by David-Sarah, to use "darcs replace" instead of editing to do the renames. This uncovered one missed rename in Client.init_drop_uploader. (Which also means that code isn't exercised by the current unit tests.)
1077 refs #1429
1078]
1079[drop-upload test for non-existent local dir separately from test for non-directory local dir
1080zooko@zooko.com**20110809220115
1081 Ignore-this: cd85f345c02f5cb71b1c1527bd4ebddc
1082 A candidate patch for #1429 has a bug when it is using FilePath.is_dir() to detect whether the configured local dir exists and is a directory. FilePath.is_dir() raises exception, instead of returning False, if the thing doesn't exist. This test is to make sure that DropUploader.__init__ raise different exceptions for those two cases.
1083 refs #1429
1084]
1085[drop-upload: unit tests for the configuration options being named "cap" instead of "uri"
1086zooko@zooko.com**20110809215913
1087 Ignore-this: 958c78fffb3d76b3e4817647f824e7f9
1088 This is a subset of a patch that David-Sarah attached to #1429. This is just the unit-tests part of that patch, and uses darcs record instead of hunks to change the names.
1089 refs #1429
1090]
1091[src/allmydata/storage/server.py: use the filesystem of storage/shares/, rather than storage/, to calculate remaining space. fixes #1384
1092david-sarah@jacaranda.org**20110719022752
1093 Ignore-this: a4781043cfd453dbb66ae4f108d80bea
1094]
1095[test_storage.py: test that we are using the filesystem of storage/shares/, rather than storage/, to calculate remaining space, and that the HTML status output reflects the values returned by fileutil.get_disk_stats. This version works with older versions of the mock library. refs #1384
1096david-sarah@jacaranda.org**20110809190722
1097 Ignore-this: db447caca37a459ca49563efa58db58c
1098]
1099[Work around ref #1472 by having test_drop_upload delete the non-ASCII directories it creates.
1100david-sarah@jacaranda.org**20110809012334
1101 Ignore-this: 5881fd5db419ba8ad12e0b2a82f6c4f0
1102]
1103[Remove all trailing whitespace from .py files.
1104david-sarah@jacaranda.org**20110809001117
1105 Ignore-this: d2658b5ce44af70cc606ae4d3085b7cc
1106]
1107[test_drop_upload.py: fix unused imports. refs #1429
1108david-sarah@jacaranda.org**20110808235422
1109 Ignore-this: 834f6b946bfea699d7d8c743edd66671
1110]
1111[Documentation for drop-upload frontend. refs #1429
1112david-sarah@jacaranda.org**20110808182146
1113 Ignore-this: b33110834e586c0b784d1736c2af5779
1114]
1115[Drop-upload frontend, rerecorded for 1.9 beta (and correcting a minor mistake). Includes some fixes for Windows but not the Windows inotify implementation. fixes #1429
1116david-sarah@jacaranda.org**20110808234049
1117 Ignore-this: 67f824c7f554e9a3a85f9fd2e1123d97
1118]
1119[node.py: ensure that client and introducer nodes record their port number and use that port on the next restart, fixing a regression caused by #1385. fixes #1469.
1120david-sarah@jacaranda.org**20110806221934
1121 Ignore-this: 1aa9d340b6570320ab2f9edc89c9e0a8
1122]
1123[test_runner.py: fix a race condition in the test when NODE_URL_FILE is written before PORTNUM_FILE. refs #1469
1124david-sarah@jacaranda.org**20110806231842
1125 Ignore-this: ab01ae7cec3a073e29eec473e64052a0
1126]
1127[test_runner.py: cleanups of HOTLINE_FILE writing and removal.
1128david-sarah@jacaranda.org**20110806231652
1129 Ignore-this: 25f5c5d6f5d8faebb26a4ce80110a335
1130]
1131[test_runner.py: remove an unused constant.
1132david-sarah@jacaranda.org**20110806221416
1133 Ignore-this: eade2695cbabbea9cafeaa8debe410bb
1134]
1135[node.py: fix the error path for a missing config option so that it works for a Unicode base directory.
1136david-sarah@jacaranda.org**20110806221007
1137 Ignore-this: 4eb9cc04b2ce05182a274a0d69dafaf3
1138]
1139[test_runner.py: test that client and introducer nodes record their port number and use that port on the next restart. This tests for a regression caused by ref #1385.
1140david-sarah@jacaranda.org**20110806220635
1141 Ignore-this: 40a0c040b142dbddd47e69b3c3712f5
1142]
1143[test_runner.py: fix a bug in CreateNode.do_create introduced in changeset [5114] when the tahoe.cfg file has been written with CRLF line endings. refs #1385
1144david-sarah@jacaranda.org**20110804003032
1145 Ignore-this: 7b7afdcf99da6671afac2d42828883eb
1146]
1147[test_client.py: repair Basic.test_error_on_old_config_files. refs #1385
1148david-sarah@jacaranda.org**20110803235036
1149 Ignore-this: 31e2a9c3febe55948de7e144353663e
1150]
1151[test_checker.py: increase timeout for TooParallel.test_immutable again. The ARM buildslave took 38 seconds, so 40 seconds is too close to the edge; make it 80.
1152david-sarah@jacaranda.org**20110803214042
1153 Ignore-this: 2d8026a6b25534e01738f78d6c7495cb
1154]
1155[test_runner.py: fix RunNode.test_introducer to not rely on the mtime of introducer.furl to detect when the node has restarted. Instead we detect when node.url has been written. refs #1385
1156david-sarah@jacaranda.org**20110803180917
1157 Ignore-this: 11ddc43b107beca42cb78af88c5c394c
1158]
1159[Further improve error message about old config files. refs #1385
1160david-sarah@jacaranda.org**20110803174546
1161 Ignore-this: 9d6cc3c288d9863dce58faafb3855917
1162]
1163[Slightly improve error message about old config files (avoid unnecessary Unicode escaping). refs #1385
1164david-sarah@jacaranda.org**20110803163848
1165 Ignore-this: a3e3930fba7ccf90b8db3d2ed5829df4
1166]
1167[test_checker.py: increase timeout for TooParallel.test_immutable (was consistently failing on ARM buildslave).
1168david-sarah@jacaranda.org**20110803163213
1169 Ignore-this: d0efceaf12628e8791862b80c85b5d56
1170]
1171[Fix the bug that prevents an introducer from starting when introducer.furl already exists. Also remove some dead code that used to read old config files, and rename 'warn_about_old_config_files' to reflect that it's not a warning. refs #1385
1172david-sarah@jacaranda.org**20110803013212
1173 Ignore-this: 2d6cd14bd06a7493b26f2027aff78f4d
1174]
1175[test_runner.py: modify RunNode.test_introducer to test that starting an introducer works when the introducer.furl file already exists. refs #1385
1176david-sarah@jacaranda.org**20110803012704
1177 Ignore-this: 8cf7f27ac4bfbb5ad8ca4a974106d437
1178]
1179[verifier: correct a bug introduced in changeset [5106] that caused us to only verify the first block of a file. refs #1395
1180david-sarah@jacaranda.org**20110802172437
1181 Ignore-this: 87fb77854a839ff217dce73544775b11
1182]
1183[test_repairer: add a deterministic test of share data corruption that always flips the bits of the last byte of the share data. refs #1395
1184david-sarah@jacaranda.org**20110802175841
1185 Ignore-this: 72f54603785007e88220c8d979e08be7
1186]
1187[verifier: serialize the fetching of blocks within a share so that we don't use too much RAM
1188zooko@zooko.com**20110802063703
1189 Ignore-this: debd9bac07dcbb6803f835a9e2eabaa1
1190 
1191 Shares are still verified in parallel, but within a share, don't request a
1192 block until the previous block has been verified and the memory we used to hold
1193 it has been freed up.
1194 
1195 Patch originally due to Brian. This version has a mockery-patchery-style test
1196 which is "low tech" (it implements the patching inline in the test code instead
1197 of using an extension of the mock.patch() function from the mock library) and
1198 which unpatches in case of exception.
1199 
1200 fixes #1395
1201]
1202[add docs about timing-channel attacks
1203Brian Warner <warner@lothar.com>**20110802044541
1204 Ignore-this: 73114d5f5ed9ce252597b707dba3a194
1205]
1206['test-coverage' now needs PYTHONPATH=. to find TOP/twisted/plugins/
1207Brian Warner <warner@lothar.com>**20110802041952
1208 Ignore-this: d40f1f4cb426ea1c362fc961baedde2
1209]
1210[remove nodeid from WriteBucketProxy classes and customers
1211warner@lothar.com**20110801224317
1212 Ignore-this: e55334bb0095de11711eeb3af827e8e8
1213 refs #1363
1214]
1215[remove get_serverid() from ReadBucketProxy and customers, including Checker
1216warner@lothar.com**20110801224307
1217 Ignore-this: 837aba457bc853e4fd413ab1a94519cb
1218 and debug.py dump-share commands
1219 refs #1363
1220]
1221[reject old-style (pre-Tahoe-LAFS-v1.3) configuration files
1222zooko@zooko.com**20110801232423
1223 Ignore-this: b58218fcc064cc75ad8f05ed0c38902b
1224 Check for the existence of any of them and if any are found raise exception which will abort the startup of the node.
1225 This is a backwards-incompatible change for anyone who is still using old-style configuration files.
1226 fixes #1385
1227]
1228[whitespace-cleanup
1229zooko@zooko.com**20110725015546
1230 Ignore-this: 442970d0545183b97adc7bd66657876c
1231]
1232[tests: use fileutil.write() instead of open() to ensure timely close even without CPython-style reference counting
1233zooko@zooko.com**20110331145427
1234 Ignore-this: 75aae4ab8e5fa0ad698f998aaa1888ce
1235 Some of these already had an explicit close() but I went ahead and replaced them with fileutil.write() as well for the sake of uniformity.
1236]
1237[Address Kevan's comment in #776 about Options classes missed when adding 'self.command_name'. refs #776, #1359
1238david-sarah@jacaranda.org**20110801221317
1239 Ignore-this: 8881d42cf7e6a1d15468291b0cb8fab9
1240]
1241[docs/frontends/webapi.rst: change some more instances of 'delete' or 'remove' to 'unlink', change some section titles, and use two blank lines between all sections. refs #776, #1104
1242david-sarah@jacaranda.org**20110801220919
1243 Ignore-this: 572327591137bb05c24c44812d4b163f
1244]
1245[cleanup: implement rm as a synonym for unlink rather than vice-versa. refs #776
1246david-sarah@jacaranda.org**20110801220108
1247 Ignore-this: 598dcbed870f4f6bb9df62de9111b343
1248]
1249[docs/webapi.rst: address Kevan's comments about use of 'delete' on ref #1104
1250david-sarah@jacaranda.org**20110801205356
1251 Ignore-this: 4fbf03864934753c951ddeff64392491
1252]
1253[docs: some changes of 'delete' or 'rm' to 'unlink'. refs #1104
1254david-sarah@jacaranda.org**20110713002722
1255 Ignore-this: 304d2a330d5e6e77d5f1feed7814b21c
1256]
1257[WUI: change the label of the button to unlink a file from 'del' to 'unlink'. Also change some internal names to 'unlink', and allow 't=unlink' as a synonym for 't=delete' in the web-API interface. Incidentally, improve a test to check for the rename button as well as the unlink button. fixes #1104
1258david-sarah@jacaranda.org**20110713001218
1259 Ignore-this: 3eef6b3f81b94a9c0020a38eb20aa069
1260]
1261[src/allmydata/web/filenode.py: delete a stale comment that was made incorrect by changeset [3133].
1262david-sarah@jacaranda.org**20110801203009
1263 Ignore-this: b3912e95a874647027efdc97822dd10e
1264]
1265[fix typo introduced during rebasing of 'remove get_serverid from
1266Brian Warner <warner@lothar.com>**20110801200341
1267 Ignore-this: 4235b0f585c0533892193941dbbd89a8
1268 DownloadStatus.add_dyhb_request and customers' patch, to fix test failure.
1269]
1270[remove get_serverid from DownloadStatus.add_dyhb_request and customers
1271zooko@zooko.com**20110801185401
1272 Ignore-this: db188c18566d2d0ab39a80c9dc8f6be6
1273 This patch is a rebase of a patch originally written by Brian. I didn't change any of the intent of Brian's patch, just ported it to current trunk.
1274 refs #1363
1275]
1276[remove get_serverid from DownloadStatus.add_block_request and customers
1277zooko@zooko.com**20110801185344
1278 Ignore-this: 8bfa8201d6147f69b0fbe31beea9c1e
1279 This is a rebase of a patch Brian originally wrote. I haven't changed the intent of that patch, just ported it to trunk.
1280 refs #1363
1281]
1282[apply zooko's advice: storage_client get_known_servers() returns a frozenset, caller sorts
1283warner@lothar.com**20110801174452
1284 Ignore-this: 2aa13ea6cbed4e9084bd604bf8633692
1285 refs #1363
1286]
1287[test_immutable.Test: rewrite to use NoNetworkGrid, now takes 2.7s not 97s
1288warner@lothar.com**20110801174444
1289 Ignore-this: 54f30b5d7461d2b3514e2a0172f3a98c
1290 remove now-unused ShareManglingMixin
1291 refs #1363
1292]
1293[DownloadStatus.add_known_share wants to be used by Finder, web.status
1294warner@lothar.com**20110801174436
1295 Ignore-this: 1433bcd73099a579abe449f697f35f9
1296 refs #1363
1297]
1298[replace IServer.name() with get_name(), and get_longname()
1299warner@lothar.com**20110801174428
1300 Ignore-this: e5a6f7f6687fd7732ddf41cfdd7c491b
1301 
1302 This patch was originally written by Brian, but was re-recorded by Zooko to use
1303 darcs replace instead of hunks for any file in which it would result in fewer
1304 total hunks.
1305 refs #1363
1306]
1307[upload.py: apply David-Sarah's advice rename (un)contacted(2) trackers to first_pass/second_pass/next_pass
1308zooko@zooko.com**20110801174143
1309 Ignore-this: e36e1420bba0620a0107bd90032a5198
1310 This patch was written by Brian but was re-recorded by Zooko (with David-Sarah looking on) to use darcs replace instead of editing to rename the three variables to their new names.
1311 refs #1363
1312]
1313[Coalesce multiple Share.loop() calls, make downloads faster. Closes #1268.
1314Brian Warner <warner@lothar.com>**20110801151834
1315 Ignore-this: 48530fce36c01c0ff708f61c2de7e67a
1316]
1317[src/allmydata/_auto_deps.py: 'i686' is another way of spelling x86.
1318david-sarah@jacaranda.org**20110801034035
1319 Ignore-this: 6971e0621db2fba794d86395b4d51038
1320]
1321[tahoe_rm.py: better error message when there is no path. refs #1292
1322david-sarah@jacaranda.org**20110122064212
1323 Ignore-this: ff3bb2c9f376250e5fd77eb009e09018
1324]
1325[test_cli.py: Test for error message when 'tahoe rm' is invoked without a path. refs #1292
1326david-sarah@jacaranda.org**20110104105108
1327 Ignore-this: 29ec2f2e0251e446db96db002ad5dd7d
1328]
1329[src/allmydata/__init__.py: suppress a spurious warning from 'bin/tahoe --version[-and-path]' about twisted-web and twisted-core packages.
1330david-sarah@jacaranda.org**20110801005209
1331 Ignore-this: 50e7cd53cca57b1870d9df0361c7c709
1332]
1333[test_cli.py: use to_str on fields loaded using simplejson.loads in new tests. refs #1304
1334david-sarah@jacaranda.org**20110730032521
1335 Ignore-this: d1d6dfaefd1b4e733181bf127c79c00b
1336]
1337[cli: make 'tahoe cp' overwrite mutable files in-place
1338Kevan Carstensen <kevan@isnotajoke.com>**20110729202039
1339 Ignore-this: b2ad21a19439722f05c49bfd35b01855
1340]
1341[SFTP: write an error message to standard error for unrecognized shell commands. Change the existing message for shell sessions to be written to standard error, and refactor some duplicated code. Also change the lines of the error messages to end in CRLF, and take into account Kevan's review comments. fixes #1442, #1446
1342david-sarah@jacaranda.org**20110729233102
1343 Ignore-this: d2f2bb4664f25007d1602bf7333e2cdd
1344]
1345[src/allmydata/scripts/cli.py: fix pyflakes warning.
1346david-sarah@jacaranda.org**20110728021402
1347 Ignore-this: 94050140ddb99865295973f49927c509
1348]
1349[Fix the help synopses of CLI commands to include [options] in the right place. fixes #1359, fixes #636
1350david-sarah@jacaranda.org**20110724225440
1351 Ignore-this: 2a8e488a5f63dabfa9db9efd83768a5
1352]
1353[encodingutil: argv and output encodings are always the same on all platforms. Lose the unnecessary generality of them being different. fixes #1120
1354david-sarah@jacaranda.org**20110629185356
1355 Ignore-this: 5ebacbe6903dfa83ffd3ff8436a97787
1356]
1357[docs/man/tahoe.1: add man page. fixes #1420
1358david-sarah@jacaranda.org**20110724171728
1359 Ignore-this: fc7601ec7f25494288d6141d0ae0004c
1360]
1361[Update the dependency on zope.interface to fix an incompatiblity between Nevow and zope.interface 3.6.4. fixes #1435
1362david-sarah@jacaranda.org**20110721234941
1363 Ignore-this: 2ff3fcfc030fca1a4d4c7f1fed0f2aa9
1364]
1365[frontends/ftpd.py: remove the check for IWriteFile.close since we're now guaranteed to be using Twisted >= 10.1 which has it.
1366david-sarah@jacaranda.org**20110722000320
1367 Ignore-this: 55cd558b791526113db3f83c00ec328a
1368]
1369[Update the dependency on Twisted to >= 10.1. This allows us to simplify some documentation: it's no longer necessary to install pywin32 on Windows, or apply a patch to Twisted in order to use the FTP frontend. fixes #1274, #1438. refs #1429
1370david-sarah@jacaranda.org**20110721233658
1371 Ignore-this: 81b41745477163c9b39c0b59db91cc62
1372]
1373[misc/build_helpers/run_trial.py: undo change to block pywin32 (it didn't work because run_trial.py is no longer used). refs #1334
1374david-sarah@jacaranda.org**20110722035402
1375 Ignore-this: 5d03f544c4154f088e26c7107494bf39
1376]
1377[misc/build_helpers/run_trial.py: ensure that pywin32 is not on the sys.path when running the test suite. Includes some temporary debugging printouts that will be removed. refs #1334
1378david-sarah@jacaranda.org**20110722024907
1379 Ignore-this: 5141a9f83a4085ed4ca21f0bbb20bb9c
1380]
1381[docs/running.rst: use 'tahoe run ~/.tahoe' instead of 'tahoe run' (the default is the current directory, unlike 'tahoe start').
1382david-sarah@jacaranda.org**20110718005949
1383 Ignore-this: 81837fbce073e93d88a3e7ae3122458c
1384]
1385[docs/running.rst: say to put the introducer.furl in tahoe.cfg.
1386david-sarah@jacaranda.org**20110717194315
1387 Ignore-this: 954cc4c08e413e8c62685d58ff3e11f3
1388]
1389[README.txt: say that quickstart.rst is in the docs directory.
1390david-sarah@jacaranda.org**20110717192400
1391 Ignore-this: bc6d35a85c496b77dbef7570677ea42a
1392]
1393[setup: remove the dependency on foolscap's "secure_connections" extra, add a dependency on pyOpenSSL
1394zooko@zooko.com**20110717114226
1395 Ignore-this: df222120d41447ce4102616921626c82
1396 fixes #1383
1397]
1398[test_sftp.py cleanup: remove a redundant definition of failUnlessReallyEqual.
1399david-sarah@jacaranda.org**20110716181813
1400 Ignore-this: 50113380b368c573f07ac6fe2eb1e97f
1401]
1402[docs: add missing link in NEWS.rst
1403zooko@zooko.com**20110712153307
1404 Ignore-this: be7b7eb81c03700b739daa1027d72b35
1405]
1406[contrib: remove the contributed fuse modules and the entire contrib/ directory, which is now empty
1407zooko@zooko.com**20110712153229
1408 Ignore-this: 723c4f9e2211027c79d711715d972c5
1409 Also remove a couple of vestigial references to figleaf, which is long gone.
1410 fixes #1409 (remove contrib/fuse)
1411]
1412[add Protovis.js-based download-status timeline visualization
1413Brian Warner <warner@lothar.com>**20110629222606
1414 Ignore-this: 477ccef5c51b30e246f5b6e04ab4a127
1415 
1416 provide status overlap info on the webapi t=json output, add decode/decrypt
1417 rate tooltips, add zoomin/zoomout buttons
1418]
1419[add more download-status data, fix tests
1420Brian Warner <warner@lothar.com>**20110629222555
1421 Ignore-this: e9e0b7e0163f1e95858aa646b9b17b8c
1422]
1423[prepare for viz: improve DownloadStatus events
1424Brian Warner <warner@lothar.com>**20110629222542
1425 Ignore-this: 16d0bde6b734bb501aa6f1174b2b57be
1426 
1427 consolidate IDownloadStatusHandlingConsumer stuff into DownloadNode
1428]
1429[docs: fix error in crypto specification that was noticed by Taylor R Campbell <campbell+tahoe@mumble.net>
1430zooko@zooko.com**20110629185711
1431 Ignore-this: b921ed60c1c8ba3c390737fbcbe47a67
1432]
1433[setup.py: don't make bin/tahoe.pyscript executable. fixes #1347
1434david-sarah@jacaranda.org**20110130235809
1435 Ignore-this: 3454c8b5d9c2c77ace03de3ef2d9398a
1436]
1437[Makefile: remove targets relating to 'setup.py check_auto_deps' which no longer exists. fixes #1345
1438david-sarah@jacaranda.org**20110626054124
1439 Ignore-this: abb864427a1b91bd10d5132b4589fd90
1440]
1441[Makefile: add 'make check' as an alias for 'make test'. Also remove an unnecessary dependency of 'test' on 'build' and 'src/allmydata/_version.py'. fixes #1344
1442david-sarah@jacaranda.org**20110623205528
1443 Ignore-this: c63e23146c39195de52fb17c7c49b2da
1444]
1445[Rename test_package_initialization.py to (much shorter) test_import.py .
1446Brian Warner <warner@lothar.com>**20110611190234
1447 Ignore-this: 3eb3dbac73600eeff5cfa6b65d65822
1448 
1449 The former name was making my 'ls' listings hard to read, by forcing them
1450 down to just two columns.
1451]
1452[tests: fix tests to accomodate [20110611153758-92b7f-0ba5e4726fb6318dac28fb762a6512a003f4c430]
1453zooko@zooko.com**20110611163741
1454 Ignore-this: 64073a5f39e7937e8e5e1314c1a302d1
1455 Apparently none of the two authors (stercor, terrell), three reviewers (warner, davidsarah, terrell), or one committer (me) actually ran the tests. This is presumably due to #20.
1456 fixes #1412
1457]
1458[wui: right-align the size column in the WUI
1459zooko@zooko.com**20110611153758
1460 Ignore-this: 492bdaf4373c96f59f90581c7daf7cd7
1461 Thanks to Ted "stercor" Rolle Jr. and Terrell Russell.
1462 fixes #1412
1463]
1464[docs: three minor fixes
1465zooko@zooko.com**20110610121656
1466 Ignore-this: fec96579eb95aceb2ad5fc01a814c8a2
1467 CREDITS for arc for stats tweak
1468 fix link to .zip file in quickstart.rst (thanks to ChosenOne for noticing)
1469 English usage tweak
1470]
1471[docs/running.rst: fix stray HTML (not .rst) link noticed by ChosenOne.
1472david-sarah@jacaranda.org**20110609223719
1473 Ignore-this: fc50ac9c94792dcac6f1067df8ac0d4a
1474]
1475[server.py:  get_latencies now reports percentiles _only_ if there are sufficient observations for the interpretation of the percentile to be unambiguous.
1476wilcoxjg@gmail.com**20110527120135
1477 Ignore-this: 2e7029764bffc60e26f471d7c2b6611e
1478 interfaces.py:  modified the return type of RIStatsProvider.get_stats to allow for None as a return value
1479 NEWS.rst, stats.py: documentation of change to get_latencies
1480 stats.rst: now documents percentile modification in get_latencies
1481 test_storage.py:  test_latencies now expects None in output categories that contain too few samples for the associated percentile to be unambiguously reported.
1482 fixes #1392
1483]
1484[docs: revert link in relnotes.txt from NEWS.rst to NEWS, since the former did not exist at revision 5000.
1485david-sarah@jacaranda.org**20110517011214
1486 Ignore-this: 6a5be6e70241e3ec0575641f64343df7
1487]
1488[docs: convert NEWS to NEWS.rst and change all references to it.
1489david-sarah@jacaranda.org**20110517010255
1490 Ignore-this: a820b93ea10577c77e9c8206dbfe770d
1491]
1492[docs: remove out-of-date docs/testgrid/introducer.furl and containing directory. fixes #1404
1493david-sarah@jacaranda.org**20110512140559
1494 Ignore-this: 784548fc5367fac5450df1c46890876d
1495]
1496[scripts/common.py: don't assume that the default alias is always 'tahoe' (it is, but the API of get_alias doesn't say so). refs #1342
1497david-sarah@jacaranda.org**20110130164923
1498 Ignore-this: a271e77ce81d84bb4c43645b891d92eb
1499]
1500[setup: don't catch all Exception from check_requirement(), but only PackagingError and ImportError
1501zooko@zooko.com**20110128142006
1502 Ignore-this: 57d4bc9298b711e4bc9dc832c75295de
1503 I noticed this because I had accidentally inserted a bug which caused AssertionError to be raised from check_requirement().
1504]
1505[M-x whitespace-cleanup
1506zooko@zooko.com**20110510193653
1507 Ignore-this: dea02f831298c0f65ad096960e7df5c7
1508]
1509[docs: fix typo in running.rst, thanks to arch_o_median
1510zooko@zooko.com**20110510193633
1511 Ignore-this: ca06de166a46abbc61140513918e79e8
1512]
1513[relnotes.txt: don't claim to work on Cygwin (which has been untested for some time). refs #1342
1514david-sarah@jacaranda.org**20110204204902
1515 Ignore-this: 85ef118a48453d93fa4cddc32d65b25b
1516]
1517[relnotes.txt: forseeable -> foreseeable. refs #1342
1518david-sarah@jacaranda.org**20110204204116
1519 Ignore-this: 746debc4d82f4031ebf75ab4031b3a9
1520]
1521[replace remaining .html docs with .rst docs
1522zooko@zooko.com**20110510191650
1523 Ignore-this: d557d960a986d4ac8216d1677d236399
1524 Remove install.html (long since deprecated).
1525 Also replace some obsolete references to install.html with references to quickstart.rst.
1526 Fix some broken internal references within docs/historical/historical_known_issues.txt.
1527 Thanks to Ravi Pinjala and Patrick McDonald.
1528 refs #1227
1529]
1530[docs: FTP-and-SFTP.rst: fix a minor error and update the information about which version of Twisted fixes #1297
1531zooko@zooko.com**20110428055232
1532 Ignore-this: b63cfb4ebdbe32fb3b5f885255db4d39
1533]
1534[munin tahoe_files plugin: fix incorrect file count
1535francois@ctrlaltdel.ch**20110428055312
1536 Ignore-this: 334ba49a0bbd93b4a7b06a25697aba34
1537 fixes #1391
1538]
1539[corrected "k must never be smaller than N" to "k must never be greater than N"
1540secorp@allmydata.org**20110425010308
1541 Ignore-this: 233129505d6c70860087f22541805eac
1542]
1543[Fix a test failure in test_package_initialization on Python 2.4.x due to exceptions being stringified differently than in later versions of Python. refs #1389
1544david-sarah@jacaranda.org**20110411190738
1545 Ignore-this: 7847d26bc117c328c679f08a7baee519
1546]
1547[tests: add test for including the ImportError message and traceback entry in the summary of errors from importing dependencies. refs #1389
1548david-sarah@jacaranda.org**20110410155844
1549 Ignore-this: fbecdbeb0d06a0f875fe8d4030aabafa
1550]
1551[allmydata/__init__.py: preserve the message and last traceback entry (file, line number, function, and source line) of ImportErrors in the package versions string. fixes #1389
1552david-sarah@jacaranda.org**20110410155705
1553 Ignore-this: 2f87b8b327906cf8bfca9440a0904900
1554]
1555[remove unused variable detected by pyflakes
1556zooko@zooko.com**20110407172231
1557 Ignore-this: 7344652d5e0720af822070d91f03daf9
1558]
1559[allmydata/__init__.py: Nicer reporting of unparseable version numbers in dependencies. fixes #1388
1560david-sarah@jacaranda.org**20110401202750
1561 Ignore-this: 9c6bd599259d2405e1caadbb3e0d8c7f
1562]
1563[update FTP-and-SFTP.rst: the necessary patch is included in Twisted-10.1
1564Brian Warner <warner@lothar.com>**20110325232511
1565 Ignore-this: d5307faa6900f143193bfbe14e0f01a
1566]
1567[control.py: remove all uses of s.get_serverid()
1568warner@lothar.com**20110227011203
1569 Ignore-this: f80a787953bd7fa3d40e828bde00e855
1570]
1571[web: remove some uses of s.get_serverid(), not all
1572warner@lothar.com**20110227011159
1573 Ignore-this: a9347d9cf6436537a47edc6efde9f8be
1574]
1575[immutable/downloader/fetcher.py: remove all get_serverid() calls
1576warner@lothar.com**20110227011156
1577 Ignore-this: fb5ef018ade1749348b546ec24f7f09a
1578]
1579[immutable/downloader/fetcher.py: fix diversity bug in server-response handling
1580warner@lothar.com**20110227011153
1581 Ignore-this: bcd62232c9159371ae8a16ff63d22c1b
1582 
1583 When blocks terminate (either COMPLETE or CORRUPT/DEAD/BADSEGNUM), the
1584 _shares_from_server dict was being popped incorrectly (using shnum as the
1585 index instead of serverid). I'm still thinking through the consequences of
1586 this bug. It was probably benign and really hard to detect. I think it would
1587 cause us to incorrectly believe that we're pulling too many shares from a
1588 server, and thus prefer a different server rather than asking for a second
1589 share from the first server. The diversity code is intended to spread out the
1590 number of shares simultaneously being requested from each server, but with
1591 this bug, it might be spreading out the total number of shares requested at
1592 all, not just simultaneously. (note that SegmentFetcher is scoped to a single
1593 segment, so the effect doesn't last very long).
1594]
1595[immutable/downloader/share.py: reduce get_serverid(), one left, update ext deps
1596warner@lothar.com**20110227011150
1597 Ignore-this: d8d56dd8e7b280792b40105e13664554
1598 
1599 test_download.py: create+check MyShare instances better, make sure they share
1600 Server objects, now that finder.py cares
1601]
1602[immutable/downloader/finder.py: reduce use of get_serverid(), one left
1603warner@lothar.com**20110227011146
1604 Ignore-this: 5785be173b491ae8a78faf5142892020
1605]
1606[immutable/offloaded.py: reduce use of get_serverid() a bit more
1607warner@lothar.com**20110227011142
1608 Ignore-this: b48acc1b2ae1b311da7f3ba4ffba38f
1609]
1610[immutable/upload.py: reduce use of get_serverid()
1611warner@lothar.com**20110227011138
1612 Ignore-this: ffdd7ff32bca890782119a6e9f1495f6
1613]
1614[immutable/checker.py: remove some uses of s.get_serverid(), not all
1615warner@lothar.com**20110227011134
1616 Ignore-this: e480a37efa9e94e8016d826c492f626e
1617]
1618[add remaining get_* methods to storage_client.Server, NoNetworkServer, and
1619warner@lothar.com**20110227011132
1620 Ignore-this: 6078279ddf42b179996a4b53bee8c421
1621 MockIServer stubs
1622]
1623[upload.py: rearrange _make_trackers a bit, no behavior changes
1624warner@lothar.com**20110227011128
1625 Ignore-this: 296d4819e2af452b107177aef6ebb40f
1626]
1627[happinessutil.py: finally rename merge_peers to merge_servers
1628warner@lothar.com**20110227011124
1629 Ignore-this: c8cd381fea1dd888899cb71e4f86de6e
1630]
1631[test_upload.py: factor out FakeServerTracker
1632warner@lothar.com**20110227011120
1633 Ignore-this: 6c182cba90e908221099472cc159325b
1634]
1635[test_upload.py: server-vs-tracker cleanup
1636warner@lothar.com**20110227011115
1637 Ignore-this: 2915133be1a3ba456e8603885437e03
1638]
1639[happinessutil.py: server-vs-tracker cleanup
1640warner@lothar.com**20110227011111
1641 Ignore-this: b856c84033562d7d718cae7cb01085a9
1642]
1643[upload.py: more tracker-vs-server cleanup
1644warner@lothar.com**20110227011107
1645 Ignore-this: bb75ed2afef55e47c085b35def2de315
1646]
1647[upload.py: fix var names to avoid confusion between 'trackers' and 'servers'
1648warner@lothar.com**20110227011103
1649 Ignore-this: 5d5e3415b7d2732d92f42413c25d205d
1650]
1651[refactor: s/peer/server/ in immutable/upload, happinessutil.py, test_upload
1652warner@lothar.com**20110227011100
1653 Ignore-this: 7ea858755cbe5896ac212a925840fe68
1654 
1655 No behavioral changes, just updating variable/method names and log messages.
1656 The effects outside these three files should be minimal: some exception
1657 messages changed (to say "server" instead of "peer"), and some internal class
1658 names were changed. A few things still use "peer" to minimize external
1659 changes, like UploadResults.timings["peer_selection"] and
1660 happinessutil.merge_peers, which can be changed later.
1661]
1662[storage_client.py: clean up test_add_server/test_add_descriptor, remove .test_servers
1663warner@lothar.com**20110227011056
1664 Ignore-this: efad933e78179d3d5fdcd6d1ef2b19cc
1665]
1666[test_client.py, upload.py:: remove KiB/MiB/etc constants, and other dead code
1667warner@lothar.com**20110227011051
1668 Ignore-this: dc83c5794c2afc4f81e592f689c0dc2d
1669]
1670[test: increase timeout on a network test because Francois's ARM machine hit that timeout
1671zooko@zooko.com**20110317165909
1672 Ignore-this: 380c345cdcbd196268ca5b65664ac85b
1673 I'm skeptical that the test was proceeding correctly but ran out of time. It seems more likely that it had gotten hung. But if we raise the timeout to an even more extravagant number then we can be even more certain that the test was never going to finish.
1674]
1675[docs/configuration.rst: add a "Frontend Configuration" section
1676Brian Warner <warner@lothar.com>**20110222014323
1677 Ignore-this: 657018aa501fe4f0efef9851628444ca
1678 
1679 this points to docs/frontends/*.rst, which were previously underlinked
1680]
1681[web/filenode.py: avoid calling req.finish() on closed HTTP connections. Closes #1366
1682"Brian Warner <warner@lothar.com>"**20110221061544
1683 Ignore-this: 799d4de19933f2309b3c0c19a63bb888
1684]
1685[Add unit tests for cross_check_pkg_resources_versus_import, and a regression test for ref #1355. This requires a little refactoring to make it testable.
1686david-sarah@jacaranda.org**20110221015817
1687 Ignore-this: 51d181698f8c20d3aca58b057e9c475a
1688]
1689[allmydata/__init__.py: .name was used in place of the correct .__name__ when printing an exception. Also, robustify string formatting by using %r instead of %s in some places. fixes #1355.
1690david-sarah@jacaranda.org**20110221020125
1691 Ignore-this: b0744ed58f161bf188e037bad077fc48
1692]
1693[Refactor StorageFarmBroker handling of servers
1694Brian Warner <warner@lothar.com>**20110221015804
1695 Ignore-this: 842144ed92f5717699b8f580eab32a51
1696 
1697 Pass around IServer instance instead of (peerid, rref) tuple. Replace
1698 "descriptor" with "server". Other replacements:
1699 
1700  get_all_servers -> get_connected_servers/get_known_servers
1701  get_servers_for_index -> get_servers_for_psi (now returns IServers)
1702 
1703 This change still needs to be pushed further down: lots of code is now
1704 getting the IServer and then distributing (peerid, rref) internally.
1705 Instead, it ought to distribute the IServer internally and delay
1706 extracting a serverid or rref until the last moment.
1707 
1708 no_network.py was updated to retain parallelism.
1709]
1710[TAG allmydata-tahoe-1.8.2
1711warner@lothar.com**20110131020101]
1712Patch bundle hash:
17132ef82404f0421dae2c0edf6d853eebac47519825