Sajith Sasidharan
199fbfcc1c
Return error pages when an exception is raised in filenode
2020-09-21 13:24:01 -04:00
Itamar Turner-Trauring
40b4244146
Port to Python 3.
2020-09-21 13:21:19 -04:00
Itamar Turner-Trauring
6fe68c792c
Tests pass on Python 2 and 3.
2020-09-21 13:21:19 -04:00
Itamar Turner-Trauring
0cee40c009
Even more progress towards test_upload on Python 3.
2020-09-21 13:21:19 -04:00
Itamar Turner-Trauring
125a6855d6
More progress towards test_upload on Python 3.
2020-09-21 13:21:19 -04:00
Itamar Turner-Trauring
9f00343478
Some progress towards test_upload running on Python 3.
2020-09-21 13:21:19 -04:00
Sajith Sasidharan
c674198074
Rearrage imports
2020-09-21 13:03:51 -04:00
Itamar Turner-Trauring
139bcb1500
Merge pull request #814 from tahoe-lafs/3419.test-encode-python-3-trying-again
...
Port test_encode to Python 3
Fixes ticket:3419
2020-09-21 11:52:34 -04:00
Itamar Turner-Trauring
7c6e3104ac
Merge pull request #812 from tahoe-lafs/3416.test-encode-python-3
...
Port allmydata.test.no_network to Python 3
Fixes ticket:3416
2020-09-21 11:51:34 -04:00
Itamar Turner-Trauring
a4da6c3dbe
Clarify comment.
2020-09-21 10:35:56 -04:00
Itamar Turner-Trauring
02b4ec8101
Get rid of stray print().
2020-09-21 10:33:16 -04:00
Jean-Paul Calderone
b200d20430
minor cleanups/rearranging
2020-09-18 15:01:53 -04:00
Ross Patterson
52015df7e4
build(make): Add changelog entry for PR
2020-09-18 11:59:40 -07:00
Ross Patterson
d0d11a5444
fix(style): Wrong Python version for codechecks
...
On systems where the default Python is Python 3 (such as on recent Debian/Ubuntu
versions), then `$ tox -e codechecks` has a ton of failures related to Python 3
compatibility. This explicitly forces it to use Python 2.7 until we have Python 3
compatibility.
2020-09-18 11:59:40 -07:00
Jean-Paul Calderone
97872118a5
derived function below
2020-09-18 14:50:45 -04:00
Jean-Paul Calderone
8f3a32a22c
news fragment
2020-09-18 14:49:39 -04:00
Jean-Paul Calderone
e648965fb6
Add helpers to implement the desired exception behavior and use them
2020-09-18 14:49:19 -04:00
Itamar Turner-Trauring
8ef2252bd4
Finish porting to Python 3.
2020-09-18 14:32:19 -04:00
Itamar Turner-Trauring
c3bb367a93
Tests pass on Python 3.
2020-09-18 14:31:23 -04:00
Itamar Turner-Trauring
050388ee12
Work better on Python 3, until Nevow is gone.
2020-09-18 14:31:21 -04:00
Jean-Paul Calderone
059bb2250b
Add a BadRequest resource to help with BAD REQUEST
2020-09-18 14:10:09 -04:00
Itamar Turner-Trauring
cb24c3eccf
Merge branch '3416.test-encode-python-3' into 3419.test-encode-python-3-trying-again
2020-09-18 13:38:44 -04:00
Itamar Turner-Trauring
a0ff941fff
Try to fix Python 3 again.
2020-09-18 13:36:54 -04:00
Itamar Turner-Trauring
e75beb6eae
Merge pull request #811 from tahoe-lafs/3415.storage-server-python-3
...
Port allmydata.storage.server to Python 3
Fixes ticket:3415
2020-09-18 13:32:36 -04:00
Jean-Paul Calderone
9682e68528
Merge pull request #805 from jaraco/3408.print-functions
...
Convert print statements to print functions, even when commented
Fixes: ticket:3408
2020-09-18 12:59:44 -04:00
Itamar Turner-Trauring
7b302871e4
Python 2 tests pass again.
2020-09-18 11:41:28 -04:00
Itamar Turner-Trauring
c5ce988c7e
Merge branch '3416.test-encode-python-3' into 3419.test-encode-python-3-trying-again
2020-09-18 11:33:15 -04:00
Itamar Turner-Trauring
1a4744d1f7
Merge branch '3415.storage-server-python-3' into 3416.test-encode-python-3
2020-09-18 11:32:45 -04:00
Ross Patterson
b4b996c3e7
build(make): Cleanup remnant coverage bits
...
I don't see anything in here that I can find references to elsewhere and we're certainly
running test coverage reports in tox and on CI now.
2020-09-17 16:09:53 -07:00
Ross Patterson
51338bd874
build(make): Add targets for running tests
...
Fully parallelize the build of the environments since they tend to be network I/O
bound. Parallelize the run of tests to use all CPU cores.
2020-09-17 16:08:20 -07:00
Itamar Turner-Trauring
02cb451a6b
Fix failing tests.
2020-09-17 16:06:26 -04:00
Itamar Turner-Trauring
3d79793ee8
Try to fix hashutil.
2020-09-17 15:38:08 -04:00
Ross Patterson
d8df630729
build(make): Add missing phony target declarations
...
I also prefer having a `.PHONY: ...` declaration for each phony target, as is done in
the rest of the `./Makefile`, because it makes is easier when removing or refactoring
targets not to forget to also remove or adjust the `.PHONY: ...` declaration.
2020-09-17 12:36:55 -07:00
Ross Patterson
775a3dba33
build(make): Fix missing target name
...
From context, I'm assuming this is just an omission.
2020-09-17 12:33:13 -07:00
Ross Patterson
735ff1e709
build(make): Improve and clarify Makefile org
...
This is opinionated, so I understand if community members disagree and I'm happy to back
this out.
It's conventional (and I prefer) to group variables toward the top of the `./Makefile`
so I've done that.
I also prefer separating task-oriented "phony" targets above any "real" targets (whose
recipes create/update actual build artifacts on the filesystem). The task-oriented
targets tend to be a better starting point for any developers approaching the
`./Makefile` to understand where to get started.
2020-09-17 12:25:34 -07:00
Ross Patterson
da24739c59
build(make): Cleanup unused target
...
AFAIK, prefixing a target with a `.` (aside from the special targets make itself treats
differently) is just to exclude it from being the default target, but the default target
is already defined above this one. Also, it just runs another target which doesn't
exist AFAIKT.
2020-09-17 12:19:35 -07:00
Ross Patterson
7a3320f4bb
build(make): Defensive make settings
...
https://tech.davis-hansson.com/p/make/
Prevents things like silent shell pipeline errors in recipes, unexpected behavior from
undefined variables, etc.
2020-09-17 11:54:49 -07:00
Itamar Turner-Trauring
6c85f392dd
Fix another future newbytes leak that was breaking Foolscap.
2020-09-17 13:39:47 -04:00
Itamar Turner-Trauring
b784f9654c
Merge branch '3415.storage-server-python-3' into 3416.test-encode-python-3
2020-09-17 13:12:46 -04:00
Itamar Turner-Trauring
9818512802
Fix newbytes leak.
2020-09-17 13:10:52 -04:00
Itamar Turner-Trauring
03fd566e2c
Fix flake error.
2020-09-17 12:37:10 -04:00
Itamar Turner-Trauring
cecbc260fa
Fix order.
2020-09-17 11:43:35 -04:00
Itamar Turner-Trauring
498e69c72e
Some progress.
2020-09-16 14:57:55 -04:00
Itamar Turner-Trauring
2588e757e5
Only semi-break the web service.
2020-09-16 14:42:39 -04:00
Itamar Turner-Trauring
833bc72ac3
Merge remote-tracking branch 'origin/master' into 3416.test-encode-python-3
2020-09-16 14:40:40 -04:00
Itamar Turner-Trauring
e8743a607f
Fix failing tests.
2020-09-16 14:37:16 -04:00
Itamar Turner-Trauring
bea1d657f3
Better debug output.
2020-09-16 14:37:11 -04:00
Itamar Turner-Trauring
b4116239b5
Merge remote-tracking branch 'origin/master' into 3415.storage-server-python-3
2020-09-16 11:27:03 -04:00
Itamar Turner-Trauring
4bf79f777e
Merge pull request #806 from tahoe-lafs/3409.allmydata-storage-immutable-python-3
...
Port allmydata.storage.immutable to Python 3
Fixes ticket:3409
2020-09-16 11:26:07 -04:00
Itamar Turner-Trauring
7cb574f7c5
Port to Python 3.
2020-09-16 11:23:11 -04:00