Commit Graph

8898 Commits

Author SHA1 Message Date
Itamar Turner-Trauring
464b476190 Work on 3.8. 2023-04-13 13:11:17 -04:00
Itamar Turner-Trauring
28ff24b3a7 Add logging to immutable creation. 2023-04-13 10:40:35 -04:00
Itamar Turner-Trauring
d05b5788f6 Merge branch '4005-more-http-storage-logging' into 4009-more-logging 2023-04-13 10:35:58 -04:00
Itamar Turner-Trauring
4c2f241361 Add logging for limited_content(). 2023-04-13 10:28:29 -04:00
Itamar Turner-Trauring
e0ca48b707 Add logging to add_or_renew_lease(). 2023-04-13 09:54:36 -04:00
Itamar Turner-Trauring
af845a40c6 Fix type annotations, removing Deferred in particular. 2023-04-13 09:38:33 -04:00
Itamar Turner-Trauring
64dbeeab8f Add logging to get_version(). 2023-04-13 09:33:18 -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
Itamar Turner-Trauring
7838f25bf8 Clean up with simpler idiom. 2023-03-27 14:54:36 -04:00
Itamar Turner-Trauring
0995772b24 Explain why we ignore type check. 2023-03-27 14:54:27 -04:00
Itamar Turner-Trauring
4211fd8525 Revert to old code. 2023-03-27 13:41:30 -04:00
Itamar Turner-Trauring
4a396309d2 Merge remote-tracking branch 'origin/master' into 3880-http-storage-logging 2023-03-27 13:35:30 -04:00
Itamar Turner-Trauring
e7c71e66a3 Merge remote-tracking branch 'origin/master' into 3978-connection-status-http-storage 2023-03-27 10:41:17 -04:00
Itamar Turner-Trauring
ee75bcd26b Fix lint. 2023-03-24 15:20:48 -04:00
Itamar Turner-Trauring
06dc32a6c0 Fix lint. 2023-03-24 15:20:11 -04:00
Itamar Turner-Trauring
6ce53000f0 Fix lint. 2023-03-24 15:19:39 -04:00
Itamar Turner-Trauring
63549c71ef Fix lints, remove some Python 2 junk. 2023-03-24 15:18:46 -04:00
Itamar Turner-Trauring
f5d9947368 Fix lint. 2023-03-24 15:15:51 -04:00
Itamar Turner-Trauring
0d92aecbf3 Fix lint. 2023-03-24 15:14:59 -04:00
Itamar Turner-Trauring
0377f858c2 Correct type. 2023-03-24 15:14:23 -04:00
Itamar Turner-Trauring
0bdea026f0 Fix lint. 2023-03-24 15:13:20 -04:00
Itamar Turner-Trauring
9d45cd85c7 Fix lint. 2023-03-24 15:12:16 -04:00
Itamar Turner-Trauring
1668b2fcf6 Fix lint. 2023-03-24 15:09:11 -04:00
Itamar Turner-Trauring
0c92fe554d Fix lint. 2023-03-24 15:07:22 -04:00
Itamar Turner-Trauring
74e3e27bea Fix lint. 2023-03-24 15:06:27 -04:00
Itamar Turner-Trauring
8d84e8a19f Fix lint. 2023-03-24 12:08:04 -04:00
Itamar Turner-Trauring
3212311bbe Fix lint. 2023-03-24 12:06:49 -04:00
Itamar Turner-Trauring
494a977525 Fix lint. 2023-03-24 12:06:01 -04:00
Itamar Turner-Trauring
aea748a890 Fix lint. 2023-03-24 12:03:43 -04:00
Itamar Turner-Trauring
0e6825709d Fix lints. 2023-03-24 12:03:04 -04:00
Itamar Turner-Trauring
29a66e5158 Fix lint. 2023-03-24 12:01:12 -04:00
Itamar Turner-Trauring
ae29ea2b23 Fix lint, and some Python 3 cleanups. 2023-03-24 11:51:40 -04:00
Itamar Turner-Trauring
0cd197d4d0 Update another instance of List. 2023-03-24 11:46:46 -04:00
Itamar Turner-Trauring
e1839ff30d Fix lints. 2023-03-24 11:45:56 -04:00
Itamar Turner-Trauring
76ecdfb7bc Fix lint. 2023-03-24 11:44:59 -04:00
Itamar Turner-Trauring
958c08d6f5 Lint fix and cleanup. 2023-03-24 11:44:14 -04:00
Itamar Turner-Trauring
eb1cb84455 Lint fix and cleanup. 2023-03-24 11:42:38 -04:00
Itamar Turner-Trauring
56e3aaad03 Lint fix and cleanup. 2023-03-24 11:41:25 -04:00
Itamar Turner-Trauring
33d30b5c80 Type annotations. 2023-03-24 11:20:31 -04:00
Itamar Turner-Trauring
9baafea00e Refactor: simplify code so there are fewer codepaths. 2023-03-24 11:08:17 -04:00
Itamar Turner-Trauring
f0e60a80af Remove unneeded import. 2023-03-24 10:22:52 -04:00
Itamar Turner-Trauring
6659350ff3 Improve type annotations. 2023-03-24 10:18:15 -04:00
Itamar Turner-Trauring
0da059b644 Update the connection status during the initial choice of NURLs. 2023-03-24 10:10:18 -04:00
Jean-Paul Calderone
d92470d233
Merge pull request #1260 from exarkun/great-black-swamp-spec-tweaks
Great black swamp spec tweaks

