Ryan Barrett
7b0151b0cf
memcache: truncate keys at 250 chars
...
max memcache key len:
https://github.com/memcached/memcached/wiki/Commands#standard-protocol
https://pymemcache.readthedocs.io/en/latest/apidoc/pymemcache.client.base.html
fixes https://console.cloud.google.com/errors/detail/CNPzqYzWg4_TyQE;time=P30D?project=bridgy-federated
2024-07-12 07:50:54 -07:00
dependabot[bot]
e156ce9e12
build(deps): bump grpcio from 1.64.1 to 1.65.0
...
Bumps [grpcio](https://github.com/grpc/grpc ) from 1.64.1 to 1.65.0.
- [Release notes](https://github.com/grpc/grpc/releases )
- [Changelog](https://github.com/grpc/grpc/blob/master/doc/grpc_release_schedule.md )
- [Commits](https://github.com/grpc/grpc/compare/v1.64.1...v1.65.0 )
---
updated-dependencies:
- dependency-name: grpcio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-11 05:58:49 -07:00
Ryan Barrett
06f3694c9d
Protocol.receive: return HTTP 299 for deterministic errors to prevent retries
...
for https://github.com/snarfed/bridgy-fed/issues/1063
2024-07-10 21:04:04 -07:00
Ryan Barrett
89e2372922
Protocol.receive: detect and prevent duplicate calls for the same object
...
for https://github.com/snarfed/bridgy-fed/issues/1063 , should fix it. coming up with the test for this was fun!
2024-07-10 20:59:03 -07:00
Ryan Barrett
8307b38024
noop: User.get_by_id: add missing **kwargs
2024-07-10 12:30:14 -07:00
Ryan Barrett
c3f59eaf42
Revert "TEMPORARY: 501 all getRepo calls"
...
This reverts commit dd21c6c301
.
2024-07-10 07:58:27 -07:00
dependabot[bot]
59bd6435f9
build(deps): bump google-cloud-tasks from 2.16.3 to 2.16.4
...
Bumps [google-cloud-tasks](https://github.com/googleapis/google-cloud-python ) from 2.16.3 to 2.16.4.
- [Release notes](https://github.com/googleapis/google-cloud-python/releases )
- [Changelog](https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-documentai/CHANGELOG.md )
- [Commits](https://github.com/googleapis/google-cloud-python/compare/google-cloud-tasks-v2.16.3...google-cloud-tasks-v2.16.4 )
---
updated-dependencies:
- dependency-name: google-cloud-tasks
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-10 05:30:16 -07:00
Ryan Barrett
6879aa93b0
noop: Protocol.targets: revise a misleading log message
2024-07-09 19:17:04 -07:00
Ryan Barrett
714c317dd4
Protocol.targets: only deliver reposts, replies etc if the original post was bridged
...
for #1166 , #1151 , maybe others. #1151 is the big motivation here: that we're currently generating and sending Bluesky a ton of reposts with blank subject cid/URL, which afaict is the main reason bridging is getting stuck for some accounts and the relay is constantly calling `getRepo`. I'm hoping this will reduce or eliminate that.
this isn't a big behavior change, but it is a kind of big change to routing logic. it's tested pretty well, but I still expect something to break. we'll see.
2024-07-09 17:29:02 -07:00
Ryan Barrett
47de59e31c
drop atproto-hub service down to one core, 2G memory
...
had it higher for a while when we tried serving getRepo from it, but that didn't last. it's currently at ~40-50% CPU on one core, ~600M memory.
2024-07-09 12:38:39 -07:00
Ryan Barrett
eabf157ec5
Revert "new atproto-sync service for getRepo"
...
This reverts commit 51b147caf6
.
for #1151
2024-07-09 12:17:05 -07:00
Ryan Barrett
5196a304ec
docs: add back section for custom username via acct: u-url in h-card
2024-07-09 10:37:08 -07:00
Ryan Barrett
893176fb56
Protocol.targets bug fix for undo share
...
fixes https://console.cloud.google.com/errors/detail/CJK54eaoneesMg;time=P30D?project=bridgy-federated
2024-07-09 07:41:24 -07:00
Ryan Barrett
23e1a90c88
Protocol.targets bug fix for 71ebc99: don't add object to feed if internal call
...
for https://console.cloud.google.com/errors/detail/CMzg3eXbyOi1ygE;time=P1D?project=bridgy-federated
2024-07-09 07:41:24 -07:00
Ryan Barrett
4b0146c590
Protocol.targets: skip copy protocol if inReplyTo or repost original wasn't copied there
...
once more with feeling!
for #1166
2024-07-09 07:41:24 -07:00
Ryan Barrett
0dce5c108d
integration test for ATProto => AP undo block
...
for #1162
2024-07-09 07:41:23 -07:00
dependabot[bot]
0109e248a8
build(deps): bump jsonschema from 4.22.0 to 4.23.0
...
Bumps [jsonschema](https://github.com/python-jsonschema/jsonschema ) from 4.22.0 to 4.23.0.
- [Release notes](https://github.com/python-jsonschema/jsonschema/releases )
- [Changelog](https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/python-jsonschema/jsonschema/compare/v4.22.0...v4.23.0 )
---
updated-dependencies:
- dependency-name: jsonschema
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-09 05:16:21 -07:00
dependabot[bot]
b2ad521e7a
build(deps): bump google-cloud-appengine-logging from 1.4.3 to 1.4.4
...
Bumps [google-cloud-appengine-logging](https://github.com/googleapis/google-cloud-python ) from 1.4.3 to 1.4.4.
- [Release notes](https://github.com/googleapis/google-cloud-python/releases )
- [Changelog](https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-documentai/CHANGELOG.md )
- [Commits](https://github.com/googleapis/google-cloud-python/compare/google-cloud-appengine-logging-v1.4.3...google-cloud-appengine-logging-v1.4.4 )
---
updated-dependencies:
- dependency-name: google-cloud-appengine-logging
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-09 05:16:12 -07:00
dependabot[bot]
d997865ebb
build(deps): bump humanize from 4.9.0 to 4.10.0
...
Bumps [humanize](https://github.com/python-humanize/humanize ) from 4.9.0 to 4.10.0.
- [Release notes](https://github.com/python-humanize/humanize/releases )
- [Commits](https://github.com/python-humanize/humanize/compare/4.9.0...4.10.0 )
---
updated-dependencies:
- dependency-name: humanize
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-08 05:42:21 -07:00
Ryan Barrett
71ebc99a9f
Protocol.targets: give undo same targets as the activity it's undoing
...
for #1162
2024-07-07 17:21:37 -07:00
Ryan Barrett
dd21c6c301
TEMPORARY: 501 all getRepo calls
...
for #1151
2024-07-06 21:28:10 -07:00
Ryan Barrett
08b41b0ede
test Protocol.targets for undo block, special case in activitypub.postprocess_as2
...
for #1162
2024-07-06 19:36:11 -07:00
Ryan Barrett
51b147caf6
new atproto-sync service for getRepo
...
for #1151
2024-07-06 19:02:09 -07:00
Ryan Barrett
13da9becf6
atproto_firehose.handle: map delete of activity to undo, not delete
...
for #1162
2024-07-06 15:26:20 -07:00
Ryan Barrett
df75e97880
atproto_firehose.handle bug fix: deletes don't have records
...
for #1162
2024-07-06 14:47:14 -07:00
Ryan Barrett
2189652a1d
Protocol.maybe_accept_follow: switch send from inline to task
2024-07-05 23:20:34 -07:00
Ryan Barrett
e5a6ebf228
drop Protocol.HAS_FOLLOW_ACCEPTS in favor of SUPPORTED_AS1_TYPES
2024-07-05 23:12:35 -07:00
Ryan Barrett
17ced85c6f
Protocol.receive: support blocks
...
for #1162
2024-07-05 22:46:52 -07:00
Ryan Barrett
2d1cb80e80
Protocol.check_supported bug fix: handle undo of activity
2024-07-05 12:26:59 -07:00
Ryan Barrett
98d21ae0d9
common.report_error/exception bug fix, handle running outside request context
2024-07-05 12:15:06 -07:00
Ryan Barrett
3cde69e61c
test_atproto noop, stop returning objects from a couple tests
2024-07-04 22:32:28 -07:00
Ryan Barrett
08591a11db
ActivityPub.inbox: don't report error on unsupported type, just log
2024-07-04 22:28:41 -07:00
Ryan Barrett
fa1ae889d8
Protocol.check_supported: don't report error, just log
2024-07-04 22:13:28 -07:00
Ryan Barrett
b606924d63
refactor SUPPORTED_AS1_TYPES usage into new Protocol.check_supported method
2024-07-04 21:11:38 -07:00
Ryan Barrett
850d681f83
add Protocol.SUPPORTED_AS1_TYPES
2024-07-04 16:58:06 -07:00
dependabot[bot]
482e2c4bf8
build(deps): bump certifi from 2024.6.2 to 2024.7.4
...
Bumps [certifi](https://github.com/certifi/python-certifi ) from 2024.6.2 to 2024.7.4.
- [Commits](https://github.com/certifi/python-certifi/compare/2024.06.02...2024.07.04 )
---
updated-dependencies:
- dependency-name: certifi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-04 05:47:27 -07:00
Ryan Barrett
036ccb8d16
fix a few errant AS1 'create' verbs to 'post'
2024-06-30 21:29:06 -07:00
Ryan Barrett
22d6cef9b1
ATProto: translate undo (of eg likes, reposts) to delete
...
for #1127
2024-06-29 21:57:22 -07:00
Ryan Barrett
0a31558dc8
fix tests for b87b4aa
2024-06-27 13:23:08 -07:00
Ryan Barrett
b87b4aa5f8
Protocol.receive: stop special casing replies, bridge them everywhere more often
...
For https://github.com/snarfed/bridgy-fed/issues/1047#issuecomment-2195298955 . This is a bit of a YOLO, I'm a bit apprehensive about it: I'm jettisoning much of the reply-specific logic in Protocol.receive and instead delivering replies across protocols more often. Still only delivering self-replies to followers though, not other replies.
🤞 🤞 🤞
2024-06-27 13:20:07 -07:00
Ryan Barrett
25199f8c9a
activitypub.inbox: only mark id seen in memcache after we've enqueued the receive task
...
for https://github.com/snarfed/bridgy-fed/issues/1047#issuecomment-2195287066
2024-06-27 13:20:07 -07:00
Ryan Barrett
866f6593e3
add a few domains to the blocklist
2024-06-27 13:20:07 -07:00
Ryan Barrett
8457f2a048
drop unused Object.object_ids computed property
2024-06-27 13:20:07 -07:00
dependabot[bot]
a619a4156a
build(deps): bump googleapis-common-protos from 1.63.1 to 1.63.2
...
Bumps [googleapis-common-protos](https://github.com/googleapis/python-api-common-protos ) from 1.63.1 to 1.63.2.
- [Release notes](https://github.com/googleapis/python-api-common-protos/releases )
- [Changelog](https://github.com/googleapis/python-api-common-protos/blob/main/CHANGELOG.md )
- [Commits](https://github.com/googleapis/python-api-common-protos/compare/v1.63.1...v1.63.2 )
---
updated-dependencies:
- dependency-name: googleapis-common-protos
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-27 05:39:06 -07:00
dependabot[bot]
0c1f6a78ce
build(deps): bump redis from 5.0.5 to 5.0.7
...
Bumps [redis](https://github.com/redis/redis-py ) from 5.0.5 to 5.0.7.
- [Release notes](https://github.com/redis/redis-py/releases )
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES )
- [Commits](https://github.com/redis/redis-py/compare/v5.0.5...v5.0.7 )
---
updated-dependencies:
- dependency-name: redis
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-27 05:38:46 -07:00
Ryan Barrett
f7a495a417
ids: drop _NON_WEB_SUBDOMAIN_SITES, look up (and cache) individual Web users instead
2024-06-26 16:16:23 -07:00
Ryan Barrett
733af4aafa
AP: add AP, ATProto users to nodeinfo total users
...
oops 😆
2024-06-26 11:39:09 -07:00
Ryan Barrett
45b48c6efb
Protocol.translate_ids: bug fix for ac2df74
for attachments with blocklisted url
...
fixes https://console.cloud.google.com/errors/CO25nvfq2Ojq0gE?project=bridgy-federated&time=P30D& , https://console.cloud.google.com/errors/CO2h-5yh276BQw?project=bridgy-federated&time=P30D& , etc
for #1154
2024-06-26 11:07:18 -07:00
Ryan Barrett
85d85d1ffd
AP: harden outbox and followers/ing collections to only count up to a limit
...
we should eventually precompute them so we can always return them cheaply!
for #1152
2024-06-26 10:56:27 -07:00
Ryan Barrett
ac2df747a6
Protocol.translate_ids: fix user-visible quote post URL
...
broken by a735396
, for #1154 and #461
2024-06-25 21:10:33 -07:00