Ticket #1233: test-with-fake-pkg-improvement.darcs.patch

File test-with-fake-pkg-improvement.darcs.patch, 20.5 KB (added by zooko, at 2010-11-18T08:01:07Z)
Line 
11 patch for repository zooko@dev.allmydata.org:/home/darcs/tahoe-lafs/trunk:
2
3Thu Nov 18 00:23:34 MST 2010  zooko@zooko.com
4  * tests: change test-with-fake-pkg to exercise a test suite which actually requires pycryptopp, thus making this a better test which can detect ill-installed pycryptopp
5
6New patches:
7
8[tests: change test-with-fake-pkg to exercise a test suite which actually requires pycryptopp, thus making this a better test which can detect ill-installed pycryptopp
9zooko@zooko.com**20101118072334
10 Ignore-this: 750f432d3acedde244ef1ed7ebd77158
11] hunk ./misc/build_helpers/test-with-fake-pkg.py 19
12 fakepkgdir = 'misc/build_helpers/fakepkgs'
13 fakepkgname = "pycryptopp"
14 fakepkgversion = "0.5.13"
15-testsuite = "allmydata.test.test_base62"
16+testsuite = "allmydata.test.test_backupdb"
17 
18 pkgdirname = os.path.join(os.getcwd(), fakepkgdir, '%s-%s.egg' % (fakepkgname, fakepkgversion))
19 
20
21Context:
22
23[tests: bump up the timeout on test_dirnode.Dirnode from 240s to 480s since it apparently took longer than 240s just now on François's ARM buildslave
24zooko@zooko.com**20101115092119
25 Ignore-this: e3e45c663386fe208eeedbccb2872aca
26]
27[setup: remove --multi-version
28zooko@zooko.com**20101115090048
29 Ignore-this: 235bbe0d5645091d56db3b1414fd50b0
30 It causes copious scary-looking warning messages and I'm no longer sure if it was actually needed to accomplish our goals ref #530.
31]
32[misc/build_helpers/gen-package-table.py: put 'n/a' in table entries for pywin32 on non-Windows platforms. Also remove some dead code. refs #1247
33david-sarah@jacaranda.org**20101114193558
34 Ignore-this: 50c07d1cef22b6f6511ccfa539aa3afc
35]
36[test_cli.py: fix a stale comment that incorrectly implied that test_cli runs CLI commands in subprocesses (it actually runs them using deferToThread).
37david-sarah@jacaranda.org**20101110022819
38 Ignore-this: 903b03121061d5b7185ff6333dac7bd4
39]
40[setup: include pycryptopp in the set of Python packages described in the show-tool-versions step (for cross-referencing with the test-with-fake-dists step, which behaves differently depending on what version(s) of pycryptopp are already present before it starts)
41zooko@zooko.com**20101114100540
42 Ignore-this: fd01732d1757e80f4a311ba2d38c5e3d
43]
44[setup: gen-package-table.py -- Python packages can have . in their name
45zooko@zooko.com**20101114082643
46 Ignore-this: c42cd92da320375d2dd72018ad6c1d0b
47]
48[setup: upgrade bundled version of darcsver to 1.7.1 to regain compatibility with Python 2.4
49zooko@zooko.com**20101114082620
50 Ignore-this: 9bc9dd064e239003c1a94f1ba409ac96
51]
52[setup: specify that the version file must go into src/allmydata/_version.py . fixes #1259
53zooko@zooko.com**20101114074040
54 Ignore-this: 9d5c58bc7faed738570b4b8529b129d5
55]
56[setup: upgrade bundled darcsver from 1.6.3 to 1.7.0
57zooko@zooko.com**20101114073954
58 Ignore-this: 1f930652a20d818d44c0cb863856dad5
59 ref #1259, we're going to use its 'versionfiles' setup() keyword argument to specify where to write the version file.
60 Remember, we have to bundle darcsver to work-around http://bitbucket.org/tarek/distribute/issue/55/revision-control-plugin-automatically-installed-as-a-build-dependency-is-not-present-when-another-build-dependency-is-being
61]
62[setup: David-Sarah's new gen-package-table.py plus my patch to put the newer versions of Python first
63zooko@zooko.com**20101114073532
64 Ignore-this: 249c4db261a1deb14749ef778f1f7c7a
65 fixes #1247
66]
67[setup: test whether the build system prefers binary dists which are new enough over source dists which are even newer
68zooko@zooko.com**20101113152822
69 Ignore-this: d56b67475aec5a7aa901dba7bc59083c
70 ref: #1233
71]
72[tahoe_mv.py: use do_http, not urllib.openurl, in order to avoid connecting to the webapi server via a proxy. refs #1253
73david-sarah@jacaranda.org**20101110005336
74 Ignore-this: 418b9a1c7873250a35592d3463506540
75]
76[test_system.py: test for 'tahoe mv' with the http_proxy and HTTP_PROXY variables set. refs #1253
77david-sarah@jacaranda.org**20101110033649
78 Ignore-this: a75557ba7589352768d227e2cd37299e
79]
80[docs: NEWS: merge two additions
81zooko@zooko.com**20101111055851
82 Ignore-this: 13105496bb418ebbd570ba68ef347f2
83]
84[test_client.py: change overzealous use of failUnlessReallyEqual on integers back to failUnlessEqual.
85david-sarah@jacaranda.org**20101109230816
86 Ignore-this: 6488663c0c9212f548f8b498c42c9d30
87]
88[misc/build_helpers/show-tool-versions.py: look for zetuptoolz egg in the current directory, not the parent.
89david-sarah@jacaranda.org**20101107233615
90 Ignore-this: 6e7081a69584d07d5c38fc9de6749254
91]
92[misc/build_helpers/show-tool-versions.py: if we can't import pkg_resources, insert the bundled zetuptoolz egg onto sys.path.
93david-sarah@jacaranda.org**20101106234404
94 Ignore-this: adb1bd5800129a6c9596f89620146f85
95]
96[setup.py: fix a bug in the check for whether we are running 'trial' or 'test', that affected zooko's test for #1233. refs #1233
97david-sarah@jacaranda.org**20101105235415
98 Ignore-this: bc79517853f39301218d7d840de830f2
99]
100[misc/build_helpers/gen-package-table.py: allow all lowercase letters except 'w' (for example, 'c' and 'dev') in package versions.
101david-sarah@jacaranda.org**20101105154756
102 Ignore-this: 1189fad2b0d210e2f827bb710f532f7e
103]
104[misc/build_helpers/run_trial.py: minor refactoring -- make variable names consistent between run_trial.py and test_runner.py
105david-sarah@jacaranda.org**20101104012027
106 Ignore-this: 443fb127ad39015fb2d82bd1beacfa66
107]
108[NEWS: entry for #1242 (tilde expansion in 'tahoe backup --exclude-from'). refs #1242
109david-sarah@jacaranda.org**20101104011915
110 Ignore-this: 1c85e7c74f5a48b4cdae5aa073c6b9fb
111]
112[setup: remove separate licensing declaration
113zooko@zooko.com**20101111044530
114 Ignore-this: 2992189602af3ef0a420a1b7273f6344
115 Whenever Free Software/Open Source legal folks are examining the Tahoe-LAFS source code, it seems like there has to be a discussion and documentation about every single licensing declaration. Since this one is (was) permissive, then you would think it could be avoided, but I'm not betting on it. We would probably have to install a copy of the MIT licence into every one of the "copyright" files under the debian/ subdirectory, for example. So: let's just let hashbasedsig.py be licensed the same way as the rest of Tahoe-LAFS.
116]
117[docs: fix error in .rst formatting introduced by renaming Tahoe to Tahoe-LAFS in a header
118zooko@zooko.com**20101111044344
119 Ignore-this: 6f6823891dd22d99e38ebeb9aa57b298
120]
121[docs: NEWS: refs #1253
122zooko@zooko.com**20101111044118
123 Ignore-this: 23d1cfbd2d43a68ca496958b55e4688f
124]
125[docs: added permissions to avoid licence-incompatibility with other Free/Open Source licences
126zooko@zooko.com**20101111043926
127 Ignore-this: 190cff2d0f9e910072bc0705e5e9844c
128]
129[setup: fix gen-package-table to allow the "_r$REV" version numbers of packages
130zooko@zooko.com**20101104073944
131 Ignore-this: b6b72b0d2a207929d4ffb0cfc988e8ee
132]
133[misc/build_helpers/gen-package-table.py: fix missing 'r's (meant to delete CRs :-)
134david-sarah@jacaranda.org**20101103043718
135 Ignore-this: ffa25a18637b6165725a49a79bfa6cc
136]
137[add misc/build_helpers/gen-package-table.py. refs #1247
138david-sarah@jacaranda.org**20101103043328
139 Ignore-this: 3185c869d98d6fecbae4bcc6b74a810d
140]
141[tests: make test-with-fake-pkg's unacceptably-old fake pycryptopp be 0.5.13 instead of 0.5.17, since 0.5.17 is acceptably new on non-x86 archs
142zooko@zooko.com**20101102053357
143 Ignore-this: a400f6f73c7574f2b2266547b0e7b051
144 Also move the fakepkgs directory to be in misc/build_helpers/ instead of in the base of the source tree.
145]
146[test_runner.py: fix test failure in test_the_right_code after applying zooko's change to test-with-fake-pkg.py
147david-sarah@jacaranda.org**20101102035905
148 Ignore-this: 71b467615ae7dcdfbf84049e60a08933
149]
150[setup: FreeStorm's WinXP-x86-py2.6 buildslave has informed us that there is yet a fourth way to spell "i386" in Python
151zooko@zooko.com**20101101052142
152 Ignore-this: 732892975c19f7fd18caeb071f09ef7
153]
154[setup: add platform.machine() to show-tool-versions, because FreeStorm WinXP builder apparently thinks that its platform.machine() is not one of ['i386', 'x86_64', 'amd64', ''], since it is requiring pycryptopp >= 0.5.14 instead of pycryptopp >= 0.5.20
155zooko@zooko.com**20101101042721
156 Ignore-this: 322a3e5af9785ebca3452f3937ce47a4
157]
158[edit docs for English usage, rename "Tahoe" to "Tahoe-LAFS" in docs/configuration.rst, rename a variable in bin/tahoe-script.template for clarity, update François's CREDITS entry
159zooko@zooko.com**20101101042602
160 Ignore-this: d192c4c9660b1b9173db19d0e533dc22
161]
162[allmydata/__init__.py: move the call to require_auto_deps() to the top again, since the [4784] patch turned out not to be the cause of the failure on the 'mm netbsd5' buildslave.
163david-sarah@jacaranda.org**20101101003316
164 Ignore-this: 879a5188ff2529fb755b6e594c59aeb2
165]
166[allmydata/__init__.py: put the _auto_deps.require_auto_deps() call back in exactly the same place it was prior to [4784].
167david-sarah@jacaranda.org**20101031174649
168 Ignore-this: c5f4fbb2c444d7b05b1d30a199b6178f
169]
170[allmydata/__init__.py: suppress a DeprecationWarning for the sha module on importing pycrypto.
171david-sarah@jacaranda.org**20101031160636
172 Ignore-this: 414d55a0da432cfb0d65329a88e13396
173]
174[misc/build_helpers/run_trial.py: fix another typo in last patch.
175david-sarah@jacaranda.org**20101031160332
176 Ignore-this: 61131c5775a2393b6862f76b7bc222f
177]
178[misc/build_helpers/run_trial.py: fix typo in last patch.
179david-sarah@jacaranda.org**20101031155215
180 Ignore-this: a2fbecf858c0a399e938d4f1ade7329b
181]
182[allmydata/__init__.py: call require_auto_deps() after importing nevow and twisted, reverting change in [4784]. Also fix a missing 'warnings.filters.pop()'.
183david-sarah@jacaranda.org**20101031153828
184 Ignore-this: 8a5cd7798674d56868e9c333a77a4ac2
185]
186[misc/build_helpers/run_trial.py: fix false positive on directory check that can occur when running run_trial from test-with-fake-pkg manually.
187david-sarah@jacaranda.org**20101031153613
188 Ignore-this: 7d4a0758a305cbfdd296570a9c1a88d2
189]
190[allmydata.__init__.py: temporary hack to debug failure on midnightmagic's buildslave
191david-sarah@jacaranda.org**20101031055003
192 Ignore-this: 2ac28b2f19a436a374399b4c59d29cc7
193]
194[NEWS: entries for #1190 and #1212, and minor cleanups. refs #1190, #1212
195david-sarah@jacaranda.org**20101031051426
196 Ignore-this: c318dff69296ae1e1a897752b5221870
197]
198[tahoe backup: perform tilde expansion in exclude-from filename (version 2). fixes #1241
199david-sarah@jacaranda.org**20101031035231
200 Ignore-this: 65e6cd2247dd8d1fc025758d740708c0
201]
202[NEWS: add news entry for #1223
203Francois Deppierraz <francois@ctrlaltdel.ch>**20101030111130
204 Ignore-this: 6b6afd4b0f0527a3c9784c1db95d083
205]
206[NEWS: add a NEWS entry about bug #1045
207Francois Deppierraz <francois@ctrlaltdel.ch>**20101030101351
208 Ignore-this: 7e758afbbd0f1d22a5d0b4fc38661c1d
209]
210[setup: run require_auto_deps() before attempting to import any deps in __init__.py
211zooko@zooko.com**20101030081035
212 Ignore-this: ffcaf2450628543e020e9919e455f691
213 For one thing, this makes missing-dependency failures into DistributionNotFound errors instead of ImportErrors, which might be more useful to the user. For another thing, if someone is using distributions that were installed with --multi-version, then they might be not importable until after require_auto_deps() has been run. (The docs claim that this would be the case, but we don't have an example of this happening at this time.)
214]
215[setup: show-tool-versions: emit module and __version__ information even when module name != distribution (package) name, and add TwistedCore, TwistedWeb, and TwistedConch
216zooko@zooko.com**20101030070233
217 Ignore-this: 3df19910090d44502ddeeef5d9c29a7
218]
219[misc/build_helpers/test-with-fake-pkg.py: look for eggs in the parent of the src directory. refs #1190
220david-sarah@jacaranda.org**20101030034303
221 Ignore-this: 4a3cf286272cdb5d06aac15fb5998b33
222]
223[scripts/runner.py: fix unused import of allmydata. refs #1190
224david-sarah@jacaranda.org**20101030003149
225 Ignore-this: b2fc67f6192ea7ccf8a5ad010ce74a64
226]
227[scripts/runner.py: remove pkg_resources.require() calls. These are at best redundant because we have already called _auto_deps.require_auto_deps() (from allmydata.__init__) at that point, and they are causing failure of the test-from-prefixdir step on some buildslaves. refs #1190
228david-sarah@jacaranda.org**20101029235328
229 Ignore-this: e00dee63acc7b76a5755025d75abf524
230]
231[misc/build_helpers/run_trial.py: look for zetuptoolz egg in the parent directory, not the cwd of run_trial. refs #1190
232david-sarah@jacaranda.org**20101029230329
233 Ignore-this: 1596fb8c290d1c706f079701b1857db8
234]
235[bundled zetuptoolz: if __main__.__requires__ exists then do not add packages to the working set if they provide an incompatible version of a package. Also put a complete __requires__ listing the transitive closure of dependencies at the beginning of generated scripts, rather than a shallow __requires__ specifying only the application version. refs #1190
236david-sarah@jacaranda.org**20101029223111
237 Ignore-this: a95f1967884340e53bf3adf90db40cfc
238]
239[setup.py, misc/build_helpers/run_trial.py: use undocumented __requires__ variable to cause setuptools/zetuptoolz to put the correct versions of dependencies on sys.path. Also ensure that run_trial adds the bundled zetuptoolz egg at the start of sys.path if present. Make the source directory comparison work correctly for the test-with-fake-pkg build step. refs #1190
240david-sarah@jacaranda.org**20101029222825
241 Ignore-this: 8b09366eb6ce3d55c7db5239077a0fac
242]
243[test_runner.py: fix error in BinTahoe.test_version_no_noise introduced by last patch. refs #1235
244david-sarah@jacaranda.org**20101029221123
245 Ignore-this: 4bf21ea34768e8e6adf104e56f939fd0
246]
247[test_runner.py: also allow 'from pkg_resources import load_entry_point' as noise. refs #1235.
248david-sarah@jacaranda.org**20101029204246
249 Ignore-this: a47440aa2cdd29ce55ac7c6c7f4bcaf2
250]
251[test_runner.py: if the only noise is 'UserWarning: Unbuilt egg for setuptools', skip instead of failing the no_noise tests. This version avoids 'any' to be compatible with Python < 2.5. refs #1235.
252david-sarah@jacaranda.org**20101029191804
253 Ignore-this: 83ca1543fc9673e664a8eeefe1eba429
254]
255[NEWS: clarify (strengthen) description of what backdoors.rst declares, and add bugfix entries for 'tahoe cp' and Windows console bugs. refs #1216, #1224, #1232
256david-sarah@jacaranda.org**20101028180046
257 Ignore-this: 1c3eef3cd353b06b6ee00ce87c5ef59a
258]
259[windows/fixups.py: limit length of string passed in a single call to WriteConsoleW. fixes #1232.
260david-sarah@jacaranda.org**20101027021636
261 Ignore-this: fbd99e0d22493974696d37925d97c7d6
262]
263[scripts/tahoe_backup.py: oops, fix missing import, thanks pyflakes
264Brian Warner <warner@lothar.com>**20101029094223
265 Ignore-this: 285c35af824935641a5be35c008b080c
266 
267 test_cli.py: hush minor pyflakes complaint
268]
269[mutable/servermap.py: update comment. Closes #1231.
270Brian Warner <warner@lothar.com>**20101029091424
271 Ignore-this: 80bf854123fc254e097a81b82bdf4990
272]
273[tahoe_cp.py: Don't call urllib.quote with an Unicode argument, fix #1224
274Brian Warner <warner@lothar.com>**20101029084520
275 Ignore-this: 5524722d5e5babbb73ca0969d54967f6
276 tahoe_backup.py: Fix another (potential) occurrence of calling urllib.quote()
277 with an Unicode parameter
278]
279[fix #1223, crash+inefficiency during repair due to read overrun
280Brian Warner <warner@lothar.com>**20101029082036
281 Ignore-this: e6aa0295ad254544da3b5cc41b33d862
282 
283 * repairer (really the uploader) reads beyond end of input file (Uploadable)
284 * new-downloader does not tolerate overreads
285 * uploader does lots of tiny reads (inefficient)
286 
287 This fixes the last two. The uploader still does a single overread at the end
288 of the input file, but now that's ok so we can leave it in place. The
289 uploader now expects the Uploadable to behave like a normal disk
290 file (reading beyond EOF will return less data than was asked for), and now
291 the new-downloadable behaves that way.
292]
293[make ResponseCache smarter to avoid memory leaks: don't record timestamps, use DataSpans to merge entries, and clear the cache when we see a new seqnum. refs #1045, #1229
294david-sarah@jacaranda.org**20101027043302
295 Ignore-this: 88fd6fba7f35a2f8af1693b92718f5f3
296]
297[add misc/build_helpers/test-with-fake-pkg.py. refs #1190
298david-sarah@jacaranda.org**20101029025150
299 Ignore-this: 995f220962708f1bad83092161130f67
300]
301[startstop_node.py: pyflakes import fix. refs #1190
302david-sarah@jacaranda.org**20101028014805
303 Ignore-this: 369ef5022c8ee5a0d8341af01553bcef
304]
305['tahoe start': use import+call rather than find+spawn
306"Brian Warner <warner@lothar.com>"**20101027061342
307 
308 This removes the need to use a locally-built (dependency) bin/twistd, and
309 removes a big chunk of behavior differences between unix and windows. It
310 also happens to resolve the "client node probably started" uncertainty.
311 Might help with #1190, #602, and #71.
312]
313[docs/known_issues.rst: Add section on traffic analysis. Fix URL for current version of file.
314david-sarah@jacaranda.org**20101024234259
315 Ignore-this: f3416e79d3bb833f5118da23e85723ad
316]
317[test_mutable.py: add test for ResponseCache memory leak. refs #1045, #1129
318david-sarah@jacaranda.org**20101024193409
319 Ignore-this: 3aee7f0677956cc6deaccb4d5b8e415f
320]
321[test_encodingutil.py: test_argv_to_unicode modified the wrong encoding variable. fixes #1214
322david-sarah@jacaranda.org**20101023035810
323 Ignore-this: e5f1f849931b96939facc53d93ff61c5
324]
325[docs/running.html: fix missing end-quote, and change frontends/ doc references to .rst.
326david-sarah@jacaranda.org**20101024171500
327 Ignore-this: 47c645a6595e1790b1d1adfa71af0e1d
328]
329[docs/running.html: 'tahoe create-client' now creates a node with storage disabled. Also change configuration.txt references to configuration.rst.
330david-sarah@jacaranda.org**20101024170431
331 Ignore-this: e5b048055494ba3505bb8a506610681c
332]
333[docs: fix tab-vs-spaces, make some CLI examples <tt>/"literal", wrap some to
334Brian Warner <warner@lothar.com>**20101015060606
335 Ignore-this: eae08bdf0afb19a2fbf41c31e70a8122
336 80-cols, remove spurious whitespace. Add rst2html.py rule to Makefile.
337]
338[doc: add explanation of the motivation for the surprising and awkward API to erasure coding
339zooko@zooko.com**20101015060202
340 Ignore-this: 428913ff6e1bf5b393deffb1f20b949b
341]
342[setup: catch and log ValueError from locale.getdefaultlocale() in show-tool-versions.py
343zooko@zooko.com**20101015054440
344 Ignore-this: 827d91490562c32ed7cf6526dfded773
345 I got a bug report from Mathias Baert showing that locale.getdefaultlocale() raises an exception on his Mac OS X system. Heh.
346]
347[docs: update how-to-make-a-release doc with a few tweaks from the 1.8.0 process
348zooko@zooko.com**20101015054413
349 Ignore-this: ca5e9478531a3393792ae283239549dd
350]
351[docs: update NEWS ref: #1216
352zooko@zooko.com**20101015053719
353 Ignore-this: 2e0b92e4145d667cdf075e64b7965530
354]
355[docs: add Peter Secor, Shawn Willden, and Terrell Russell as signatories to docs/backdoors.rst
356zooko@zooko.com**20101015053242
357 Ignore-this: c77adf819d664f673e17c4aaeb353f33
358]
359[docs: convert all .txt docs to .rst thanks to Ravi Pinjala
360zooko@zooko.com**20101015052913
361 Ignore-this: 178a5122423189ecfc45b142314a78ec
362 fixes #1225
363]
364[docs: add statement on our refusal to insert backdoors
365zooko@zooko.com**20101006051147
366 Ignore-this: 644d308319a7b80c4434bdff9760404a
367]
368[setup: add --multi-version to the "setup.py develop" command-line
369zooko@zooko.com**20101005182350
370 Ignore-this: 709155cc21caff29826b8d41a8c8d63d
371 fixes #530. I earlier tried this twice (see #530 for history) and then twice rolled it back due to some problems that arose. However, I didn't write down what the problems were in enough detail on the ticket that I can tell today whether those problems are still issues, so here goes the third attempt. (I did write down on the ticket that it would not create site.py or .pth files in the target directory with --multi-version mode, but I didn't explain why *that* was a problem.)
372]
373[setup: use execfile to access _auto_deps.py in its proper location of src/allmydata/ instead of copying it into place when setup.py is executed
374zooko@zooko.com**20100906055714
375 Ignore-this: c179b42672d775580afad40121f86812
376]
377[trivial: M-x whitespace-cleanup
378zooko@zooko.com**20100903144712
379 Ignore-this: 1bb764d11ac69b4a35ea091cfb13158a
380]
381[minor: remove unused interface declaration, change allmydata.org to tahoe-lafs.org in email address, fix wording in relnotes.txt
382zooko@zooko.com**20100930153708
383 Ignore-this: a452969228afed2774de375e29fa3048
384]
385[immutable/repairer.py: don't use the default happiness setting when repairing
386Kevan Carstensen <kevan@isnotajoke.com>**20100927200102
387 Ignore-this: bd704d9744b970849da8d46a16b8089a
388]
389[NEWS: note dependency updates to pycryptopp and pycrypto.
390david-sarah@jacaranda.org**20100924191207
391 Ignore-this: eeaf5c9c9104f24c450c2ec4482ac1ee
392]
393[TAG allmydata-tahoe-1.8.0
394zooko@zooko.com**20100924021631
395 Ignore-this: 494ca0a885c5e20c883845fc53e7ab5d
396]
397Patch bundle hash:
398038c6ab028f57ff4eac75f6bf565a299405bc606