Fixes: ticket:3986
2023-03-23 07:38:27 -04:00
Jean-Paul Calderone
c49aa44655 Update the raw number and give a reference for interpretation 2023-03-22 09:04:15 -04:00
Itamar Turner-Trauring
264269f409 Better test name. 2023-03-21 11:29:50 -04:00
Itamar Turner-Trauring
14aeaea022 Another todo. 2023-03-21 11:29:19 -04:00
Itamar Turner-Trauring
7ae8b50d14 Async! 2023-03-21 11:26:40 -04:00
Itamar Turner-Trauring
b65bc9dca7 Better explanation. 2023-03-21 11:22:43 -04:00
Itamar Turner-Trauring
e989677319 Pass in a pool instead of pool options. 2023-03-21 11:20:25 -04:00
Jean-Paul Calderone
6a0a895ee8 Encode the reason limit in the implementation as well 2023-03-21 10:39:58 -04:00
Jean-Paul Calderone
c3afab15ed correct version type annotation 2023-03-21 10:39:58 -04:00
Jean-Paul Calderone
48a2d4d31d `Authorization` is the right header field 2023-03-21 10:39:58 -04:00
Jean-Paul Calderone
98a3691891 Add more CDDL to the spec; remove some server version flags from it 2023-03-21 10:39:58 -04:00
Itamar Turner-Trauring
c259bdb033 Merge remote-tracking branch 'origin/master' into 3935-happy-eyeballs 2023-03-20 10:03:22 -04:00
Jean-Paul Calderone
6a4346587c Fix the type annotations 2023-03-17 15:46:27 -04:00
Jean-Paul Calderone
a3ebd21b25 implement retry ourselves, don't depend on tenacity 2023-03-17 15:30:14 -04:00
danielzwlee
2e2bbc1bcf Sync branch with master and resolve merge conflicts
:#	new file:   src/allmydata/util/cputhreadpool.py
2023-03-14 14:49:01 -05:00
Itamar Turner-Trauring
dd07a39399 Don't bother with persistent connections when testing NURLs. 2023-03-14 13:01:10 -04:00
Itamar Turner-Trauring
f8ea650b92 Wait for current loop iteration to finish before moving on to next iteration. 2023-03-14 12:03:11 -04:00
Itamar Turner-Trauring
c97e07dc63
Merge pull request #1263 from tahoe-lafs/3959-more-end-to-end-tests
More end to end tests

Fixes ticket:3959
2023-03-14 11:31:41 -04:00
dlee
1c926aeb86 Add space to return type 2023-03-13 16:23:28 -05:00
dlee
f1be1ca1de Added more elements to export list in wormholetesting.py 2023-03-13 14:53:25 -05:00
dlee
041a634d27 Fix private interface import to test_invite 2023-03-13 13:08:32 -05:00
dlee
61c835c8a0 Added missing space between return type 2023-03-13 11:17:01 -05:00
dlee
74ff8cd080 Per-file configuration for wormholetesting.py moved from inline mypy configuration moved to mypy.ini file 2023-03-13 11:04:52 -05:00
Fon E. Noel NFEBE
f9acb56e82 Fix wrong expected val in assertion
This is a follow up to 7a387a054e

Signed-off-by: Fon E. Noel NFEBE <fenn25.fn@gmail.com>
2023-03-12 00:16:41 +01:00
Fon E. Noel NFEBE
7a387a054e Fix more inverted assertions
Just like in 7c3f6cb4c7
This commit corrects some wronly inverted assertions inside
`test/test_storage.py`

Signed-off-by: Fon E. Noel NFEBE <fenn25.fn@gmail.com>
2023-03-11 23:58:58 +01:00
Fon E. Noel NFEBE
3ae574ddef Merge branch '3917-refactor-test-storage-py' of github.com:Fenn-CS/tahoe-lafs into 3917-refactor-test-storage-py 2023-03-11 20:55:40 +01:00
Fon E. Noel NFEBE
4e6e78f19c Merge branch 'master' into 3917-refactor-test-storage-py 2023-03-11 20:54:12 +01:00
Jean-Paul Calderone
374d2fc499
Merge pull request #1266 from tahoe-lafs/3965.better-max-size
Add more restrictive CBOR content limits to server

Fixes: ticket:3965
2023-03-10 11:13:15 -05:00
Itamar Turner-Trauring
aa18c3418f Merge remote-tracking branch 'origin/master' into 3935-happy-eyeballs 2023-03-10 09:10:02 -05:00