1868 Commits

Author SHA1 Message Date
David Robertson
2052632d0c
E2E test changes from #329.
I don't fully remember the details, but may as well pluck this from the
previous PR.
2023-11-03 17:56:25 +00:00
David Robertson
2044af96de
Comment improvements 2023-11-03 15:47:00 +00:00
David Robertson
c6fb96ac70
Nuke connections after a room is invalidated 2023-11-03 15:46:58 +00:00
David Robertson
eb1ada2f95
Remove OnInvalidateRoom from Reciever interface 2023-11-03 15:43:42 +00:00
David Robertson
c239cacc83
Initialise: handle gappy polls and ditch prependStateEvents 2023-11-03 15:42:25 +00:00
David Robertson
e872b18fe6
New test cases 2023-11-03 15:39:47 +00:00
David Robertson
81f06d1591
Update existing test cases 2023-11-03 15:39:23 +00:00
David Robertson
30586cf1bf
Merge pull request #361 from matrix-org/dmr/reload-jrt 2023-11-02 22:29:12 +00:00
David Robertson
319da85789
Merge pull request #362 from matrix-org/dmr/fetch-memberships 2023-11-02 22:26:42 +00:00
David Robertson
f0ea7cbd4d
Add FetchMemberships function
Pulled out of #329.
2023-11-02 15:47:17 +00:00
David Robertson
4897acf3d6
Add the ability to reset the JoinedRoomsTracker
Not used yet; pulled out of #329.
2023-11-02 15:14:42 +00:00
David Robertson
13d4e0278d
Merge pull request #360 from matrix-org/dmr/invalidate-token-mutex 2023-11-02 14:34:26 +00:00
David Robertson
5e65210cc4
Ensure invalidateTokenImmediately acquires mutex 2023-11-02 13:53:44 +00:00
David Robertson
0e8d4a8e47
Merge pull request #359 from matrix-org/dmr/state-redaction-payload
Add a separate payload for redacting state
2023-11-02 11:13:50 +00:00
David Robertson
f595aed2c5
Add a separate payload for redacting state
So that we don't end up nuking conns unnecessarily.
2023-11-01 19:03:17 +00:00
David Robertson
759146ef5d
Merge pull request #355 from matrix-org/dmr/cancel-ctx-on-conn-shutdown 2023-10-27 16:22:00 +01:00
David Robertson
db0fde8860
Check cancel func is nonnil before calling
Grr. Is there no tooling for this?
2023-10-27 15:44:06 +01:00
David Robertson
5a03b153ce
Merge pull request #356 from matrix-org/dependabot/go_modules/google.golang.org/grpc-1.58.3 2023-10-26 19:16:16 +01:00
dependabot[bot]
34ca02956a
Bump google.golang.org/grpc from 1.58.0 to 1.58.3
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.58.0 to 1.58.3.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.58.0...v1.58.3)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-26 16:24:59 +00:00
David Robertson
c37e906bf5
Simplify test case 2023-10-26 17:02:16 +01:00
David Robertson
18a781ab70
Make unit tests pass (nullness check) 2023-10-26 16:24:46 +01:00
David Robertson
751b35edbf
Make unit tests compile 2023-10-26 16:18:03 +01:00
David Robertson
f3037861a7
Cancel outstanding requests when destroying conns 2023-10-26 15:58:06 +01:00
David Robertson
72c3415561
Test case 2023-10-26 15:16:32 +01:00
David Robertson
56494a0928
Merge pull request #352 from matrix-org/dmr/close-v2-server 2023-10-24 12:34:32 +01:00
kegsay
1486ebc7d7
Merge pull request #353 from matrix-org/kegan/ci-image
Bump synapse CI image
2023-10-23 14:59:23 +01:00
Kegan Dougal
d065260c38 Bump synapse CI image 2023-10-23 13:32:15 +01:00
David Robertson
c94670eea7
Prevent a test from writing to a closed v2 server 2023-10-19 19:03:19 +01:00
David Robertson
7172fda846
Stop waiting for data when closing v2 servers
This makes integration tests about twice as fast for me, according to

```sh
time go test -count=1 ./tests-integration/ -v
```

Before:

real 2m4.053s
user 0m4.187s
sys  0m1.495s

After:

real 1m7.415s
user 0m3.093s
sys  0m1.347s
2023-10-19 19:01:39 +01:00
David Robertson
dae2fa3561
Merge pull request #351 from matrix-org/dmr/cleanup-dead-invites 2023-10-19 18:24:53 +01:00
David Robertson
3a9cbaae8d
Fixup test log line 2023-10-19 18:18:55 +01:00
David Robertson
e5b1f13f30
Fix typos 2023-10-19 18:05:34 +01:00
David Robertson
a393f3ff14
Test the migration 2023-10-19 18:04:16 +01:00
David Robertson
bc47e18c62
Merge pull request #347 from matrix-org/dmr/keys 2023-10-19 17:31:53 +01:00
David Robertson
9230cf9206
Fix sausage fingers
Co-authored-by: kegsay <kegan@matrix.org>
2023-10-19 17:31:48 +01:00
kegsay
a89499c8aa
Merge pull request #348 from matrix-org/dmr/comments
A batch of useful comments
2023-10-19 16:20:39 +01:00
kegsay
758014b67c
Merge pull request #349 from matrix-org/dmr/matchers
Testutils matcher improvements
2023-10-19 16:19:07 +01:00
David Robertson
b4f30f508b
Add migration to cleanup dead invites
Fixes #350.
2023-10-19 16:05:33 +01:00
David Robertson
5e9b594826
Report all errors when trying multiple matchers 2023-10-19 14:22:27 +01:00
David Robertson
e7e78a6754
Mark log matchers as helpers 2023-10-19 14:21:35 +01:00
David Robertson
84a5ae5dc4
A batch of useful comments
pulled out of #329
2023-10-19 14:17:39 +01:00
David Robertson
904d16f450
Fix keys() return value starting with zero keys
Also pull this into `internal` so that other packages can reuse it

Hopefully we can use
https://pkg.go.dev/golang.org/x/exp@v0.0.0-20231006140011-7918f672742d/maps#Keys
one day
2023-10-19 14:06:43 +01:00
kegsay
867cf68a20
Merge pull request #346 from matrix-org/kegan/concurrent-rw
Deep-copy pointer backed fields on room metadata
2023-10-19 13:23:54 +01:00
Kegan Dougal
f4026d4c1d Deep-copy pointer backed fields on room metadata
Fixes #345
2023-10-19 11:19:28 +01:00
David Robertson
c3164d6b00
Merge pull request #342 from matrix-org/dmr/preemptive-bans 2023-10-17 18:12:29 +01:00
David Robertson
47b7fac656
Only send leaves to previously-joined leavers 2023-10-17 18:03:43 +01:00
David Robertson
78df8fd142
E2E test demonstrating ban leakage 2023-10-17 17:43:21 +01:00
David Robertson
9e1b4f99ec
Ignore go workspace files
Now that we're embedding complement I want to pull in the on-disk
version of complement.
2023-10-17 17:07:32 +01:00
kegsay
0c3a2b9c6d
Merge pull request #340 from matrix-org/kegan/complement
Use Complement libraries
2023-10-17 13:14:42 +01:00
David Robertson
de9006de9c
Merge pull request #333 from matrix-org/dmr/cleanup-invites-in-poller 2023-10-11 17:55:45 +01:00