David Robertson
f2b4898446
WithTransaction: dump stack if wrapped func panics
2023-06-06 12:06:03 +01:00
David Robertson
5688b0d2f7
GlobalSnapshot: log errors to Sentry
2023-06-06 12:03:18 +01:00
David Robertson
b055979768
Merge pull request #140 from matrix-org/dmr/bump-event-types-3
...
Preparatory work to make bump event types work on startup
2023-06-06 11:15:40 +01:00
David Robertson
d3e4e34b2d
Don't write stub in LoadRooms
...
Error in #136
2023-06-06 10:52:24 +01:00
David Robertson
320f7f2282
Remove TODO
2023-06-06 10:44:52 +01:00
David Robertson
3e4eaa0219
Fix tests this time?
2023-06-05 18:10:35 +01:00
David Robertson
c07ef096bc
Cleanup tests again?
2023-06-05 14:49:50 +01:00
David Robertson
dcc37926e3
Fixup tests
2023-06-05 14:03:30 +01:00
David Robertson
38ee47c1fd
Merge remote-tracking branch 'origin/main' into dmr/bump-event-types-3
2023-06-05 13:35:38 +01:00
David Robertson
b3544a536d
Return a map from JoinedRoomsAfterPosition
2023-06-05 13:03:41 +01:00
David Robertson
5ce6a00879
Another comment update
2023-06-05 12:26:02 +01:00
David Robertson
a24fa73cba
joinedRoomNIDs -> joinEventNIDs
2023-06-05 12:23:15 +01:00
David Robertson
fd680cb0b5
Update comments
2023-06-05 12:22:33 +01:00
David Robertson
b15544f24e
Write urd
back to roomToData
...
Co-authored-by: kegsay <kegan@matrix.org>
2023-06-05 12:19:23 +01:00
David Robertson
4bb74d0df3
Merge pull request #136 from matrix-org/dmr/removehero-panic
...
Reproduce and avoid panic in RemoveHero
2023-06-05 12:06:13 +01:00
David Robertson
2c497008e4
Merge pull request #134 from matrix-org/dmr/sentry-pollers
...
Associate user IDs and device IDs to poller sentry reports
2023-06-05 11:34:21 +01:00
David Robertson
1c12414dd9
Describe the failure mode
2023-06-05 11:26:47 +01:00
David Robertson
c285d8d8fd
Remove unused KnockRoom
...
knocking was not the cause
2023-06-05 11:22:02 +01:00
David Robertson
6f276c6565
Merge pull request #133 from matrix-org/dmr/sentry
...
Various sentry cleanups
2023-06-05 10:34:09 +01:00
David Robertson
0d9129892c
Merge pull request #132 from matrix-org/dmr/fix-bump-event-type-test
...
Fix an error in previous BumpEventTypes test
2023-06-05 10:33:02 +01:00
David Robertson
933c0d9928
UserCache: record join NIDs at creation
2023-06-01 20:05:42 +01:00
David Robertson
6f77d0eb79
Fixup tests
2023-06-01 20:05:42 +01:00
David Robertson
6574101a7b
GlobalCache: LoadJoinedRooms also loads join NIDs
2023-06-01 20:05:42 +01:00
David Robertson
da118624d9
GlobalCache: load LatestEventsByType on startup
2023-06-01 20:05:42 +01:00
David Robertson
747062c23b
Merge pull request #129 from matrix-org/dmr/more-bump-event-types
...
Per-list bump event types
2023-06-01 17:12:27 +01:00
David Robertson
f14946ae7c
Merge pull request #96 from matrix-org/dmr/readme
...
README tweaks
2023-05-30 12:44:37 +01:00
David Robertson
fdec1b2188
Use Kegan's e2e test incantation
2023-05-30 12:44:23 +01:00
David Robertson
2797e04e55
Recommend docker latest
tag in README
2023-05-30 10:51:57 +01:00
David Robertson
b82f1c0712
Drive-by: thread context through to OnSpaceUpdate
2023-05-26 15:51:18 +01:00
David Robertson
8dff4b8c6d
Create stub metadata if a room is missing
...
No idea if this is safe. I'm basing this on
191208c8e1/sync3/caches/user.go (L339-L340)
2023-05-26 15:51:16 +01:00
David Robertson
5b078cd627
Reproduce panic
2023-05-26 15:11:59 +01:00
David Robertson
e5eb4f12ba
Plumb a ctx through to sync2
...
Thank God for Goland's refactoring tools.
This will (untested) associate sentry events from the sync2 part of the
code with User IDs and Device IDs, without having to constantly invoke
sentry.WithScope(). (Not all of the handler methods currently have that
information.) It also leaves the door open for us to include more data
on poller sentry reports (e.g. access token hash, time of last token
activity on the sync3 side, ...)
2023-05-25 22:22:15 +01:00
David Robertson
cb75672132
Attach a sentry hub to the DoSyncV2 context
2023-05-25 21:55:37 +01:00
David Robertson
c0e0f8400e
Introduce const for the ss sentry context key
2023-05-25 21:55:18 +01:00
David Robertson
9037dc06fb
Don't report errors in the sync3 handler twice
2023-05-25 21:18:36 +01:00
David Robertson
2cc84501ca
Remove dead code
...
err is only set if panicErr != nil; so this branch is never hit.
2023-05-25 20:17:28 +01:00
David Robertson
77473feee9
Don't error to Sentry when clients close conns
2023-05-25 20:00:40 +01:00
David Robertson
aa5946e6e5
Omit "did not increment since token" from Sentry
...
Out of our control and causes Sentry noise. Alternatively, we could make
this a logged notice/event if we want to track how often this happens.
2023-05-25 19:38:41 +01:00
David Robertson
bca1b68a08
Pumb ctx
s through to HandleLiveUpdate
...
so that Sentry errors pick up HTTP information from the context.
2023-05-25 19:37:18 +01:00
David Robertson
10dfc8bc2d
Cleanup when a list is deleted
2023-05-25 19:11:45 +01:00
David Robertson
f52f8d6d58
E2E test
2023-05-25 19:00:37 +01:00
David Robertson
89b7aaa632
Fix an error in previous BumpEventTypes test
2023-05-25 18:13:49 +01:00
David Robertson
5333ed7a2f
Set timestamps on init, even if not provided.
2023-05-25 15:20:41 +01:00
David Robertson
11ba045d0e
rename to newTimestamps
2023-05-25 15:17:21 +01:00
David Robertson
5f3c9dff3c
lists_test: add timestamps to RoomConnMetadata
2023-05-25 14:45:55 +01:00
David Robertson
d73f390961
Merge pull request #131 from matrix-org/kegan/txn-ids
...
Add unsigned.transaction_id tests
2023-05-25 14:19:45 +01:00
David Robertson
d8f158b292
better names in ConnState.load
2023-05-25 11:58:32 +01:00
kegsay
4d3d214c00
Merge pull request #130 from anoadragon453/patch-1
...
Alter the method to check whether a client request includes a body
2023-05-25 11:44:27 +01:00
Kegan Dougal
7ad980ed29
Add unsigned.transaction_id tests
2023-05-25 11:31:12 +01:00
David Robertson
1ad581a3ec
recency comparator: avoid 2x map lookups
2023-05-25 11:30:42 +01:00