Ticket #817: ticket817-2.darcspatch.txt

File ticket817-2.darcspatch.txt, 19.9 KB (added by davidsarah, at 2009-11-21T06:22:53Z)

make status of finished operations consistently "Finished"

Line 
1Sat Nov 21 06:15:43 GMT Standard Time 2009  david-sarah@jacaranda.org
2  * make status of finished operations consistently "Finished"
3
4New patches:
5
6[make status of finished operations consistently "Finished"
7david-sarah@jacaranda.org**20091121061543
8 Ignore-this: 97d483e8536ccfc2934549ceff7055a3
9] {
10hunk ./src/allmydata/immutable/encode.py 640
11 
12     def done(self, res):
13         self.log("upload done", level=log.OPERATIONAL)
14-        self.set_status("Done")
15+        self.set_status("Finished")
16         self.set_encode_and_push_progress(extra=1.0) # done
17         now = time.time()
18         h_and_c_elapsed = now - self._start_hashing_and_close_timestamp
19hunk ./src/allmydata/immutable/upload.py 841
20 
21     def _build_results(self, uri):
22         self._results.uri = uri
23-        self._status.set_status("Done")
24+        self._status.set_status("Finished")
25         self._status.set_progress(1, 1.0)
26         self._status.set_progress(2, 1.0)
27         return self._results
28hunk ./src/allmydata/immutable/upload.py 1041
29         if "total" in r.timings:
30             r.timings["helper_total"] = r.timings["total"]
31         r.timings["total"] = now - self._started
32-        self._upload_status.set_status("Done")
33+        self._upload_status.set_status("Finished")
34         self._upload_status.set_results(r)
35         return r
36 
37hunk ./src/allmydata/mutable/publish.py 823
38             # TODO: recovery
39         else:
40             self.log("Publish done, success")
41-            self._status.set_status("Done")
42+            self._status.set_status("Finished")
43             self._status.set_progress(1.0)
44         eventually(self.done_deferred.callback, res)
45 
46hunk ./src/allmydata/mutable/retrieve.py 540
47             self._status.set_status("Failed")
48         else:
49             self.log("Retrieve done, success!")
50-            self._status.set_status("Done")
51+            self._status.set_status("Finished")
52             self._status.set_progress(1.0)
53             # remember the encoding parameters, use them again next time
54             (seqnum, root_hash, IV, segsize, datalength, k, N, prefix,
55hunk ./src/allmydata/mutable/servermap.py 1011
56         self._status.set_finished(now)
57         self._status.timings["total"] = elapsed
58         self._status.set_progress(1.0)
59-        self._status.set_status("Done")
60+        self._status.set_status("Finished")
61         self._status.set_active(False)
62 
63         self._servermap.last_update_mode = self.mode
64}
65
66Context:
67
68[add parser for immutable directory caps: DIR2-CHK, DIR2-LIT, DIR2-CHK-Verifier
69Brian Warner <warner@lothar.com>**20091104181351
70 Ignore-this: 854398cc7a75bada57fa97c367b67518
71]
72[wui: s/TahoeLAFS/Tahoe-LAFS/
73zooko@zooko.com**20091029035050
74 Ignore-this: 901e64cd862e492ed3132bd298583c26
75]
76[tests: bump up the timeout on test_repairer to see if 120 seconds was too short for François's ARM box to do the test even when it was doing it right.
77zooko@zooko.com**20091027224800
78 Ignore-this: 95e93dc2e018b9948253c2045d506f56
79]
80[dirnode.pack_children(): add deep_immutable= argument
81Brian Warner <warner@lothar.com>**20091026162809
82 Ignore-this: d5a2371e47662c4bc6eff273e8181b00
83 
84 This will be used by DIR2:CHK to enforce the deep-immutability requirement.
85]
86[webapi: use t=mkdir-with-children instead of a children= arg to t=mkdir .
87Brian Warner <warner@lothar.com>**20091026011321
88 Ignore-this: 769cab30b6ab50db95000b6c5a524916
89 
90 This is safer: in the earlier API, an old webapi server would silently ignore
91 the initial children, and clients trying to set them would have to fetch the
92 newly-created directory to discover the incompatibility. In the new API,
93 clients using t=mkdir-with-children against an old webapi server will get a
94 clear error.
95]
96[nodemaker.create_new_mutable_directory: pack_children() in initial_contents=
97Brian Warner <warner@lothar.com>**20091020005118
98 Ignore-this: bd43c4eefe06fd32b7492bcb0a55d07e
99 instead of creating an empty file and then adding the children later.
100 
101 This should speed up mkdir(initial_children) considerably, removing two
102 roundtrips and an entire read-modify-write cycle, probably bringing it down
103 to a single roundtrip. A quick test (against the volunteergrid) suggests a
104 30% speedup.
105 
106 test_dirnode: add new tests to enforce the restrictions that interfaces.py
107 claims for create_new_mutable_directory(): no UnknownNodes, metadata dicts
108]
109[test_dirnode.py: add tests of initial_children= args to client.create_dirnode
110Brian Warner <warner@lothar.com>**20091017194159
111 Ignore-this: 2e2da28323a4d5d815466387914abc1b
112 and nodemaker.create_new_mutable_directory
113]
114[update many dirnode interfaces to accept dict-of-nodes instead of dict-of-caps
115Brian Warner <warner@lothar.com>**20091017192829
116 Ignore-this: b35472285143862a856bf4b361d692f0
117 
118 interfaces.py: define INodeMaker, document argument values, change
119                create_new_mutable_directory() to take dict-of-nodes. Change
120                dirnode.set_nodes() and dirnode.create_subdirectory() too.
121 nodemaker.py: use INodeMaker, update create_new_mutable_directory()
122 client.py: have create_dirnode() delegate initial_children= to nodemaker
123 dirnode.py (Adder): take dict-of-nodes instead of list-of-nodes, which
124                     updates set_nodes() and create_subdirectory()
125 web/common.py (convert_initial_children_json): create dict-of-nodes
126 web/directory.py: same
127 web/unlinked.py: same
128 test_dirnode.py: update tests to match
129]
130[dirnode.py: move pack_children() out to a function, for eventual use by others
131Brian Warner <warner@lothar.com>**20091017180707
132 Ignore-this: 6a823fb61f2c180fd38d6742d3196a7a
133]
134[move dirnode.CachingDict to dictutil.AuxValueDict, generalize method names,
135Brian Warner <warner@lothar.com>**20091017180005
136 Ignore-this: b086933cf429df0fcea16a308d2640dd
137 improve tests. Let dirnode _pack_children accept either dict or AuxValueDict.
138]
139[test/common.py: update FakeMutableFileNode to new contents= callable scheme
140Brian Warner <warner@lothar.com>**20091013052154
141 Ignore-this: 62f00a76454a2190d1c8641c5993632f
142]
143[The initial_children= argument to nodemaker.create_new_mutable_directory is
144Brian Warner <warner@lothar.com>**20091013031922
145 Ignore-this: 72e45317c21f9eb9ec3bd79bd4311f48
146 now enabled.
147]
148[client.create_mutable_file(contents=) now accepts a callable, which is
149Brian Warner <warner@lothar.com>**20091013031232
150 Ignore-this: 3c89d2f50c1e652b83f20bd3f4f27c4b
151 invoked with the new MutableFileNode and is supposed to return the initial
152 contents. This can be used by e.g. a new dirnode which needs the filenode's
153 writekey to encrypt its initial children.
154 
155 create_mutable_file() still accepts a bytestring too, or None for an empty
156 file.
157]
158[webapi: t=mkdir now accepts initial children, using the same JSON that t=json
159Brian Warner <warner@lothar.com>**20091013023444
160 Ignore-this: 574a46ed46af4251abf8c9580fd31ef7
161 emits.
162 
163 client.create_dirnode(initial_children=) now works.
164]
165[replace dirnode.create_empty_directory() with create_subdirectory(), which
166Brian Warner <warner@lothar.com>**20091013021520
167 Ignore-this: 6b57cb51bcfcc6058d0df569fdc8a9cf
168 takes an initial_children= argument
169]
170[dirnode.set_children: change return value: fire with self instead of None
171Brian Warner <warner@lothar.com>**20091013015026
172 Ignore-this: f1d14e67e084e4b2a4e25fa849b0e753
173]
174[dirnode.set_nodes: change return value: fire with self instead of None
175Brian Warner <warner@lothar.com>**20091013014546
176 Ignore-this: b75b3829fb53f7399693f1c1a39aacae
177]
178[dirnode.set_children: take a dict, not a list
179Brian Warner <warner@lothar.com>**20091013002440
180 Ignore-this: 540ce72ce2727ee053afaae1ff124e21
181]
182[dirnode.set_uri/set_children: change signature to take writecap+readcap
183Brian Warner <warner@lothar.com>**20091012235126
184 Ignore-this: 5df617b2d379a51c79148a857e6026b1
185 instead of a single cap. The webapi t=set_children call benefits too.
186]
187[replace Client.create_empty_dirnode() with create_dirnode(), in anticipation
188Brian Warner <warner@lothar.com>**20091012224506
189 Ignore-this: cbdaa4266ecb3c6496ffceab4f95709d
190 of adding initial_children= argument.
191 
192 Includes stubbed-out initial_children= support.
193]
194[test_web.py: use a less-fake client, making test harness smaller
195Brian Warner <warner@lothar.com>**20091012222808
196 Ignore-this: 29e95147f8c94282885c65b411d100bb
197]
198[webapi.txt: document t=set_children, other small edits
199Brian Warner <warner@lothar.com>**20091009200446
200 Ignore-this: 4d7e76b04a7b8eaa0a981879f778ea5d
201]
202[Verifier: check the full cryptext-hash tree on each share. Removed .todos
203Brian Warner <warner@lothar.com>**20091005221849
204 Ignore-this: 6fb039c5584812017d91725e687323a5
205 from the last few test_repairer tests that were waiting on this.
206]
207[Verifier: check the full block-hash-tree on each share
208Brian Warner <warner@lothar.com>**20091005214844
209 Ignore-this: 3f7ccf6d253f32340f1bf1da27803eee
210 
211 Removed the .todo from two test_repairer tests that check this. The only
212 remaining .todos are on the three crypttext-hash-tree tests.
213]
214[Verifier: check the full share-hash chain on each share
215Brian Warner <warner@lothar.com>**20091005213443
216 Ignore-this: 3d30111904158bec06a4eac22fd39d17
217 
218 Removed the .todo from two test_repairer tests that check this.
219]
220[test_repairer: rename Verifier test cases to be more precise and less verbose
221Brian Warner <warner@lothar.com>**20091005201115
222 Ignore-this: 64be7094e33338c7c2aea9387e138771
223]
224[immutable/checker.py: rearrange code a little bit, make it easier to follow
225Brian Warner <warner@lothar.com>**20091005200252
226 Ignore-this: 91cc303fab66faf717433a709f785fb5
227]
228[test/common.py: wrap docstrings to 80cols so I can read them more easily
229Brian Warner <warner@lothar.com>**20091005200143
230 Ignore-this: b180a3a0235cbe309c87bd5e873cbbb3
231]
232[immutable/download.py: wrap to 80cols, no functional changes
233Brian Warner <warner@lothar.com>**20091005192542
234 Ignore-this: 6b05fe3dc6d78832323e708b9e6a1fe
235]
236[CHK-hashes.svg: cross out plaintext hashes, since we don't include
237Brian Warner <warner@lothar.com>**20091005010803
238 Ignore-this: bea2e953b65ec7359363aa20de8cb603
239 them (until we finish #453)
240]
241[docs: a few licensing clarifications requested by Ubuntu
242zooko@zooko.com**20090927033226
243 Ignore-this: 749fc8c9aeb6dc643669854a3e81baa7
244]
245[setup: remove binary WinFUSE modules
246zooko@zooko.com**20090924211436
247 Ignore-this: 8aefc571d2ae22b9405fc650f2c2062
248 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
249 r acquire the binaries as needed.  Also, having these in our release tarballs is interfering with getting Tahoe-LAFS uploaded into Ubuntu Karmic.  (Technicall
250 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
251 t it is easier for now to remove the binaries from the source tree.)
252 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.
253]
254[setup: remove binary _fusemodule.so 's
255zooko@zooko.com**20090924211130
256 Ignore-this: 74487bbe27d280762ac5dd5f51e24186
257 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.)
258 In this case, these modules come from the MacFUSE project: http://code.google.com/p/macfuse/
259]
260[doc: add a copy of LGPL2 for documentation purposes for ubuntu
261zooko@zooko.com**20090924054218
262 Ignore-this: 6a073b48678a7c84dc4fbcef9292ab5b
263]
264[setup: remove a convenience copy of figleaf, to ease inclusion into Ubuntu Karmic Koala
265zooko@zooko.com**20090924053215
266 Ignore-this: a0b0c990d6e2ee65c53a24391365ac8d
267 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...
268]
269[setup: shebang for misc/build-deb.py to fail quickly
270zooko@zooko.com**20090819135626
271 Ignore-this: 5a1b893234d2d0bb7b7346e84b0a6b4d
272 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.)
273]
274[docs: Shawn Willden grants permission for his contributions under GPL2+|TGPPL1+
275zooko@zooko.com**20090921164651
276 Ignore-this: ef1912010d07ff2ffd9678e7abfd0d57
277]
278[docs: Csaba Henk granted permission to license fuse.py under the same terms as Tahoe-LAFS itself
279zooko@zooko.com**20090921154659
280 Ignore-this: c61ba48dcb7206a89a57ca18a0450c53
281]
282[setup: mark setup.py as having utf-8 encoding in it
283zooko@zooko.com**20090920180343
284 Ignore-this: 9d3850733700a44ba7291e9c5e36bb91
285]
286[doc: licensing cleanups
287zooko@zooko.com**20090920171631
288 Ignore-this: 7654f2854bf3c13e6f4d4597633a6630
289 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.
290]
291[build-deb.py: run darcsver early, otherwise we get the wrong version later on
292Brian Warner <warner@lothar.com>**20090918033620
293 Ignore-this: 6635c5b85e84f8aed0d8390490c5392a
294]
295[new approach for debian packaging, sharing pieces across distributions. Still experimental, still only works for sid.
296warner@lothar.com**20090818190527
297 Ignore-this: a75eb63db9106b3269badbfcdd7f5ce1
298]
299[new experimental deb-packaging rules. Only works for sid so far.
300Brian Warner <warner@lothar.com>**20090818014052
301 Ignore-this: 3a26ad188668098f8f3cc10a7c0c2f27
302]
303[setup.py: read _version.py and pass to setup(version=), so more commands work
304Brian Warner <warner@lothar.com>**20090818010057
305 Ignore-this: b290eb50216938e19f72db211f82147e
306 like "setup.py --version" and "setup.py --fullname"
307]
308[test/check_speed.py: fix shbang line
309Brian Warner <warner@lothar.com>**20090818005948
310 Ignore-this: 7f3a37caf349c4c4de704d0feb561f8d
311]
312[setup: remove bundled version of darcsver-1.2.1
313zooko@zooko.com**20090816233432
314 Ignore-this: 5357f26d2803db2d39159125dddb963a
315 That version of darcsver emits a scary error message when the darcs executable or the _darcs subdirectory is not found.
316 This error is hidden (unless the --loud option is passed) in darcsver >= 1.3.1.
317 Fixes #788.
318]
319[de-Service-ify Helper, pass in storage_broker and secret_holder directly.
320Brian Warner <warner@lothar.com>**20090815201737
321 Ignore-this: 86b8ac0f90f77a1036cd604dd1304d8b
322 This makes it more obvious that the Helper currently generates leases with
323 the Helper's own secrets, rather than getting values from the client, which
324 is arguably a bug that will likely be resolved with the Accounting project.
325]
326[immutable.Downloader: pass StorageBroker to constructor, stop being a Service
327Brian Warner <warner@lothar.com>**20090815192543
328 Ignore-this: af5ab12dbf75377640a670c689838479
329 child of the client, access with client.downloader instead of
330 client.getServiceNamed("downloader"). The single "Downloader" instance is
331 scheduled for demolition anyways, to be replaced by individual
332 filenode.download calls.
333]
334[tests: double the timeout on test_runner.RunNode.test_introducer since feisty hit a timeout
335zooko@zooko.com**20090815160512
336 Ignore-this: ca7358bce4bdabe8eea75dedc39c0e67
337 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.
338]
339[stop making History be a Service, it wasn't necessary
340Brian Warner <warner@lothar.com>**20090815114415
341 Ignore-this: b60449231557f1934a751c7effa93cfe
342]
343[Overhaul IFilesystemNode handling, to simplify tests and use POLA internally.
344Brian Warner <warner@lothar.com>**20090815112846
345 Ignore-this: 1db1b9c149a60a310228aba04c5c8e5f
346 
347 * stop using IURI as an adapter
348 * pass cap strings around instead of URI instances
349 * move filenode/dirnode creation duties from Client to new NodeMaker class
350 * move other Client duties to KeyGenerator, SecretHolder, History classes
351 * stop passing Client reference to dirnode/filenode constructors
352   - pass less-powerful references instead, like StorageBroker or Uploader
353 * always create DirectoryNodes by wrapping a filenode (mutable for now)
354 * remove some specialized mock classes from unit tests
355 
356 Detailed list of changes (done one at a time, then merged together)
357 
358 always pass a string to create_node_from_uri(), not an IURI instance
359 always pass a string to IFilesystemNode constructors, not an IURI instance
360 stop using IURI() as an adapter, switch on cap prefix in create_node_from_uri()
361 client.py: move SecretHolder code out to a separate class
362 test_web.py: hush pyflakes
363 client.py: move NodeMaker functionality out into a separate object
364 LiteralFileNode: stop storing a Client reference
365 immutable Checker: remove Client reference, it only needs a SecretHolder
366 immutable Upload: remove Client reference, leave SecretHolder and StorageBroker
367 immutable Repairer: replace Client reference with StorageBroker and SecretHolder
368 immutable FileNode: remove Client reference
369 mutable.Publish: stop passing Client
370 mutable.ServermapUpdater: get StorageBroker in constructor, not by peeking into Client reference
371 MutableChecker: reference StorageBroker and History directly, not through Client
372 mutable.FileNode: removed unused indirection to checker classes
373 mutable.FileNode: remove Client reference
374 client.py: move RSA key generation into a separate class, so it can be passed to the nodemaker
375 move create_mutable_file() into NodeMaker
376 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.
377 test_mutable.py: clean up basedir names
378 client.py: move create_empty_dirnode() into NodeMaker
379 dirnode.py: get rid of DirectoryNode.create
380 remove DirectoryNode.init_from_uri, refactor NodeMaker for customization, simplify test_web's mock Client to match
381 stop passing Client to DirectoryNode, make DirectoryNode.create_with_mutablefile the normal DirectoryNode constructor, start removing client from NodeMaker
382 remove Client from NodeMaker
383 move helper status into History, pass History to web.Status instead of Client
384 test_mutable.py: fix minor typo
385]
386[docs: edits for docs/running.html from Sam Mason
387zooko@zooko.com**20090809201416
388 Ignore-this: 2207e80449943ebd4ed50cea57c43143
389]
390[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
391zooko@zooko.com**20090804123840
392 Ignore-this: 49da654f19d377ffc5a1eff0c820e026
393 http://allmydata.org/pipermail/tahoe-dev/2009-August/002507.html
394]
395[docs: relnotes.txt: reflow to 63 chars wide because google groups and some web forms seem to wrap to that
396zooko@zooko.com**20090802135016
397 Ignore-this: 53b1493a0491bc30fb2935fad283caeb
398]
399[docs: about.html: fix English usage noticed by Amber
400zooko@zooko.com**20090802050533
401 Ignore-this: 89965c4650f9bd100a615c401181a956
402]
403[docs: fix mis-spelled word in about.html
404zooko@zooko.com**20090802050320
405 Ignore-this: fdfd0397bc7cef9edfde425dddeb67e5
406]
407[TAG allmydata-tahoe-1.5.0
408zooko@zooko.com**20090802031303
409 Ignore-this: 94e5558e7225c39a86aae666ea00f166
410]
411Patch bundle hash:
4129bc47f24f40d39e8877b25642802e2a9f6524bce