Wykres commitów

2621 Commity (1280982e97d7fcaafeb3bebc5b4a6eb9a58d1585)

Autor SHA1 Wiadomość Data
Ryan Barrett 1280982e97
load LIMITED_DOMAINS from env var if available
for #1089
2024-07-16 14:28:45 -07:00
Ryan Barrett bf11eb8649
Protocol.send_task: retry writing results to Object more aggressively
this has high contention during inbox delivery.

for https://console.cloud.google.com/errors/detail/CJm_4sDv9O-iKg;time=P7D?project=bridgy-federated
2024-07-16 13:58:43 -07:00
Ryan Barrett 075c33cade
memcache: encode spaces in keys as %20
fixes https://console.cloud.google.com/errors/detail/CNPzqYzWg4_TyQE;time=P7D?project=bridgy-federated
2024-07-16 13:48:52 -07:00
Ryan Barrett 7e792ea22f
drop spam filter req't that display name is different than username
for https://akkoma.dev/AkkomaGang/akkoma/issues/438#issuecomment-12745 , cc @snan
2024-07-16 10:46:17 -07:00
Ryan Barrett 55ef7de2f7
docs for web <=> Bluesky
for #1034
2024-07-15 20:58:53 -07:00
Ryan Barrett 6b1290eb53
whoops, revert the Web.get_or_create change in 4ff28ca377 2024-07-15 20:22:47 -07:00
Ryan Barrett 4ff28ca377
minor noop refactorings 2024-07-15 20:09:33 -07:00
Ryan Barrett 0a22643cef
User.get_or_create: merge enabled_protocols
for #1034
2024-07-15 20:09:20 -07:00
Ryan Barrett ee62334a93
turn on web <=> Bluesky!
for #1034
2024-07-15 19:40:10 -07:00
Ryan Barrett a2c382651a
Web.get_or_create: noop: refactor to use ids.normalize_user_id
for #1034
2024-07-15 18:08:10 -07:00
Ryan Barrett 99aa5bb452
docs: drop sasquatch link, it's disappeared 2024-07-15 18:06:07 -07:00
Ryan Barrett 4c8ab91fbc
docs: noop vertical whitespace tweak 2024-07-15 17:02:26 -07:00
Ryan Barrett 6d1c641d7e
atproto_hub /admin/atproto: convert subscriber timestamps to PT 2024-07-15 15:11:05 -07:00
Ryan Barrett 70e7e7f689
docs, front page, etc: remove beta warnings 2024-07-15 15:00:22 -07:00
Ryan Barrett 91e6becda1
docs: unify troubleshooting into a new top-level section
fixes #1140
2024-07-15 14:47:57 -07:00
Ryan Barrett 2176223038
app configs: leaning into cargo-culting liveness_check.initial_delay_sec
https://cloud.google.com/appengine/docs/flexible/reference/app-yaml?tab=python#liveness_checks
2024-07-15 08:46:35 -07:00
Ryan Barrett eea111c733
minor doc tweak for "how do I find a bridged account" q's 2024-07-15 08:45:42 -07:00
Ryan Barrett 1a23d8eba3
Protocol.targets: when adding in-reply-to, check from user's enabled protocols
fixes https://console.cloud.google.com/errors/detail/CMHloZaRmPXQZQ;time=P7D?project=bridgy-federated
2024-07-14 13:42:38 -07:00
Ryan Barrett 56b9509663
atproto_hub /admin/atproto: highlight bluesky team servers 2024-07-14 09:24:49 -07:00
Ryan Barrett 732f2d2a60
add /admin/atproto for rendering current subscribeRepos clients 2024-07-14 09:08:11 -07:00
Ryan Barrett 2a83cbb0d8
Protocol.targets: bug fix for self replies
this bug snuck in because of our special case handling of Fake and OtherFake in Protocol.targets. ugh. need to get rid of that, and elsewhere, eg ids.*.

fixes #1179
2024-07-13 12:58:06 -07:00
Ryan Barrett 1f73058ef6
Protocol.receive, ActivityPub.inbox: consolidate memcache key for seen activities 2024-07-12 08:21:30 -07:00
Ryan Barrett 2386e92416
atproto_hub: send requestCrawl to bsky.network every 5m
recommended by Jaz, the relay is usually good about reconnecting, but not perfect, and doesn't retry forever. https://discord.com/channels/1097580399187738645/1097580399187738648/1261023248079126529
2024-07-12 07:50:54 -07:00
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