9092 Commits

Author SHA1 Message Date
Itamar Turner-Trauring
5889b80332 assert_ has been removed in Python 3.12 2023-11-15 12:15:34 -05:00
Itamar Turner-Trauring
ffafb5d877 Update to work with newer Eliot 2023-11-15 12:15:28 -05:00
Itamar Turner-Trauring
def7014c79 json dumping doesn't like keys that are bytes (not sure how this ever worked) 2023-11-15 12:15:06 -05:00
Itamar Turner-Trauring
ffe0979ad5 fail* methods have been removed in 3.12 (deprecated since 3.1!) 2023-11-15 12:14:47 -05:00
Itamar Turner-Trauring
4b75b7c6e8 Work with newer versions of Eliot 2023-11-15 12:14:38 -05:00
Itamar Turner-Trauring
22192b5e09 Get rid of eliot patching that's not relevant to Python 3 2023-11-15 11:00:58 -05:00
Itamar Turner-Trauring
134bcd7dd0 We're not support Python 2 anymore, and future breaks on 3.12 (for now) when
standard_library is patched.
2023-11-15 10:54:27 -05:00
Itamar Turner-Trauring
20cfe70d48 Switch defer_to_thread() API to hopefully be harder to screw up. 2023-10-19 13:51:16 -04:00
Itamar Turner-Trauring
303e45b1e5 Expand docs 2023-10-19 11:15:06 -04:00
Itamar Turner-Trauring
bab97cf319 Document constraints. 2023-10-19 11:12:44 -04:00
Itamar Turner-Trauring
5d896e8035 Just do whole thing in one thread job 2023-10-19 11:09:54 -04:00
Itamar Turner-Trauring
7f53f40d76 Don't assume the result is immediately available 2023-10-16 13:25:30 -04:00
Itamar Turner-Trauring
c6b4b9eb29 Merge remote-tracking branch 'origin/master' into 4068-reduce-cpu-in-eventloop-thread 2023-10-16 13:18:24 -04:00
Itamar Turner-Trauring
949b90447a Pacify mypy 2023-10-16 12:45:17 -04:00
Itamar Turner-Trauring
d80cd45474 Tests only ran on Python 2 2023-10-16 12:43:00 -04:00
Itamar Turner-Trauring
c78d7b6134 Merge remote-tracking branch 'origin/master' into 4068-reduce-cpu-in-eventloop-thread 2023-10-16 11:46:02 -04:00
Itamar Turner-Trauring
040bb53851 Make it optional 2023-10-16 11:45:40 -04:00
Itamar Turner-Trauring
72041c0a8c More reasonable defaults 2023-10-16 11:44:29 -04:00
Itamar Turner-Trauring
07a1288ab9 Run in thread 2023-10-16 11:41:07 -04:00
Itamar Turner-Trauring
6e93b12cb5 Run in thread pool 2023-10-16 11:36:41 -04:00
Itamar Turner-Trauring
daec717903 Lints 2023-10-16 11:27:08 -04:00
Itamar Turner-Trauring
cb83b08923 Decouple from reactor 2023-10-16 11:16:10 -04:00
Itamar Turner-Trauring
b60e53b3fb Run blocking code in a thread 2023-10-16 10:38:05 -04:00
Itamar Turner-Trauring
2ccdd183c1 Just always run in thread 2023-10-16 10:10:00 -04:00
Itamar Turner-Trauring
d3ca02fa3f Run blocking operations in thread pool 2023-10-16 10:07:36 -04:00
Itamar Turner-Trauring
08e8dd308f Detect blocked threads. 2023-10-16 09:52:02 -04:00
Jean-Paul Calderone
47c9a95d42
Merge pull request #1338 from exarkun/4066.hashtree-test-vectors
Add HashTree-related test vectors
2023-10-09 11:16:10 -04:00
Itamar Turner-Trauring
1743d51bbf Run key generation in a thread. 2023-09-25 15:41:01 -04:00
Itamar Turner-Trauring
ef20422bfe
Merge pull request #1333 from tahoe-lafs/4063-pypy-test-failure
Make tests pass again

Fixes ticket:4063
2023-09-13 09:48:17 -04:00
Jean-Paul Calderone
d6b38bc7a2 test vectors 2023-09-13 09:26:35 -04:00
Itamar Turner-Trauring
9d018e1876
Merge pull request #1330 from tahoe-lafs/4047.test-foolscap-to-http-upgrade
Test foolscap to http upgrade

Fixes ticket:4047
2023-09-06 09:54:21 -04:00
Itamar Turner-Trauring
7d7ca29e3d Work around Hypothesis complaint about differing executors due to subclassing.
See https://hypothesis.readthedocs.io/en/latest/settings.html#health-checks
2023-09-05 10:14:10 -04:00
Itamar Turner-Trauring
45e201a282
Apply suggestions from code review
Co-authored-by: Jean-Paul Calderone <exarkun@twistedmatrix.com>
2023-09-05 09:33:44 -04:00
Jean-Paul Calderone
df491de4ee Add two more cases to the test vector 2023-08-22 09:01:42 -04:00
Jean-Paul Calderone
50ce8abf9f adapt the existing case to a multi-case structure 2023-08-22 08:50:27 -04:00
Itamar Turner-Trauring
152cadf543 Less duplication, more accuracy in format. 2023-08-17 09:06:32 -04:00
Itamar Turner-Trauring
792b9b4441 Merge remote-tracking branch 'origin/master' into 4047.test-foolscap-to-http-upgrade 2023-08-16 10:21:07 -04:00
Itamar Turner-Trauring
28f6902b1f Merge remote-tracking branch 'origin/master' into 4041 2023-08-16 10:11:01 -04:00
Itamar Turner-Trauring
6e3d617a81 Merge branch '4041' into 4047.test-foolscap-to-http-upgrade 2023-08-16 09:47:08 -04:00
Itamar Turner-Trauring
4bffd567c3 Better docstring. 2023-08-16 09:45:10 -04:00
meejah
ad44958f02 more kinds of whitespace 2023-08-12 00:35:49 -06:00
meejah
a5b95273d7 typing is .. good? 2023-08-11 23:47:24 -06:00
meejah
356a1d0f79 don't know why dict_keys are so confusing to mypy 2023-08-11 22:01:21 -06:00
meejah
ffa589d6f8 import error 2023-08-11 21:19:02 -06:00
meejah
b751a3937a Merge branch '3899.failed-server' of github.com:meejah/tahoe-lafs into 3899.failed-server 2023-08-11 21:18:10 -06:00
meejah
c27b330984 don't need fallback 2023-08-11 19:18:23 -06:00
meejah
375ee54c80
typing
Co-authored-by: Jean-Paul Calderone <exarkun@twistedmatrix.com>
2023-08-11 09:08:19 -06:00
meejah
2e76d554e2
don't explicitly drop return
Co-authored-by: Jean-Paul Calderone <exarkun@twistedmatrix.com>
2023-08-11 09:08:03 -06:00
meejah
a0769f59dc
naming
Co-authored-by: Jean-Paul Calderone <exarkun@twistedmatrix.com>
2023-08-11 09:07:18 -06:00
meejah
c03076fe21
more robust comparison
Co-authored-by: Jean-Paul Calderone <exarkun@twistedmatrix.com>
2023-08-11 09:07:00 -06:00