Ticket #778: tests.2.txt

File tests.2.txt, 33.3 KB (added by kevan, at 2009-10-18T02:23:15Z)
Line 
1Sun Oct 11 20:40:05 PDT 2009  Kevan Carstensen <kevan@isnotajoke.com>
2  * Alter various unit tests to work with the new happy behavior
3
4Sat Oct 17 18:30:13 PDT 2009  Kevan Carstensen <kevan@isnotajoke.com>
5  * Alter NoNetworkGrid to allow the creation of readonly servers for testing purposes.
6
7Sat Oct 17 19:02:00 PDT 2009  "Kevan Carstensen" <kevan@isnotajoke.com>
8  * Refactor some behavior into a mixin, and add tests for the behavior described in #778
9
10New patches:
11
12[Alter various unit tests to work with the new happy behavior
13Kevan Carstensen <kevan@isnotajoke.com>**20091012034005
14 Ignore-this: 8b6823526e72390cf69e0f1cf1f97de4
15] {
16hunk ./src/allmydata/test/common.py 918
17             # We need multiple segments to test crypttext hash trees that are
18             # non-trivial (i.e. they have more than just one hash in them).
19             cl0.DEFAULT_ENCODING_PARAMETERS['max_segment_size'] = 12
20+            # Tests that need to test servers of happiness using this should
21+            # set their own value for happy -- the default (7) breaks stuff.
22+            cl0.DEFAULT_ENCODING_PARAMETERS['happy'] = 1
23             d2 = cl0.upload(immutable.upload.Data(TEST_DATA, convergence=""))
24             def _after_upload(u):
25                 filecap = u.uri
26hunk ./src/allmydata/test/test_system.py 111
27         d = self.set_up_nodes()
28         def _check_connections(res):
29             for c in self.clients:
30+                c.DEFAULT_ENCODING_PARAMETERS['happy'] = 5
31                 all_peerids = c.get_storage_broker().get_all_serverids()
32                 self.failUnlessEqual(len(all_peerids), self.numclients)
33                 sb = c.storage_broker
34hunk ./src/allmydata/test/test_system.py 250
35                                                       add_to_sparent=True))
36         def _added(extra_node):
37             self.extra_node = extra_node
38+            self.extra_node.DEFAULT_ENCODING_PARAMETERS['happy'] = 5
39         d.addCallback(_added)
40 
41         HELPER_DATA = "Data that needs help to upload" * 1000
42hunk ./src/allmydata/test/test_system.py 749
43         self.basedir = "system/SystemTest/test_vdrive"
44         self.data = LARGE_DATA
45         d = self.set_up_nodes(use_stats_gatherer=True)
46+        def _new_happy_semantics(ign):
47+            for c in self.clients:
48+                c.DEFAULT_ENCODING_PARAMETERS['happy'] = 1
49+        d.addCallback(_new_happy_semantics)
50         d.addCallback(self._test_introweb)
51         d.addCallback(self.log, "starting publish")
52         d.addCallback(self._do_publish1)
53hunk ./src/allmydata/test/test_system.py 1167
54         d.addCallback(self.failUnlessEqual, "new.txt contents")
55         # and again with something large enough to use multiple segments,
56         # and hopefully trigger pauseProducing too
57+        def _new_happy_semantics(ign):
58+            for c in self.clients:
59+                # these get reset somewhere? Whatever.
60+                c.DEFAULT_ENCODING_PARAMETERS['happy'] = 1
61+        d.addCallback(_new_happy_semantics)
62         d.addCallback(lambda res: self.PUT(public + "/subdir3/big.txt",
63                                            "big" * 500000)) # 1.5MB
64         d.addCallback(lambda res: self.GET(public + "/subdir3/big.txt"))
65hunk ./src/allmydata/test/test_upload.py 169
66 
67 class FakeClient:
68     DEFAULT_ENCODING_PARAMETERS = {"k":25,
69-                                   "happy": 75,
70+                                   "happy": 25,
71                                    "n": 100,
72                                    "max_segment_size": 1*MiB,
73                                    }
74hunk ./src/allmydata/test/test_upload.py 315
75         data = self.get_data(SIZE_LARGE)
76         segsize = int(SIZE_LARGE / 2.5)
77         # we want 3 segments, since that's not a power of two
78-        self.set_encoding_parameters(25, 75, 100, segsize)
79+        self.set_encoding_parameters(25, 25, 100, segsize)
80         d = upload_data(self.u, data)
81         d.addCallback(extract_uri)
82         d.addCallback(self._check_large, SIZE_LARGE)
83hunk ./src/allmydata/test/test_upload.py 394
84     def test_first_error(self):
85         mode = dict([(0,"good")] + [(i,"first-fail") for i in range(1,10)])
86         self.make_node(mode)
87+        self.set_encoding_parameters(k=25, happy=1, n=50)
88         d = upload_data(self.u, DATA)
89         d.addCallback(extract_uri)
90         d.addCallback(self._check_large, SIZE_LARGE)
91hunk ./src/allmydata/test/test_upload.py 512
92 
93         self.make_client()
94         data = self.get_data(SIZE_LARGE)
95-        self.set_encoding_parameters(50, 75, 100)
96+        # if there are 50 peers, then happy needs to be <= 50
97+        self.set_encoding_parameters(50, 50, 100)
98         d = upload_data(self.u, data)
99         d.addCallback(extract_uri)
100         d.addCallback(self._check_large, SIZE_LARGE)
101hunk ./src/allmydata/test/test_upload.py 559
102 
103         self.make_client()
104         data = self.get_data(SIZE_LARGE)
105-        self.set_encoding_parameters(100, 150, 200)
106+        # if there are 50 peers, then happy should be no more than 50 if
107+        # we want this to work.
108+        self.set_encoding_parameters(100, 50, 200)
109         d = upload_data(self.u, data)
110         d.addCallback(extract_uri)
111         d.addCallback(self._check_large, SIZE_LARGE)
112hunk ./src/allmydata/test/test_upload.py 579
113 
114         self.make_client(3)
115         data = self.get_data(SIZE_LARGE)
116-        self.set_encoding_parameters(3, 5, 10)
117+        self.set_encoding_parameters(3, 3, 10)
118         d = upload_data(self.u, data)
119         d.addCallback(extract_uri)
120         d.addCallback(self._check_large, SIZE_LARGE)
121hunk ./src/allmydata/test/test_web.py 3458
122         self.basedir = "web/Grid/exceptions"
123         self.set_up_grid(num_clients=1, num_servers=2)
124         c0 = self.g.clients[0]
125+        c0.DEFAULT_ENCODING_PARAMETERS['happy'] = 2
126         self.fileurls = {}
127         DATA = "data" * 100
128         d = c0.create_dirnode()
129}
130[Alter NoNetworkGrid to allow the creation of readonly servers for testing purposes.
131Kevan Carstensen <kevan@isnotajoke.com>**20091018013013
132 Ignore-this: e12cd7c4ddeb65305c5a7e08df57c754
133] {
134hunk ./src/allmydata/test/no_network.py 203
135             c.setServiceParent(self)
136             self.clients.append(c)
137 
138-    def make_server(self, i):
139+    def make_server(self, i, readonly=False):
140         serverid = hashutil.tagged_hash("serverid", str(i))[:20]
141         serverdir = os.path.join(self.basedir, "servers",
142                                  idlib.shortnodeid_b2a(serverid))
143hunk ./src/allmydata/test/no_network.py 208
144         fileutil.make_dirs(serverdir)
145-        ss = StorageServer(serverdir, serverid, stats_provider=SimpleStats())
146+        ss = StorageServer(serverdir, serverid, stats_provider=SimpleStats(),
147+                           readonly_storage=readonly)
148         return ss
149 
150     def add_server(self, i, ss):
151}
152[Refactor some behavior into a mixin, and add tests for the behavior described in #778
153"Kevan Carstensen" <kevan@isnotajoke.com>**20091018020200
154 Ignore-this: b197344cc1d36ab58ce49fd37f69594f
155] {
156hunk ./src/allmydata/test/test_upload.py 2
157 
158-import os
159+import os, shutil
160 from cStringIO import StringIO
161 from twisted.trial import unittest
162 from twisted.python.failure import Failure
163hunk ./src/allmydata/test/test_upload.py 20
164 from no_network import GridTestMixin
165 from common_util import ShouldFailMixin
166 from allmydata.storage_client import StorageFarmBroker
167+from allmydata.storage.server import storage_index_to_dir
168 
169 MiB = 1024*1024
170 
171hunk ./src/allmydata/test/test_upload.py 91
172 class ServerError(Exception):
173     pass
174 
175+class SetDEPMixin:
176+    def set_encoding_parameters(self, k, happy, n, max_segsize=1*MiB):
177+        p = {"k": k,
178+             "happy": happy,
179+             "n": n,
180+             "max_segment_size": max_segsize,
181+             }
182+        self.node.DEFAULT_ENCODING_PARAMETERS = p
183+
184 class FakeStorageServer:
185     def __init__(self, mode):
186         self.mode = mode
187hunk ./src/allmydata/test/test_upload.py 247
188     u = upload.FileHandle(fh, convergence=None)
189     return uploader.upload(u)
190 
191-class GoodServer(unittest.TestCase, ShouldFailMixin):
192+class GoodServer(unittest.TestCase, ShouldFailMixin, SetDEPMixin):
193     def setUp(self):
194         self.node = FakeClient(mode="good")
195         self.u = upload.Uploader()
196hunk ./src/allmydata/test/test_upload.py 254
197         self.u.running = True
198         self.u.parent = self.node
199 
200-    def set_encoding_parameters(self, k, happy, n, max_segsize=1*MiB):
201-        p = {"k": k,
202-             "happy": happy,
203-             "n": n,
204-             "max_segment_size": max_segsize,
205-             }
206-        self.node.DEFAULT_ENCODING_PARAMETERS = p
207-
208     def _check_small(self, newuri, size):
209         u = IFileURI(newuri)
210         self.failUnless(isinstance(u, uri.LiteralFileURI))
211hunk ./src/allmydata/test/test_upload.py 377
212         d.addCallback(self._check_large, SIZE_LARGE)
213         return d
214 
215-class ServerErrors(unittest.TestCase, ShouldFailMixin):
216+class ServerErrors(unittest.TestCase, ShouldFailMixin, SetDEPMixin):
217     def make_node(self, mode, num_servers=10):
218         self.node = FakeClient(mode, num_servers)
219         self.u = upload.Uploader()
220hunk ./src/allmydata/test/test_upload.py 681
221         d.addCallback(_done)
222         return d
223 
224-class EncodingParameters(GridTestMixin, unittest.TestCase):
225+class EncodingParameters(GridTestMixin, unittest.TestCase, SetDEPMixin,
226+    ShouldFailMixin):
227     def test_configure_parameters(self):
228         self.basedir = self.mktemp()
229         hooks = {0: self._set_up_nodes_extra_config}
230hunk ./src/allmydata/test/test_upload.py 702
231         d.addCallback(_check)
232         return d
233 
234+    def _setUp(self, ns):
235+        # Used by test_happy_semantics and test_prexisting_share_behavior
236+        # to set up the grid.
237+        self.node = FakeClient(mode="good", num_servers=ns)
238+        self.u = upload.Uploader()
239+        self.u.running = True
240+        self.u.parent = self.node
241+
242+    def test_happy_semantics(self):
243+        self._setUp(2)
244+        DATA = upload.Data("kittens" * 10000, convergence="")
245+        # These parameters are unsatisfiable with the client that we've made
246+        # -- we'll use them to test that the semnatics work correctly.
247+        self.set_encoding_parameters(k=3, happy=5, n=10)
248+        d = self.shouldFail(NotEnoughSharesError, "test_happy_semantics",
249+                            "shares could only be placed on 2 servers "
250+                            "(5 were requested)",
251+                            self.u.upload, DATA)
252+        # Let's reset the client to have 10 servers
253+        d.addCallback(lambda ign:
254+            self._setUp(10))
255+        # These parameters are satisfiable with the client we've made.
256+        d.addCallback(lambda ign:
257+            self.set_encoding_parameters(k=3, happy=5, n=10))
258+        # this should work
259+        d.addCallback(lambda ign:
260+            self.u.upload(DATA))
261+        # Let's reset the client to have 7 servers
262+        # (this is less than n, but more than h)
263+        d.addCallback(lambda ign:
264+            self._setUp(7))
265+        # These encoding parameters should still be satisfiable with our
266+        # client setup
267+        d.addCallback(lambda ign:
268+            self.set_encoding_parameters(k=3, happy=5, n=10))
269+        # This, then, should work.
270+        d.addCallback(lambda ign:
271+            self.u.upload(DATA))
272+        return d
273+
274+    def test_problem_layouts(self):
275+        # Set up our test grid.
276+        self.basedir = "uploader/EncodingParameters/test_layouts"
277+        def _setup_and_upload():
278+            self.set_up_grid(num_clients=1, num_servers=1)
279+            client = self.g.clients[0]
280+            client.DEFAULT_ENCODING_PARAMETERS['happy'] = 1
281+            data = upload.Data("data" * 10000, convergence="")
282+            d = client.upload(data)
283+            return d
284+        # This scenario is at
285+        # http://allmydata.org/trac/tahoe/ticket/778#comment:52
286+        #
287+        # The scenario in comment:52 proposes that we have a layout
288+        # like:
289+        # server 1: share 1
290+        # server 2: share 1
291+        # server 3: share 1
292+        # server 4: shares 2 - 10
293+        # To get access to the shares, we will first upload to one
294+        # server, which will then have shares 1 - 10. We'll then
295+        # add three new servers, configure them to not accept any new
296+        # shares, then write share 1 directly into the serverdir of each.
297+        # Then each of servers 1 - 3 will report that they have share 1,
298+        # and will not accept any new share, while server 2 will report that
299+        # it has shares 2 - 10 and will accept new shares.
300+        # We'll then set 'happy' = 4, and see that an upload fails
301+        # (as it should)
302+        d = _setup_and_upload()
303+        def _store_uri(ur):
304+            self.uri = ur.uri
305+        d.addCallback(_store_uri)
306+        # Get a copy of the shares stored on server 1, so we can play
307+        # with them.
308+        d.addCallback(lambda ign:
309+            self.find_shares(self.uri))
310+        def _store_shares(shares):
311+            self.shares = shares
312+        d.addCallback(_store_shares)
313+        def _add_server_with_share(server_number, share_number,
314+                                   readonly=False):
315+            # Avoid overwriting the first server.
316+            ss = self.g.make_server(server_number, readonly)
317+            self.g.add_server(server_number, ss)
318+            # Copy share i from the directory associated with the first
319+            # storage server to the directory associated with this one.
320+            old_share_location = self.shares[share_number][2]
321+            new_share_location = os.path.join(ss.storedir, "shares")
322+            si = uri.from_string(self.uri).get_storage_index()
323+            new_share_location = os.path.join(new_share_location,
324+                                              storage_index_to_dir(si))
325+            if not os.path.exists(new_share_location):
326+                os.makedirs(new_share_location)
327+            new_share_location = os.path.join(new_share_location,
328+                                              str(share_number))
329+            shutil.copy(old_share_location, new_share_location)
330+            shares = self.find_shares(self.uri)
331+            # Make sure that the storage server has the share.
332+            self.failUnless((share_number, ss.my_nodeid, new_share_location)
333+                            in shares)
334+        # Add servers 1, 2, and 3, each storing the first share.
335+        d.addCallback(lambda ign:
336+            _add_server_with_share(1, 0, True))
337+        d.addCallback(lambda ign:
338+            _add_server_with_share(2, 0, True))
339+        d.addCallback(lambda ign:
340+            _add_server_with_share(3, 0, True))
341+        # Remove the first share from server 0.
342+        def _remove_share_0():
343+            share_location = self.shares[0][2]
344+            os.remove(share_location)
345+        d.addCallback(lambda ign:
346+            _remove_share_0())
347+        # Set happy = 4 in the client.
348+        client = self.g.clients[0]
349+        client.DEFAULT_ENCODING_PARAMETERS['happy'] = 4
350+        # ...and make a new data, since the old one caches the old
351+        # 'happy' value.
352+        data = upload.Data("data" * 10000, convergence="")
353+        # Uploading data should fail
354+        d.addCallback(lambda ign:
355+            self.shouldFail(NotEnoughSharesError, "test_happy_semantics",
356+                            "shares could only be placed on 1 servers "
357+                            "(4 were requested)",
358+                            client.upload, data))
359+
360+
361+        # This scenario is at
362+        # http://allmydata.org/trac/tahoe/ticket/778#comment:53
363+        #
364+        # Set up the grid to have one server
365+        d.addCallback(lambda ign:
366+            _setup_and_upload())
367+        # We want to have a layout like this:
368+        # server 1: share 1
369+        # server 2: share 2
370+        # server 3: share 3
371+        # server 4: shares 1 - 10
372+        # (this is an expansion of Zooko's example because it is easier
373+        #  to code, but it will fail in the same way)
374+        # To start, we'll create a server with shares 1-10 of the data
375+        # we're about to upload.
376+        d.addCallback(_store_uri)
377+        d.addCallback(lambda ign:
378+            self.find_shares(self.uri))
379+        def _store_shares(shares):
380+            self.shares = shares
381+        d.addCallback(_store_shares)
382+        # Next, we'll add three new servers to our NoNetworkGrid. We'll add
383+        # one share from our initial upload to each of these.
384+        d.addCallback(lambda ign:
385+            _add_server_with_share(server_number=1, share_number=0))
386+        d.addCallback(lambda ign:
387+            _add_server_with_share(server_number=2, share_number=1))
388+        d.addCallback(lambda ign:
389+            _add_server_with_share(server_number=3, share_number=2))
390+        # So, we now have the following layout:
391+        # server 0: shares 1 - 10
392+        # server 1: share 0
393+        # server 2: share 1
394+        # server 3: share 2
395+        # We want to change the 'happy' parameter in the client to 4.
396+        # We then want to feed the upload process a list of peers that
397+        # server 0 is at the front of, so we trigger Zooko's scenario.
398+        # Ideally, a reupload of our original data should work.
399+        def _reset_encoding_parameters(ign):
400+            client = self.g.clients[0]
401+            client.DEFAULT_ENCODING_PARAMETERS['happy'] = 4
402+        d.addCallback(_reset_encoding_parameters)
403+        # We need this to get around the fact that the old Data
404+        # instance already has a happy parameter set.
405+        data = upload.Data("data" * 10000, convergence="")
406+        d.addCallback(lambda ign:
407+            client.upload(data))
408+        return d
409+
410+
411     def _set_up_nodes_extra_config(self, clientdir):
412         cfgfn = os.path.join(clientdir, "tahoe.cfg")
413         oldcfg = open(cfgfn, "r").read()
414}
415
416Context:
417
418[test_dirnode.py: add tests of initial_children= args to client.create_dirnode
419Brian Warner <warner@lothar.com>**20091017194159
420 Ignore-this: 2e2da28323a4d5d815466387914abc1b
421 and nodemaker.create_new_mutable_directory
422]
423[update many dirnode interfaces to accept dict-of-nodes instead of dict-of-caps
424Brian Warner <warner@lothar.com>**20091017192829
425 Ignore-this: b35472285143862a856bf4b361d692f0
426 
427 interfaces.py: define INodeMaker, document argument values, change
428                create_new_mutable_directory() to take dict-of-nodes. Change
429                dirnode.set_nodes() and dirnode.create_subdirectory() too.
430 nodemaker.py: use INodeMaker, update create_new_mutable_directory()
431 client.py: have create_dirnode() delegate initial_children= to nodemaker
432 dirnode.py (Adder): take dict-of-nodes instead of list-of-nodes, which
433                     updates set_nodes() and create_subdirectory()
434 web/common.py (convert_initial_children_json): create dict-of-nodes
435 web/directory.py: same
436 web/unlinked.py: same
437 test_dirnode.py: update tests to match
438]
439[dirnode.py: move pack_children() out to a function, for eventual use by others
440Brian Warner <warner@lothar.com>**20091017180707
441 Ignore-this: 6a823fb61f2c180fd38d6742d3196a7a
442]
443[move dirnode.CachingDict to dictutil.AuxValueDict, generalize method names,
444Brian Warner <warner@lothar.com>**20091017180005
445 Ignore-this: b086933cf429df0fcea16a308d2640dd
446 improve tests. Let dirnode _pack_children accept either dict or AuxValueDict.
447]
448[test/common.py: update FakeMutableFileNode to new contents= callable scheme
449Brian Warner <warner@lothar.com>**20091013052154
450 Ignore-this: 62f00a76454a2190d1c8641c5993632f
451]
452[The initial_children= argument to nodemaker.create_new_mutable_directory is
453Brian Warner <warner@lothar.com>**20091013031922
454 Ignore-this: 72e45317c21f9eb9ec3bd79bd4311f48
455 now enabled.
456]
457[client.create_mutable_file(contents=) now accepts a callable, which is
458Brian Warner <warner@lothar.com>**20091013031232
459 Ignore-this: 3c89d2f50c1e652b83f20bd3f4f27c4b
460 invoked with the new MutableFileNode and is supposed to return the initial
461 contents. This can be used by e.g. a new dirnode which needs the filenode's
462 writekey to encrypt its initial children.
463 
464 create_mutable_file() still accepts a bytestring too, or None for an empty
465 file.
466]
467[webapi: t=mkdir now accepts initial children, using the same JSON that t=json
468Brian Warner <warner@lothar.com>**20091013023444
469 Ignore-this: 574a46ed46af4251abf8c9580fd31ef7
470 emits.
471 
472 client.create_dirnode(initial_children=) now works.
473]
474[replace dirnode.create_empty_directory() with create_subdirectory(), which
475Brian Warner <warner@lothar.com>**20091013021520
476 Ignore-this: 6b57cb51bcfcc6058d0df569fdc8a9cf
477 takes an initial_children= argument
478]
479[dirnode.set_children: change return value: fire with self instead of None
480Brian Warner <warner@lothar.com>**20091013015026
481 Ignore-this: f1d14e67e084e4b2a4e25fa849b0e753
482]
483[dirnode.set_nodes: change return value: fire with self instead of None
484Brian Warner <warner@lothar.com>**20091013014546
485 Ignore-this: b75b3829fb53f7399693f1c1a39aacae
486]
487[dirnode.set_children: take a dict, not a list
488Brian Warner <warner@lothar.com>**20091013002440
489 Ignore-this: 540ce72ce2727ee053afaae1ff124e21
490]
491[dirnode.set_uri/set_children: change signature to take writecap+readcap
492Brian Warner <warner@lothar.com>**20091012235126
493 Ignore-this: 5df617b2d379a51c79148a857e6026b1
494 instead of a single cap. The webapi t=set_children call benefits too.
495]
496[replace Client.create_empty_dirnode() with create_dirnode(), in anticipation
497Brian Warner <warner@lothar.com>**20091012224506
498 Ignore-this: cbdaa4266ecb3c6496ffceab4f95709d
499 of adding initial_children= argument.
500 
501 Includes stubbed-out initial_children= support.
502]
503[test_web.py: use a less-fake client, making test harness smaller
504Brian Warner <warner@lothar.com>**20091012222808
505 Ignore-this: 29e95147f8c94282885c65b411d100bb
506]
507[webapi.txt: document t=set_children, other small edits
508Brian Warner <warner@lothar.com>**20091009200446
509 Ignore-this: 4d7e76b04a7b8eaa0a981879f778ea5d
510]
511[Verifier: check the full cryptext-hash tree on each share. Removed .todos
512Brian Warner <warner@lothar.com>**20091005221849
513 Ignore-this: 6fb039c5584812017d91725e687323a5
514 from the last few test_repairer tests that were waiting on this.
515]
516[Verifier: check the full block-hash-tree on each share
517Brian Warner <warner@lothar.com>**20091005214844
518 Ignore-this: 3f7ccf6d253f32340f1bf1da27803eee
519 
520 Removed the .todo from two test_repairer tests that check this. The only
521 remaining .todos are on the three crypttext-hash-tree tests.
522]
523[Verifier: check the full share-hash chain on each share
524Brian Warner <warner@lothar.com>**20091005213443
525 Ignore-this: 3d30111904158bec06a4eac22fd39d17
526 
527 Removed the .todo from two test_repairer tests that check this.
528]
529[test_repairer: rename Verifier test cases to be more precise and less verbose
530Brian Warner <warner@lothar.com>**20091005201115
531 Ignore-this: 64be7094e33338c7c2aea9387e138771
532]
533[immutable/checker.py: rearrange code a little bit, make it easier to follow
534Brian Warner <warner@lothar.com>**20091005200252
535 Ignore-this: 91cc303fab66faf717433a709f785fb5
536]
537[test/common.py: wrap docstrings to 80cols so I can read them more easily
538Brian Warner <warner@lothar.com>**20091005200143
539 Ignore-this: b180a3a0235cbe309c87bd5e873cbbb3
540]
541[immutable/download.py: wrap to 80cols, no functional changes
542Brian Warner <warner@lothar.com>**20091005192542
543 Ignore-this: 6b05fe3dc6d78832323e708b9e6a1fe
544]
545[CHK-hashes.svg: cross out plaintext hashes, since we don't include
546Brian Warner <warner@lothar.com>**20091005010803
547 Ignore-this: bea2e953b65ec7359363aa20de8cb603
548 them (until we finish #453)
549]
550[docs: a few licensing clarifications requested by Ubuntu
551zooko@zooko.com**20090927033226
552 Ignore-this: 749fc8c9aeb6dc643669854a3e81baa7
553]
554[setup: remove binary WinFUSE modules
555zooko@zooko.com**20090924211436
556 Ignore-this: 8aefc571d2ae22b9405fc650f2c2062
557 I would prefer to have just source code, or indications of what 3rd-party packages are required, under revision control, and have the build process generate o
558 r acquire the binaries as needed.  Also, having these in our release tarballs is interfering with getting Tahoe-LAFS uploaded into Ubuntu Karmic.  (Technicall
559 y, they would accept binary modules as long as they came with the accompanying source so that they could satisfy their obligations under GPL2+ and TGPPL1+, bu
560 t it is easier for now to remove the binaries from the source tree.)
561 In this case, the binaries are from the tahoe-w32-client project: http://allmydata.org/trac/tahoe-w32-client , from which you can also get the source.
562]
563[setup: remove binary _fusemodule.so 's
564zooko@zooko.com**20090924211130
565 Ignore-this: 74487bbe27d280762ac5dd5f51e24186
566 I would prefer to have just source code, or indications of what 3rd-party packages are required, under revision control, and have the build process generate or acquire the binaries as needed.  Also, having these in our release tarballs is interfering with getting Tahoe-LAFS uploaded into Ubuntu Karmic.  (Technically, they would accept binary modules as long as they came with the accompanying source so that they could satisfy their obligations under GPL2+ and TGPPL1+, but it is easier for now to remove the binaries from the source tree.)
567 In this case, these modules come from the MacFUSE project: http://code.google.com/p/macfuse/
568]
569[doc: add a copy of LGPL2 for documentation purposes for ubuntu
570zooko@zooko.com**20090924054218
571 Ignore-this: 6a073b48678a7c84dc4fbcef9292ab5b
572]
573[setup: remove a convenience copy of figleaf, to ease inclusion into Ubuntu Karmic Koala
574zooko@zooko.com**20090924053215
575 Ignore-this: a0b0c990d6e2ee65c53a24391365ac8d
576 We need to carefully document the licence of figleaf in order to get Tahoe-LAFS into Ubuntu Karmic Koala.  However, figleaf isn't really a part of Tahoe-LAFS per se -- this is just a "convenience copy" of a development tool.  The quickest way to make Tahoe-LAFS acceptable for Karmic then, is to remove figleaf from the Tahoe-LAFS tarball itself.  People who want to run figleaf on Tahoe-LAFS (as everyone should want) can install figleaf themselves.  I haven't tested this -- there may be incompatibilities between upstream figleaf and the copy that we had here...
577]
578[setup: shebang for misc/build-deb.py to fail quickly
579zooko@zooko.com**20090819135626
580 Ignore-this: 5a1b893234d2d0bb7b7346e84b0a6b4d
581 Without this patch, when I ran "chmod +x ./misc/build-deb.py && ./misc/build-deb.py" then it hung indefinitely.  (I wonder what it was doing.)
582]
583[docs: Shawn Willden grants permission for his contributions under GPL2+|TGPPL1+
584zooko@zooko.com**20090921164651
585 Ignore-this: ef1912010d07ff2ffd9678e7abfd0d57
586]
587[docs: Csaba Henk granted permission to license fuse.py under the same terms as Tahoe-LAFS itself
588zooko@zooko.com**20090921154659
589 Ignore-this: c61ba48dcb7206a89a57ca18a0450c53
590]
591[setup: mark setup.py as having utf-8 encoding in it
592zooko@zooko.com**20090920180343
593 Ignore-this: 9d3850733700a44ba7291e9c5e36bb91
594]
595[doc: licensing cleanups
596zooko@zooko.com**20090920171631
597 Ignore-this: 7654f2854bf3c13e6f4d4597633a6630
598 Use nice utf-8 © instead of "(c)". Remove licensing statements on utility modules that have been assigned to allmydata.com by their original authors. (Nattraverso was not assigned to allmydata.com -- it was LGPL'ed -- but I checked and src/allmydata/util/iputil.py was completely rewritten and doesn't contain any line of code from nattraverso.)  Add notes to misc/debian/copyright about licensing on files that aren't just allmydata.com-licensed.
599]
600[build-deb.py: run darcsver early, otherwise we get the wrong version later on
601Brian Warner <warner@lothar.com>**20090918033620
602 Ignore-this: 6635c5b85e84f8aed0d8390490c5392a
603]
604[new approach for debian packaging, sharing pieces across distributions. Still experimental, still only works for sid.
605warner@lothar.com**20090818190527
606 Ignore-this: a75eb63db9106b3269badbfcdd7f5ce1
607]
608[new experimental deb-packaging rules. Only works for sid so far.
609Brian Warner <warner@lothar.com>**20090818014052
610 Ignore-this: 3a26ad188668098f8f3cc10a7c0c2f27
611]
612[setup.py: read _version.py and pass to setup(version=), so more commands work
613Brian Warner <warner@lothar.com>**20090818010057
614 Ignore-this: b290eb50216938e19f72db211f82147e
615 like "setup.py --version" and "setup.py --fullname"
616]
617[test/check_speed.py: fix shbang line
618Brian Warner <warner@lothar.com>**20090818005948
619 Ignore-this: 7f3a37caf349c4c4de704d0feb561f8d
620]
621[setup: remove bundled version of darcsver-1.2.1
622zooko@zooko.com**20090816233432
623 Ignore-this: 5357f26d2803db2d39159125dddb963a
624 That version of darcsver emits a scary error message when the darcs executable or the _darcs subdirectory is not found.
625 This error is hidden (unless the --loud option is passed) in darcsver >= 1.3.1.
626 Fixes #788.
627]
628[de-Service-ify Helper, pass in storage_broker and secret_holder directly.
629Brian Warner <warner@lothar.com>**20090815201737
630 Ignore-this: 86b8ac0f90f77a1036cd604dd1304d8b
631 This makes it more obvious that the Helper currently generates leases with
632 the Helper's own secrets, rather than getting values from the client, which
633 is arguably a bug that will likely be resolved with the Accounting project.
634]
635[immutable.Downloader: pass StorageBroker to constructor, stop being a Service
636Brian Warner <warner@lothar.com>**20090815192543
637 Ignore-this: af5ab12dbf75377640a670c689838479
638 child of the client, access with client.downloader instead of
639 client.getServiceNamed("downloader"). The single "Downloader" instance is
640 scheduled for demolition anyways, to be replaced by individual
641 filenode.download calls.
642]
643[tests: double the timeout on test_runner.RunNode.test_introducer since feisty hit a timeout
644zooko@zooko.com**20090815160512
645 Ignore-this: ca7358bce4bdabe8eea75dedc39c0e67
646 I'm not sure if this is an actual timing issue (feisty is running on an overloaded VM if I recall correctly), or it there is a deeper bug.
647]
648[stop making History be a Service, it wasn't necessary
649Brian Warner <warner@lothar.com>**20090815114415
650 Ignore-this: b60449231557f1934a751c7effa93cfe
651]
652[Overhaul IFilesystemNode handling, to simplify tests and use POLA internally.
653Brian Warner <warner@lothar.com>**20090815112846
654 Ignore-this: 1db1b9c149a60a310228aba04c5c8e5f
655 
656 * stop using IURI as an adapter
657 * pass cap strings around instead of URI instances
658 * move filenode/dirnode creation duties from Client to new NodeMaker class
659 * move other Client duties to KeyGenerator, SecretHolder, History classes
660 * stop passing Client reference to dirnode/filenode constructors
661   - pass less-powerful references instead, like StorageBroker or Uploader
662 * always create DirectoryNodes by wrapping a filenode (mutable for now)
663 * remove some specialized mock classes from unit tests
664 
665 Detailed list of changes (done one at a time, then merged together)
666 
667 always pass a string to create_node_from_uri(), not an IURI instance
668 always pass a string to IFilesystemNode constructors, not an IURI instance
669 stop using IURI() as an adapter, switch on cap prefix in create_node_from_uri()
670 client.py: move SecretHolder code out to a separate class
671 test_web.py: hush pyflakes
672 client.py: move NodeMaker functionality out into a separate object
673 LiteralFileNode: stop storing a Client reference
674 immutable Checker: remove Client reference, it only needs a SecretHolder
675 immutable Upload: remove Client reference, leave SecretHolder and StorageBroker
676 immutable Repairer: replace Client reference with StorageBroker and SecretHolder
677 immutable FileNode: remove Client reference
678 mutable.Publish: stop passing Client
679 mutable.ServermapUpdater: get StorageBroker in constructor, not by peeking into Client reference
680 MutableChecker: reference StorageBroker and History directly, not through Client
681 mutable.FileNode: removed unused indirection to checker classes
682 mutable.FileNode: remove Client reference
683 client.py: move RSA key generation into a separate class, so it can be passed to the nodemaker
684 move create_mutable_file() into NodeMaker
685 test_dirnode.py: stop using FakeClient mockups, use NoNetworkGrid instead. This simplifies the code, but takes longer to run (17s instead of 6s). This should come down later when other cleanups make it possible to use simpler (non-RSA) fake mutable files for dirnode tests.
686 test_mutable.py: clean up basedir names
687 client.py: move create_empty_dirnode() into NodeMaker
688 dirnode.py: get rid of DirectoryNode.create
689 remove DirectoryNode.init_from_uri, refactor NodeMaker for customization, simplify test_web's mock Client to match
690 stop passing Client to DirectoryNode, make DirectoryNode.create_with_mutablefile the normal DirectoryNode constructor, start removing client from NodeMaker
691 remove Client from NodeMaker
692 move helper status into History, pass History to web.Status instead of Client
693 test_mutable.py: fix minor typo
694]
695[docs: edits for docs/running.html from Sam Mason
696zooko@zooko.com**20090809201416
697 Ignore-this: 2207e80449943ebd4ed50cea57c43143
698]
699[docs: install.html: instruct Debian users to use this document and not to go find the DownloadDebianPackages page, ignore the warning at the top of it, and try it
700zooko@zooko.com**20090804123840
701 Ignore-this: 49da654f19d377ffc5a1eff0c820e026
702 http://allmydata.org/pipermail/tahoe-dev/2009-August/002507.html
703]
704[docs: relnotes.txt: reflow to 63 chars wide because google groups and some web forms seem to wrap to that
705zooko@zooko.com**20090802135016
706 Ignore-this: 53b1493a0491bc30fb2935fad283caeb
707]
708[docs: about.html: fix English usage noticed by Amber
709zooko@zooko.com**20090802050533
710 Ignore-this: 89965c4650f9bd100a615c401181a956
711]
712[docs: fix mis-spelled word in about.html
713zooko@zooko.com**20090802050320
714 Ignore-this: fdfd0397bc7cef9edfde425dddeb67e5
715]
716[TAG allmydata-tahoe-1.5.0
717zooko@zooko.com**20090802031303
718 Ignore-this: 94e5558e7225c39a86aae666ea00f166
719]
720Patch bundle hash:
7213d2d2e9a376781479e8a2ff0ef45ac4a1dbafa97