Itamar Turner-Trauring
84a6db3e88
Merge remote-tracking branch 'origin/master' into 4022-freezing-test
2023-05-03 16:43:52 -04:00
Itamar Turner-Trauring
f1f3c122da
Merge pull request #1292 from tahoe-lafs/4015-more-linting
...
More linting, using ruff
Fixes ticket:4015
2023-05-02 13:29:02 -04:00
Itamar Turner-Trauring
22715abc85
This is fine.
2023-05-02 12:17:55 -04:00
Itamar Turner-Trauring
9f78fd5c7f
Use even fewer nodes.
2023-05-02 12:11:31 -04:00
Itamar Turner-Trauring
d4f2038fd1
Rearrange nodes so it's possible to create even fewer.
2023-05-02 12:11:23 -04:00
Itamar Turner-Trauring
8fa89bd985
Run a little faster.
2023-05-02 12:05:40 -04:00
Itamar Turner-Trauring
5c2f18dfec
Set a higher timeout.
2023-05-02 12:03:14 -04:00
Itamar Turner-Trauring
57b93b2230
Merge remote-tracking branch 'origin/master' into 4015-more-linting
2023-05-01 12:54:51 -04:00
Itamar Turner-Trauring
bc2506c3e2
Merge remote-tracking branch 'origin/master' into 3999.structure-config-manipulation
2023-05-01 12:52:18 -04:00
Itamar Turner-Trauring
6d961eada9
Merge pull request #1289 from tahoe-lafs/4012.add-timeout-to-http-client
...
Add timeout to the blocking http client
Fixes ticket:4012
2023-04-27 09:13:44 -04:00
Itamar Turner-Trauring
f9a1eedaea
Make timeout optional, enable it only for integration tests.
2023-04-25 12:31:37 -04:00
Itamar Turner-Trauring
558e3bf797
Fix unnecessary conversion.
2023-04-25 08:46:57 -04:00
Itamar Turner-Trauring
ebed5100b9
Switch to longer timeout so it's unlikely to impact users.
2023-04-25 08:16:12 -04:00
Itamar Turner-Trauring
5da5a82a8c
Get rid of default mutable arguments.
2023-04-17 13:08:21 -04:00
Itamar Turner-Trauring
2d81ddc297
Don't call str() on bytes.
2023-04-14 11:15:47 -04:00
Itamar Turner-Trauring
2916984114
More modernization.
2023-04-14 10:29:25 -04:00
Itamar Turner-Trauring
1823dd4c03
Switch to a slightly larger block size.
2023-04-14 10:24:00 -04:00
Itamar Turner-Trauring
67702572a9
Do a little modernization.
2023-04-14 10:22:14 -04:00
Itamar Turner-Trauring
d7ee1637df
Set a timeout.
2023-04-14 10:22:06 -04:00
Itamar Turner-Trauring
464b476190
Work on 3.8.
2023-04-13 13:11:17 -04:00
Itamar Turner-Trauring
af845a40c6
Fix type annotations, removing Deferred in particular.
2023-04-13 09:38:33 -04:00
meejah
175473df40
longer timeouts, forget less
2023-04-13 00:37:32 -06:00
meejah
9472841c39
enable tor, i2p services
2023-04-12 23:01:28 -06:00
Itamar Turner-Trauring
840ed0bf47
Unused imports.
2023-04-12 17:04:00 -04:00
Itamar Turner-Trauring
174609116e
Merge pull request #1284 from tahoe-lafs/3880-http-storage-logging
...
HTTP storage logging, part 1
Fixes ticket:3880
2023-04-12 17:00:57 -04:00
Itamar Turner-Trauring
3997eaaf90
Fix type annotations.
2023-04-12 17:00:31 -04:00
Itamar Turner-Trauring
2a7616e0be
Get tests passing again.
2023-04-12 16:43:46 -04:00
Itamar Turner-Trauring
cebf62176e
WIP add logging to decode_cbor.
2023-04-10 11:40:59 -04:00
Itamar Turner-Trauring
68f9243323
Merge branch '3880-http-storage-logging' into 4005-more-http-storage-logging
2023-04-10 11:31:04 -04:00
Itamar Turner-Trauring
4d4649f5c2
Apply suggestions from code review
...
Co-authored-by: Jean-Paul Calderone <exarkun@twistedmatrix.com>
2023-04-10 11:28:26 -04:00
Jean-Paul Calderone
590b20431a
Merge pull request #1282 from exarkun/4003.test_connection_status-demock
...
Remove `mock` use from allmydata/test/test_connection_status.py
Fixes: ticket:4003
2023-04-03 12:18:05 -04:00
Itamar Turner-Trauring
e19aeb5aea
Correct the annotation.
2023-04-03 11:40:48 -04:00
Itamar Turner-Trauring
5e3fa04a3a
Reformat with black.
2023-04-03 11:30:22 -04:00
Itamar Turner-Trauring
57ec669e1e
Add logging for request().
2023-04-03 11:29:57 -04:00
Itamar Turner-Trauring
3b3ea5409c
Type says we should only pass in DecodedURL.
2023-04-03 11:26:08 -04:00
Itamar Turner-Trauring
41939e2b28
Add some type annotations.
2023-04-03 11:11:24 -04:00
Itamar Turner-Trauring
b81fad2970
Make sure tests have the same error testing infrastructure as the real thing.
2023-04-03 10:37:49 -04:00
Jean-Paul Calderone
ecfa76ac32
Python 3.8 compatibility
2023-03-28 13:22:08 -04:00
Itamar Turner-Trauring
d36adf33a4
Refactor; failing tests for some reason.
2023-03-28 13:06:43 -04:00
Itamar Turner-Trauring
e8c72e6753
Not sure if per method logging is worth it, will start from assumption that HTTP
...
logging is enough.
2023-03-28 12:55:41 -04:00
Itamar Turner-Trauring
80d8e5b465
The function should return a coroutine.
2023-03-28 11:13:21 -04:00
Jean-Paul Calderone
3ea9e97606
Python 3.8 compatibility
2023-03-28 09:01:03 -04:00
Jean-Paul Calderone
6d4278b465
Factor some repetition out of the tests
2023-03-28 08:53:21 -04:00
Jean-Paul Calderone
8e63fe2fdd
Remove the unused mock import
2023-03-28 08:52:55 -04:00
Jean-Paul Calderone
9a8430c90f
Remove porting boilerplate
2023-03-28 08:52:44 -04:00
Jean-Paul Calderone
32cd54501d
Pass a time function instead of patching the global
2023-03-28 08:52:31 -04:00
Jean-Paul Calderone
6b7ea29d88
use foolscap.reconnector.Reconnector where one is required
...
Unfortunately we need to touch a private attribute directly to shove our
expected info into it. This isn't so bad though. Foolscap isn't moving much
and we're not touching anything complex, just setting a simple model
attribute.
2023-03-28 08:40:25 -04:00
Jean-Paul Calderone
e2c6cc49d5
use foolscap.info.ConnectionInfo where one is required
...
It's *right* there. Just use it!
2023-03-28 08:37:22 -04:00
Jean-Paul Calderone
2f106aa02a
use foolscap.reconnector.ReconnectionInfo where one is required
...
It's *right* there. Just use it!
2023-03-28 08:35:31 -04:00
Itamar Turner-Trauring
bd7c61cc5c
Split up the state management logic from the server pinging logic.
2023-03-27 16:58:15 -04:00