1868 Commits

Author SHA1 Message Date
David Robertson
2375a13af4
Return early if there are no invites to remove 2023-10-11 17:37:24 +01:00
David Robertson
4706a4e861
Merge pull request #341 from matrix-org/dmr/gha-docker-test 2023-10-11 17:19:05 +01:00
Kegan Dougal
d1cb97663f Fixup tests 2023-10-11 17:14:49 +01:00
David Robertson
169f2f56ab
Tweak release instructions again. 2023-10-11 17:06:01 +01:00
Kegan Dougal
2bca40107a Install libolm 2023-10-11 16:57:15 +01:00
Kegan Dougal
54c3e573d1 Merge branch 'main' into kegan/complement 2023-10-11 16:49:52 +01:00
David Robertson
1e63d8dff5
Make the docker build trigger on v* tags too. v0.99.11-ghatest5 2023-10-11 16:45:33 +01:00
Kegan Dougal
a86e01acd2 v0.9.11 v0.99.11 2023-10-11 16:03:42 +01:00
David Robertson
2b0f63d784
Release CI: build the binaries with -trimpath v0.99.10-ghatest4 2023-10-11 15:36:48 +01:00
David Robertson
263770e173
Fix release CI: merge binaries into 1 job artifact v0.99.10-ghatest3 2023-10-11 15:23:42 +01:00
David Robertson
d0a09cb866
Fix release CI: create release _after_ build v0.99.10-ghatest2 2023-10-11 15:18:00 +01:00
David Robertson
a9f4ba49b7
Merge branch 'dmr/build-binary-for-releases' v0.99.10-ghatest1 2023-10-11 15:14:11 +01:00
David Robertson
3b14c056c8
Terse notes on how to release 2023-10-11 15:13:29 +01:00
David Robertson
697ac7a062
WIP: create a release in response to the tag 2023-10-11 15:11:39 +01:00
David Robertson
20c361ffc5
Merge pull request #339 from matrix-org/dmr/build-binary-for-releases 2023-10-11 14:41:09 +01:00
David Robertson
62cf2a71c0
Explicitly specify GOOS 2023-10-11 14:40:27 +01:00
kegsay
e8315ead87
Merge pull request #338 from matrix-org/kegan/race-test-2
bugfix: actually use the provided mock value in tests
2023-10-11 14:37:57 +01:00
David Robertson
733ebed068
-o goes before packages 2023-10-11 14:09:49 +01:00
David Robertson
aa649fdc3d
Build and attach {amd,arm}64 binaries to releases 2023-10-11 13:59:42 +01:00
Kegan Dougal
32c2f6b93d Actually use the provided value 2023-10-11 13:21:52 +01:00
kegsay
fe624d5ad0
Merge pull request #337 from matrix-org/kegan/data-race-poller
Fix race condition in test
2023-10-11 13:16:19 +01:00
Kegan Dougal
97d53448d7 Fix poller race condition 2023-10-11 12:58:05 +01:00
Kegan Dougal
d65c4ebdcf Fix race condition in test 2023-10-11 12:36:21 +01:00
Kegan Dougal
37aa1469a5 WIP: use complement libraries 2023-10-11 12:23:46 +01:00
David Robertson
565854d3a7
Remove superseded invites in the poller 2023-10-10 18:27:45 +01:00
David Robertson
32bc415472
Improve variable name? 2023-10-10 18:27:27 +01:00
David Robertson
9b9da2a8e9
New storage func for removing redundant invites 2023-10-10 18:17:58 +01:00
David Robertson
cd8390fe2f
Give the accumulator an invites table ptr 2023-10-10 17:06:10 +01:00
David Robertson
6fb24ad7b5
Stop removing invites on the API side 2023-10-10 17:03:12 +01:00
kegsay
4d8cbb2709
Merge pull request #326 from matrix-org/kegan/give-up-poll
bugfix: give up polling if the /sync response keeps erroring for >50min
2023-10-03 15:56:54 +01:00
Kegan Dougal
0856a8d53d bugfix: give up polling if the /sync response keeps erroring for >50min 2023-10-03 13:02:17 +01:00
David Robertson
79ee561c89
Merge pull request #324 from matrix-org/dmr/userroomdata 2023-10-03 10:58:56 +01:00
David Robertson
d4bd2a6fba
Remove unused RequestedLatestEvents field 2023-10-02 19:23:16 +01:00
David Robertson
7e4842660c
Make LazyLoadTimelines only load timelines
Unit tests
2023-10-02 19:23:15 +01:00
David Robertson
54aaa0a301
UserCache.LoadRooms 2023-10-02 18:45:18 +01:00
David Robertson
762361331d
Signposting 2023-10-02 18:44:10 +01:00
David Robertson
c1ab22e152
Fix docstring 2023-10-02 18:16:15 +01:00
David Robertson
2e1df2c6a8
set -> senders, plus keys() invocation 2023-10-02 18:15:43 +01:00
David Robertson
01080a30a9
Make rooms right before it gets used 2023-10-02 18:03:05 +01:00
kegsay
18b63419ac
Merge pull request #322 from matrix-org/kegan/rm-high-card-metric
Remove temporary metric
2023-10-02 09:51:58 +01:00
Kegan Dougal
aae5b053b3 Remove temporary metric
This can cause issues on large instances where it causes the /metrics response
size to exceed the `-promscrape.maxScrapeSize`.
2023-10-02 09:45:40 +01:00
David Robertson
0d110275a4
Merge pull request #317 from matrix-org/dmr/disable-cypress 2023-09-28 12:50:08 +01:00
David Robertson
0d59f01e72
Merge pull request #316 from matrix-org/dmr/versions-response-in-tests 2023-09-28 12:49:55 +01:00
David Robertson
9f4e6ad13d
Disable constantly failing cypress tests 2023-09-28 12:36:43 +01:00
David Robertson
1079ec6aed
Return a dummy /versions response in tests
Otherwise every integration test logs a warning that isn't useful.
2023-09-28 12:20:10 +01:00
kegsay
477cf8bd6c
Merge pull request #312 from matrix-org/s7evink/fix-poller-startup-metrics
Update the poller metrics after a poller was started
2023-09-28 10:57:13 +01:00
David Robertson
2e6249ae20
Merge pull request #314 from matrix-org/dmr/warn-if-hs-unreachable 2023-09-26 14:05:09 +01:00
David Robertson
a28e419d5d
Update mockClient to match new interface 2023-09-26 13:35:24 +01:00
David Robertson
7111ab1d9f
Check that the homeserver is reachable at startup
Closes #286.

