1 | Sun Jul 18 16:29:07 MDT 2010 zooko@zooko.com |
---|
2 | * immutable: test for #1124 |
---|
3 | |
---|
4 | New patches: |
---|
5 | |
---|
6 | [immutable: test for #1124 |
---|
7 | zooko@zooko.com**20100718222907 |
---|
8 | Ignore-this: 1766e3cbab92ea2a9e246f40eb6e770b |
---|
9 | ] hunk ./src/allmydata/test/test_upload.py 1086 |
---|
10 | self.failUnlessEqual(results.pushed_shares, 3)) |
---|
11 | return d |
---|
12 | |
---|
13 | + def test_problem_layout_ticket1124(self): |
---|
14 | + self.basedir = self.mktemp() |
---|
15 | + d = self._setup_and_upload(k=2, n=4) |
---|
16 | + |
---|
17 | + # server 0: shares 0, 1, 2, 3 |
---|
18 | + # server 1: shares 0, 3 |
---|
19 | + # server 2: share 1 |
---|
20 | + # server 3: share 2 |
---|
21 | + # With this layout, an upload should just be satisfied that the current distribution is good enough, right? |
---|
22 | + def _setup(ign): |
---|
23 | + self._add_server_with_share(server_number=0, share_number=None) |
---|
24 | + self._add_server_with_share(server_number=1, share_number=0) |
---|
25 | + self._add_server_with_share(server_number=2, share_number=1) |
---|
26 | + self._add_server_with_share(server_number=3, share_number=2) |
---|
27 | + # Copy shares |
---|
28 | + self._copy_share_to_server(3, 1) |
---|
29 | + client = self.g.clients[0] |
---|
30 | + client.DEFAULT_ENCODING_PARAMETERS['happy'] = 4 |
---|
31 | + return client |
---|
32 | + |
---|
33 | + d.addCallback(_setup) |
---|
34 | + d.addCallback(lambda client: |
---|
35 | + client.upload(upload.Data("data" * 10000, convergence=""))) |
---|
36 | + return d |
---|
37 | + test_problem_layout_ticket1124.todo = "Fix this after 1.7.1 release." |
---|
38 | |
---|
39 | def test_happiness_with_some_readonly_peers(self): |
---|
40 | # Try the following layout |
---|
41 | |
---|
42 | Context: |
---|
43 | |
---|
44 | [trivial: fix unused import (sorry about that, pyflakes) |
---|
45 | zooko@zooko.com**20100718215133 |
---|
46 | Ignore-this: c2414e443405072b51d552295f2c0e8c |
---|
47 | ] |
---|
48 | [tests, NEWS, CREDITS re: #1117 |
---|
49 | zooko@zooko.com**20100718203225 |
---|
50 | Ignore-this: 1f08be2c692fb72cc0dd023259f11354 |
---|
51 | Give Brian and Kevan promotions, move release date in NEWS to the 18th, commit Brian's test for #1117. |
---|
52 | fixes #1117 |
---|
53 | ] |
---|
54 | [test/test_upload.py: test to see that aborted buckets are ignored by the storage server |
---|
55 | Kevan Carstensen <kevan@isnotajoke.com>**20100716001046 |
---|
56 | Ignore-this: cc075c24b1c86d737f3199af894cc780 |
---|
57 | ] |
---|
58 | [test/test_storage.py: test for the new remote_abort semantics. |
---|
59 | Kevan Carstensen <kevan@isnotajoke.com>**20100715232148 |
---|
60 | Ignore-this: d3d6491f17bf670e770ca4b385007515 |
---|
61 | ] |
---|
62 | [storage/immutable.py: make remote_abort btell the storage server about aborted buckets. |
---|
63 | Kevan Carstensen <kevan@isnotajoke.com>**20100715232105 |
---|
64 | Ignore-this: 16ab0090676355abdd5600ed44ff19c9 |
---|
65 | ] |
---|
66 | [test/test_upload.py: changes to test plumbing for #1117 tests |
---|
67 | Kevan Carstensen <kevan@isnotajoke.com>**20100715231820 |
---|
68 | Ignore-this: 78a6d359d7bf8529d283e2815bf1e2de |
---|
69 | |
---|
70 | - Add a callRemoteOnly method to FakeBucketWriter. |
---|
71 | - Change the abort method in FakeBucketWriter to not return a |
---|
72 | RuntimeError. |
---|
73 | ] |
---|
74 | [immutable/upload.py: abort buckets if peer selection fails |
---|
75 | Kevan Carstensen <kevan@isnotajoke.com>**20100715231714 |
---|
76 | Ignore-this: 2a0b643a22284df292d8ed9d91b1fd37 |
---|
77 | ] |
---|
78 | [test_encodingutil: correct an error in the previous patch to StdlibUnicode.test_open_representable. |
---|
79 | david-sarah@jacaranda.org**20100718151420 |
---|
80 | Ignore-this: af050955f623fbc0e4d78e15a0a8a144 |
---|
81 | ] |
---|
82 | [NEWS: Forward-compatibility improvements for non-ASCII caps (#1051). |
---|
83 | david-sarah@jacaranda.org**20100718143622 |
---|
84 | Ignore-this: 1edfebc4bd38a3b5c35e75c99588153f |
---|
85 | ] |
---|
86 | [test_dirnode and test_web: don't use failUnlessReallyEqual in cases where the return type from simplejson.loads can vary between unicode and str. Use to_str when comparing URIs parsed from JSON. |
---|
87 | david-sarah@jacaranda.org**20100718142915 |
---|
88 | Ignore-this: c4e78ef4b1478dd400da71cf077ffa4a |
---|
89 | ] |
---|
90 | [test_encodingutil: StdlibUnicode.test_open_representable no longer uses a mock. |
---|
91 | david-sarah@jacaranda.org**20100718125412 |
---|
92 | Ignore-this: 4bf373a5e2dfe4209e5e364124af29a3 |
---|
93 | ] |
---|
94 | [docs: add comment clarifying #1051 |
---|
95 | zooko@zooko.com**20100718053250 |
---|
96 | Ignore-this: 6cfc0930434cbdbbc262dabb58f1505d |
---|
97 | ] |
---|
98 | [docs: update NEWS |
---|
99 | zooko@zooko.com**20100718053225 |
---|
100 | Ignore-this: 63d5c782ef84812e6d010f0590866831 |
---|
101 | ] |
---|
102 | [Add tests of caps from the future that have non-ASCII characters in them (encoded as UTF-8). The changes to test_uri.py, test_client.py, and test_dirnode.py add tests of non-ASCII future caps in addition to the current tests. The changes to test_web.py just replace the tests of all-ASCII future caps with tests of non-ASCII future caps. We also change uses of failUnlessEqual to failUnlessReallyEqual, in order to catch cases where the type of a string is not as expected. |
---|
103 | david-sarah@jacaranda.org**20100711200252 |
---|
104 | Ignore-this: c2f193352369d32e06865f8f3e951894 |
---|
105 | ] |
---|
106 | [Debian documentation update |
---|
107 | jacob@appelbaum.net**20100305003004] |
---|
108 | [debian-docs-patch-final |
---|
109 | jacob@appelbaum.net**20100304085955] |
---|
110 | [M-x whitespace-cleanup |
---|
111 | zooko@zooko.com**20100718032739 |
---|
112 | Ignore-this: babfd4af6ad2fc885c957fd5c8b10c3f |
---|
113 | ] |
---|
114 | [docs: tidy up NEWS a little |
---|
115 | zooko@zooko.com**20100718032434 |
---|
116 | Ignore-this: 54f2820fd1a37c8967609f6bfc4e5e18 |
---|
117 | ] |
---|
118 | [benchmarking: update bench_dirnode.py to reflect the new directory interfaces |
---|
119 | zooko@zooko.com**20100718031710 |
---|
120 | Ignore-this: 368ba523dd3de80d9da29cd58afbe827 |
---|
121 | ] |
---|
122 | [test_encodingutil: fix test_open_representable, which is only valid when run on a platform for which we know an unrepresentable filename. |
---|
123 | david-sarah@jacaranda.org**20100718030333 |
---|
124 | Ignore-this: c114d92c17714a5d4ae005c15267d60c |
---|
125 | ] |
---|
126 | [iputil.py: Add support for FreeBSD 7,8 and 9 |
---|
127 | francois@ctrlaltdel.ch**20100718022832 |
---|
128 | Ignore-this: 1829b4cf4b91107f4cf87841e6167e99 |
---|
129 | committed by: zooko@zooko.com |
---|
130 | date: 2010-07-17 |
---|
131 | and I also patched: NEWS and CREDITS |
---|
132 | ] |
---|
133 | [NEWS: add snippet about #1083 |
---|
134 | zooko@zooko.com**20100718020653 |
---|
135 | Ignore-this: d353a9d93cbc5a5e6ba4671f78d1e22b |
---|
136 | ] |
---|
137 | [fileutil: docstrings for non-obvious usage restrictions on methods of EncryptedTemporaryFile. |
---|
138 | david-sarah@jacaranda.org**20100717054647 |
---|
139 | Ignore-this: 46d8fc10782fa8ec2b6c5b168c841943 |
---|
140 | ] |
---|
141 | [Move EncryptedTemporaryFile from SFTP frontend to allmydata.util.fileutil, and make the FTP frontend also use it (fixing #1083). |
---|
142 | david-sarah@jacaranda.org**20100711213721 |
---|
143 | Ignore-this: e452e8ca66391aa2a1a49afe0114f317 |
---|
144 | ] |
---|
145 | [NEWS: reorder NEWS snippets to be in descending order of interestingness |
---|
146 | zooko@zooko.com**20100718015929 |
---|
147 | Ignore-this: 146c42e88a9555a868a04a69dd0e5326 |
---|
148 | ] |
---|
149 | [Correct stringutils->encodingutil patch to be the newer version, rather than the old version that was committed in error. |
---|
150 | david-sarah@jacaranda.org**20100718013435 |
---|
151 | Ignore-this: c8940c4e1aa2e9acc80cd4fe54753cd8 |
---|
152 | ] |
---|
153 | [test_cli.py: fix error that crept in when rebasing the patch for #1072. |
---|
154 | david-sarah@jacaranda.org**20100718000123 |
---|
155 | Ignore-this: 3e8f6cc3a27b747c708221dd581934f4 |
---|
156 | ] |
---|
157 | [stringutils: add test for when sys.stdout has no encoding attribute (fixes #1099). |
---|
158 | david-sarah@jacaranda.org**20100717045816 |
---|
159 | Ignore-this: f28dce6940e909f12f354086d17db54f |
---|
160 | ] |
---|
161 | [CLI: add 'tahoe unlink' as an alias to 'tahoe rm', for forward-compatibility. |
---|
162 | david-sarah@jacaranda.org**20100717220411 |
---|
163 | Ignore-this: 3ecdde7f2d0498514cef32e118e0b855 |
---|
164 | ] |
---|
165 | [minor code clean-up in dirnode.py |
---|
166 | zooko@zooko.com**20100714060255 |
---|
167 | Ignore-this: bb0ab2783203e605024b3e2f798256a1 |
---|
168 | Impose micro-POLA by passing only the writekey instead of the whole node object to {{{_encrypt_rw_uri()}}}. Remove DummyImmutableFileNode in nodemaker.py, which is obviated by this. Add micro-optimization by precomputing the netstring of the empty string and branching on whether the writekey is present or not outside of {{{_encrypt_rw_uri()}}}. Add doc about writekey to docstring. |
---|
169 | fixes #967 |
---|
170 | ] |
---|
171 | [Rename stringutils to encodingutil, and drop listdir_unicode and open_unicode (since the Python stdlib functions work fine with Unicode paths). Also move some utility functions to fileutil. |
---|
172 | david-sarah@jacaranda.org**20100712003015 |
---|
173 | Ignore-this: 103b809d180df17a7283077c3104c7be |
---|
174 | ] |
---|
175 | [Allow URIs passed in the initial JSON for t=mkdir-with-children, t=mkdir-immutable to be Unicode. Also pass the name of each child into nodemaker.create_from_cap for error reporting. |
---|
176 | david-sarah@jacaranda.org**20100711195525 |
---|
177 | Ignore-this: deac32d8b91ba26ede18905d3f7d2b93 |
---|
178 | ] |
---|
179 | [docs: CREDITS and NEWS |
---|
180 | zooko@zooko.com**20100714060150 |
---|
181 | Ignore-this: dc83e612f77d69e50ee975f07f6b16fe |
---|
182 | ] |
---|
183 | [CREDITS: more creds for Kevan, plus utf-8 BOM |
---|
184 | zooko@zooko.com**20100619045503 |
---|
185 | Ignore-this: 72d02bdd7a0f324f1cee8cd399c7c6de |
---|
186 | ] |
---|
187 | [cli.py: make command descriptions consistently end with a full stop. |
---|
188 | david-sarah@jacaranda.org**20100714014538 |
---|
189 | Ignore-this: 9ee7fa29ca2d1631db4049c2a389a97a |
---|
190 | ] |
---|
191 | [SFTP: address some of the comments in zooko's review (#1106). |
---|
192 | david-sarah@jacaranda.org**20100712025537 |
---|
193 | Ignore-this: c3921638a2d4f1de2a776ae78e4dc37e |
---|
194 | ] |
---|
195 | [docs/logging.txt: note that setting flogging vars might affect tests with race conditions. |
---|
196 | david-sarah@jacaranda.org**20100712050721 |
---|
197 | Ignore-this: fc1609d215fcd5561a57fd1226206f27 |
---|
198 | ] |
---|
199 | [test_storage.py: potential fix for failures when logging is enabled. |
---|
200 | david-sarah@jacaranda.org**19700713040546 |
---|
201 | Ignore-this: 5815693a0df3e64c52c3c6b7be2846c7 |
---|
202 | ] |
---|
203 | [upcase_since_on_welcome |
---|
204 | terrellrussell@gmail.com**20100708193903] |
---|
205 | [server_version_on_welcome_page.dpatch.txt |
---|
206 | freestorm77@gmail.com**20100605191721 |
---|
207 | Ignore-this: b450c76dc875f5ac8cca229a666cbd0a |
---|
208 | |
---|
209 | |
---|
210 | - The storage server version is 0 for all storage nodes in the Welcome Page |
---|
211 | |
---|
212 | |
---|
213 | ] |
---|
214 | [NEWS: add NEWS snippets about two recent patches |
---|
215 | zooko@zooko.com**20100708162058 |
---|
216 | Ignore-this: 6c9da6a0ad7351a960bdd60f81532899 |
---|
217 | ] |
---|
218 | [directory_html_top_banner.dpatch |
---|
219 | freestorm77@gmail.com**20100622205301 |
---|
220 | Ignore-this: 1d770d975e0c414c996564774f049bca |
---|
221 | |
---|
222 | The div tag with the link "Return to Welcome page" on the directory.xhtml page is not correct |
---|
223 | |
---|
224 | ] |
---|
225 | [tahoe_css_toolbar.dpatch |
---|
226 | freestorm77@gmail.com**20100622210046 |
---|
227 | Ignore-this: 5b3ebb2e0f52bbba718a932f80c246c0 |
---|
228 | |
---|
229 | CSS modification to be correctly diplayed with Internet Explorer 8 |
---|
230 | |
---|
231 | The links on the top of page directory.xhtml are not diplayed in the same line as display with Firefox. |
---|
232 | |
---|
233 | ] |
---|
234 | [runnin_test_tahoe_css.dpatch |
---|
235 | freestorm77@gmail.com**20100622214714 |
---|
236 | Ignore-this: e0db73d68740aad09a7b9ae60a08c05c |
---|
237 | |
---|
238 | Runnin test for changes in tahoe.css file |
---|
239 | |
---|
240 | ] |
---|
241 | [runnin_test_directory_xhtml.dpatch |
---|
242 | freestorm77@gmail.com**20100622201403 |
---|
243 | Ignore-this: f8962463fce50b9466405cb59fe11d43 |
---|
244 | |
---|
245 | Runnin test for diretory.xhtml top banner |
---|
246 | |
---|
247 | ] |
---|
248 | [stringutils.py: tolerate sys.stdout having no 'encoding' attribute. |
---|
249 | david-sarah@jacaranda.org**20100626040817 |
---|
250 | Ignore-this: f42cad81cef645ee38ac1df4660cc850 |
---|
251 | ] |
---|
252 | [quickstart.html: python 2.5 -> 2.6 as recommended version |
---|
253 | david-sarah@jacaranda.org**20100705175858 |
---|
254 | Ignore-this: bc3a14645ea1d5435002966ae903199f |
---|
255 | ] |
---|
256 | [SFTP: don't call .stopProducing on the producer registered with OverwriteableFileConsumer (which breaks with warner's new downloader). |
---|
257 | david-sarah@jacaranda.org**20100628231926 |
---|
258 | Ignore-this: 131b7a5787bc85a9a356b5740d9d996f |
---|
259 | ] |
---|
260 | [docs/how_to_make_a_tahoe-lafs_release.txt: trivial correction, install.html should now be quickstart.html. |
---|
261 | david-sarah@jacaranda.org**20100625223929 |
---|
262 | Ignore-this: 99a5459cac51bd867cc11ad06927ff30 |
---|
263 | ] |
---|
264 | [setup: in the Makefile, refuse to upload tarballs unless someone has passed the environment variable "BB_BRANCH" with value "trunk" |
---|
265 | zooko@zooko.com**20100619034928 |
---|
266 | Ignore-this: 276ddf9b6ad7ec79e27474862e0f7d6 |
---|
267 | ] |
---|
268 | [trivial: tiny update to in-line comment |
---|
269 | zooko@zooko.com**20100614045715 |
---|
270 | Ignore-this: 10851b0ed2abfed542c97749e5d280bc |
---|
271 | (I'm actually committing this patch as a test of the new eager-annotation-computation of trac-darcs.) |
---|
272 | ] |
---|
273 | [docs: about.html link to home page early on, and be decentralized storage instead of cloud storage this time around |
---|
274 | zooko@zooko.com**20100619065318 |
---|
275 | Ignore-this: dc6db03f696e5b6d2848699e754d8053 |
---|
276 | ] |
---|
277 | [docs: update about.html, especially to have a non-broken link to quickstart.html, and also to comment out the broken links to "for Paranoids" and "for Corporates" |
---|
278 | zooko@zooko.com**20100619065124 |
---|
279 | Ignore-this: e292c7f51c337a84ebfeb366fbd24d6c |
---|
280 | ] |
---|
281 | [TAG allmydata-tahoe-1.7.0 |
---|
282 | zooko@zooko.com**20100619052631 |
---|
283 | Ignore-this: d21e27afe6d85e2e3ba6a3292ba2be1 |
---|
284 | ] |
---|
285 | Patch bundle hash: |
---|
286 | 154ad3556e324ea606c837a3f3b02ef73197d3b6 |
---|