Tested as follows (see line 4):

```
Sync v3 [0.99.10] (6fe9b18)
Debug=true LogLevel= MaxConns=0
Starting prometheus listener on :6060
13:23:33 WRN Could not contact upstream homeserver. Is SYNCV3_SERVER set correctly? error="Get \"http://localhost:8888/_matrix/client/versions\": dial tcp [::1]:8888: connect: connection refused" dest=http://localhost:8888
2023/09/26 13:23:33 OK   20230728114555_device_data_drop_id.sql (7.48ms)
2023/09/26 13:23:33 OK   20230802121023_device_data_jsonb.go (13.85ms)
2023/09/26 13:23:33 OK   20230814183302_cbor_device_data.go (9.01ms)
2023/09/26 13:23:33 OK   20230822180807_bogus_snapshot_cleanup.go (7.64ms)
2023/09/26 13:23:33 OK   20230913120537_events_missing_previous.sql (7.15ms)
2023/09/26 13:23:33 goose: successfully migrated database to version: 20230913120537
13:23:33 INF creating handler
13:23:33 INF retrieved global snapshot from database
13:23:33 INF listening on 0.0.0.0:8844
13:23:33 INF StartV2Pollers num_devices=0 num_fail_decrypt=0
13:23:33 INF StartV2Pollers finished
```
2023-09-26 13:24:26 +01:00
Till Faelligen
06b6bbedf3
Move to else, as we otherwise count failed pollers as well 2023-09-22 09:44:52 +02:00