Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] develop from matrix-org:develop #5

Open
wants to merge 10,000 commits into
base: experimental2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
3555790
Remove unused method. (#16435)
clokep Oct 5, 2023
5946074
Bump pyo3 from 0.17.1 to 0.19.2 (#16162)
V02460 Oct 6, 2023
26b960b
Register media servlets via regex. (#16419)
clokep Oct 6, 2023
694802e
Add documentation on background updates. (#16420)
clokep Oct 6, 2023
ae5b997
Fix comments related to replication. (#16428)
clokep Oct 6, 2023
fc31b49
Stop sending incorrect knock_state_events. (#16403)
clokep Oct 6, 2023
cabd577
Drop unused tables & unneeded access token ID for events. (#16268)
clokep Oct 6, 2023
7615e2b
Return ThumbnailInfo in more places (#16438)
clokep Oct 6, 2023
06bbf10
Convert simple_select_list_paginate_txn to return tuples. (#16433)
clokep Oct 6, 2023
1f10c20
Apply join rate limiter outside the lineariser (#16441)
Oct 6, 2023
32fd9bc
Fix possible AttributeError when account-api is called over unix sock…
shtrophic Oct 9, 2023
3d2f533
Bump types-bleach from 6.0.0.4 to 6.1.0.0 (#16450)
dependabot[bot] Oct 9, 2023
45738e2
Bump bleach from 6.0.0 to 6.1.0 (#16451)
dependabot[bot] Oct 9, 2023
6fb0c43
Bump psycopg2 from 2.9.8 to 2.9.9 (#16452)
dependabot[bot] Oct 9, 2023
3727b84
Bump netaddr from 0.8.0 to 0.9.0 (#16453)
dependabot[bot] Oct 9, 2023
0a67743
Bump ruff from 0.0.290 to 0.0.292 (#16449)
dependabot[bot] Oct 9, 2023
a6abee3
Don't block CI on sign-off (#16454)
erikjohnston Oct 9, 2023
8902b30
Disable statement timeout whilst purging rooms (#16455)
reivilibre Oct 9, 2023
28fd28e
Add DB indices to speed up purging rooms (#16457)
Oct 10, 2023
25c412b
1.94.0
reivilibre Oct 10, 2023
b52ad6e
Merge branch 'master' into develop
reivilibre Oct 10, 2023
4f87edc
Add security advisory note to the changelog
reivilibre Oct 10, 2023
336b0b9
Merge branch 'master' into develop
reivilibre Oct 10, 2023
5f12090
Add CVE number for advisory GHSA-5chr-wjw5-3gq4.
clokep Oct 10, 2023
b6cb610
Merge remote-tracking branch 'origin/master' into develop
clokep Oct 10, 2023
f1e4301
Inline simple_search_list/simple_search_list_txn. (#16434)
clokep Oct 10, 2023
d6b7d49
Handle content types with parameters. (#16440)
clokep Oct 11, 2023
a4904dc
Convert simple_select_many_batch, simple_select_many_txn to tuples. (…
clokep Oct 11, 2023
cc865ff
Convert user_get_threepids response to attrs. (#16468)
clokep Oct 12, 2023
f710d54
Update complement.sh to match new public API shape (#16466)
kegsay Oct 12, 2023
4cc729d
Revert "Drop unused tables & unneeded access token ID for events. (#1…
clokep Oct 12, 2023
166ffc0
Fix typo in useful_sql_for_admins.md (#16477)
laurencegill Oct 12, 2023
1098822
Clean up logging on event persister endpoints (#16488)
richvdh Oct 14, 2023
a832212
Bump pyo3-log from 0.8.3 to 0.8.4 (#16495)
dependabot[bot] Oct 16, 2023
b220f82
Bump packaging from 23.1 to 23.2 (#16497)
dependabot[bot] Oct 16, 2023
aaca977
Bump types-jsonschema from 4.17.0.10 to 4.19.0.3 (#16499)
dependabot[bot] Oct 16, 2023
9be4db2
Bump jsonschema from 4.19.0 to 4.19.1 (#16500)
dependabot[bot] Oct 16, 2023
eee6474
Remove useless async job to delete device messages on sync (#16491)
MatMaul Oct 16, 2023
37d9edc
Bump sentry-sdk from 1.31.0 to 1.32.0 (#16496)
dependabot[bot] Oct 16, 2023
7154724
Bump serde from 1.0.188 to 1.0.189 (#16494)
dependabot[bot] Oct 16, 2023
4fe73f8
Bump pillow from 10.0.1 to 10.1.0 (#16498)
dependabot[bot] Oct 16, 2023
e3e0ae4
Convert state delta processing from a dict to attrs. (#16469)
clokep Oct 16, 2023
7291c68
Update the release script to remind releaser to check for special rel…
reivilibre Oct 16, 2023
77dfc1f
Fix a bug where servers could be marked as up when they were failing …
clokep Oct 17, 2023
6ad1f9e
Convert DeviceLastConnectionInfo to attrs. (#16507)
clokep Oct 17, 2023
6e6d611
1.95.0rc1
clokep Oct 17, 2023
c81908b
Update the changelog.
clokep Oct 17, 2023
68d9559
Test against Python 3.12 release (#16511)
clokep Oct 17, 2023
1903331
Bump urllib3 from 1.26.17 to 1.26.18 (#16516)
dependabot[bot] Oct 18, 2023
8841db4
Run trial/integration tests if .ci is modified. (#16512)
clokep Oct 18, 2023
bcff01b
Improve performance of delete device messages query (#16492)
MatMaul Oct 18, 2023
49c9745
Avoid sending massive replication updates when purging a room. (#16510)
clokep Oct 18, 2023
e9069c9
Mark sync as limited if there is a gap in the timeline (#16485)
erikjohnston Oct 19, 2023
345c61f
Build Debian packages for Ubuntu 23.10 Mantic Minotaur (#16524)
Oct 19, 2023
d2eab22
Clarify presence router docs. (#16529)
clokep Oct 20, 2023
9171bf3
Bump pygithub from 1.59.1 to 2.1.1 (#16535)
dependabot[bot] Oct 23, 2023
2d12163
Bump types-pillow from 10.0.0.3 to 10.1.0.0 (#16536)
dependabot[bot] Oct 23, 2023
a802620
Bump gitpython from 3.1.37 to 3.1.40 (#16534)
dependabot[bot] Oct 23, 2023
786b614
Bump types-requests from 2.31.0.2 to 2.31.0.10 (#16537)
dependabot[bot] Oct 23, 2023
f835ab8
Bump black from 23.9.1 to 23.10.0 (#16538)
dependabot[bot] Oct 23, 2023
478a6c6
Bump matrix-synapse-ldap3 from 0.2.2 to 0.3.0 (#16539)
Oct 23, 2023
12ca87f
Remove the last reference to event_txn_id. (#16521)
clokep Oct 23, 2023
3a0aa6f
Force TLS certificate verification in registration script. (#16530)
dkasak Oct 23, 2023
3bcb6a0
Mention how to redirect the Jaeger traces to a specific Jaeger instan…
MTRNord Oct 23, 2023
3bc23cc
Fix bug that could cause a `/sync` to tightloop with sqlite after res…
erikjohnston Oct 23, 2023
8f35f81
Fix bug where a new writer advances their token too quickly (#16473)
erikjohnston Oct 23, 2023
3ab861a
Fix type hint errors from Twisted trunk (#16526)
clokep Oct 23, 2023
5fe76b9
Add test case to detect dodgy b64 encoding
Oct 23, 2023
3df70aa
Replace all Prometheus datasource UIDs of the Grafana Dashboard with …
MichaelSasser Oct 23, 2023
79f48b2
1.95.0
Oct 24, 2023
ffbe9b7
Remove duplicate call to wake a remote destination when using federat…
realtyem Oct 24, 2023
6ec9881
Rework alias and public room list rules docs (#16541)
Oct 24, 2023
c0d2f76
Merge branch 'develop' of github.com:matrix-org/synapse into develop
Oct 24, 2023
2f35424
Merge branch 'master' into develop
Oct 24, 2023
2f1065f
Revert "Add test case to detect dodgy b64 encoding"
Oct 24, 2023
95076f7
Fix http/s proxy authentication with long username/passwords (#16504)
MagicRB Oct 24, 2023
e182dbb
Fix tests on Twisted trunk. (#16528)
clokep Oct 25, 2023
ba47fea
Allow multiple workers to write to receipts stream. (#16432)
erikjohnston Oct 25, 2023
c14a7de
Pin the recommended poetry version in contributors' guide (#16550)
Oct 25, 2023
9407d5b
Convert simple_select_list and simple_select_list_txn to return lists…
clokep Oct 26, 2023
85e5f2d
Add a new module API to update user presence state. (#16544)
clokep Oct 26, 2023
679c691
Remove more usages of cursor_to_dict. (#16551)
clokep Oct 26, 2023
c02406a
Add new module API for adding custom fields to events `unsigned` sect…
erikjohnston Oct 27, 2023
0680d76
Reduce replication traffic due to reflected cache stream POSITION (#1…
erikjohnston Oct 27, 2023
928e964
Fix cross-worker ratelimiting (#16558)
erikjohnston Oct 27, 2023
89dbbd6
Reduce spurious replication catchup (#16555)
erikjohnston Oct 27, 2023
5413cef
Reduce amount of caches POSITIONS we send (#16561)
erikjohnston Oct 27, 2023
2bf9341
Ensure local invited & knocking users leave before purge. (#16559)
clokep Oct 27, 2023
11a8ae0
complement: enable dirty runs (#16520)
kegsay Oct 27, 2023
747416e
Portdb: don't copy a table that gets rebuilt (#16563)
Oct 27, 2023
bcaaeab
Bump types-psycopg2 from 2.9.21.14 to 2.9.21.15 (#16573)
dependabot[bot] Oct 30, 2023
13f6467
Bump black from 23.10.0 to 23.10.1 (#16575)
dependabot[bot] Oct 30, 2023
425cb9c
Bump phonenumbers from 8.13.22 to 8.13.23 (#16576)
dependabot[bot] Oct 30, 2023
8f7cd4c
Bump serde from 1.0.189 to 1.0.190 (#16577)
dependabot[bot] Oct 30, 2023
ba55835
Bump cryptography from 41.0.4 to 41.0.5 (#16572)
dependabot[bot] Oct 30, 2023
8c63e93
Fix HTTP repl response to use minimum token (#16578)
erikjohnston Oct 30, 2023
4e1a19d
Run actions/setup-go after checking out complement (#16567)
Oct 30, 2023
a3f6200
Bump setuptools-rust from 1.7.0 to 1.8.0 (#16574)
dependabot[bot] Oct 30, 2023
fdce83e
Claim fallback keys in bulk (#16570)
Oct 30, 2023
408c138
Add fast path for replication events stream fetch (#16580)
erikjohnston Oct 30, 2023
91aa52c
Clients link fixed in README (#16569)
niranjan-kurhade Oct 30, 2023
de981ae
Claim local one-time-keys in bulk (#16565)
Oct 30, 2023
4724a6d
1.96.0rc1
erikjohnston Oct 31, 2023
7a3a55a
Merge pull request from GHSA-mp92-3jfm-3575
clokep Oct 31, 2023
daec55e
Merge pull request from GHSA-mp92-3jfm-3575
clokep Oct 31, 2023
a115119
1.95.1
erikjohnston Oct 31, 2023
0cc6509
Merge branch 'release-v1.95' into develop
erikjohnston Oct 31, 2023
60c5e8d
Revert "1.96.0rc1"
erikjohnston Oct 31, 2023
1f033ad
Merge remote-tracking branch 'origin/develop' into release-v1.96
erikjohnston Oct 31, 2023
4bb2b4a
1.96.0rc1
erikjohnston Oct 31, 2023
c5b5439
Update changelog
erikjohnston Oct 31, 2023
70b503f
Fix import ordering issue introduced in 7a3a55ac98847d7adb0e200378abe…
clokep Oct 31, 2023
c0ba319
Merge branch 'release-v1.96' into develop
erikjohnston Oct 31, 2023
cfb6d38
Remove remaining usage of cursor_to_dict. (#16564)
clokep Oct 31, 2023
ed1b879
Do not call getfullargspec on every call. (#16589)
clokep Oct 31, 2023
c812f43
Bump twisted from 23.8.0 to 23.10.0 (#16588)
dependabot[bot] Nov 1, 2023
0afbef3
Use simple_select_many_txn in event persistance code. (#16585)
clokep Nov 2, 2023
bf69b57
Fix "'int' object is not iterable" error in set_device_id_for_pushers…
clokep Nov 2, 2023
92828a7
Simplify event persistence code (#16584)
clokep Nov 3, 2023
2f689a6
Bump ruff from 0.0.292 to 0.1.4 (#16600)
dependabot[bot] Nov 6, 2023
a28339b
Bump types-jsonschema from 4.19.0.3 to 4.19.0.4 (#16599)
dependabot[bot] Nov 6, 2023
5cf2988
Bump types-pyyaml from 6.0.12.11 to 6.0.12.12 (#16602)
dependabot[bot] Nov 6, 2023
1a9b22a
Bump setuptools-rust from 1.8.0 to 1.8.1 (#16601)
dependabot[bot] Nov 6, 2023
cc4fe68
Support reactor timing metric on more reactors. (#16532)
clokep Nov 6, 2023
1dd3074
Bump setuptools_rust to match pinned version. (#16605)
clokep Nov 6, 2023
7e5d3b0
Collect information for PushRuleEvaluator in parallel. (#16590)
clokep Nov 6, 2023
ec9ff38
More tests for the simple_* methods. (#16596)
clokep Nov 7, 2023
9738b1c
Avoid executing no-op queries. (#16583)
clokep Nov 7, 2023
455ef04
Avoid updating the same rows multiple times with simple_update_many_t…
clokep Nov 7, 2023
2a336cd
Bump serde_json from 1.0.107 to 1.0.108 (#16604)
dependabot[bot] Nov 8, 2023
f6aa047
Bump pyicu from 2.11 to 2.12 (#16603)
dependabot[bot] Nov 8, 2023
91587d4
Bulk-invalidate e2e cached queries after claiming keys (#16613)
Nov 9, 2023
ff716b4
Return attrs for more media repo APIs. (#16611)
clokep Nov 9, 2023
ab3f1b3
Convert simple_select_one_txn and simple_select_one to return tuples.…
clokep Nov 9, 2023
9f514dd
Use _invalidate_cache_and_stream_bulk in more places. (#16616)
clokep Nov 9, 2023
bc4372a
Use dbname instead of database for Postgres config. (#16618)
clokep Nov 9, 2023
dc7f068
Fix a long-standing bug where Synapse would not unbind third-party id…
reivilibre Nov 9, 2023
2c6a7df
Use attempt_to_set_autocommit everywhere. (#16615)
clokep Nov 9, 2023
ca7421b
Bump towncrier from 23.6.0 to 23.11.0 (#16622)
dependabot[bot] Nov 13, 2023
22a5130
Bump types-bleach from 6.1.0.0 to 6.1.0.1 (#16624)
dependabot[bot] Nov 13, 2023
f92af19
Bump types-pyopenssl from 23.2.0.2 to 23.3.0.0 (#16625)
dependabot[bot] Nov 13, 2023
69d1ee3
Bump treq from 22.2.0 to 23.11.0 (#16623)
dependabot[bot] Nov 13, 2023
35fac66
Bump prometheus-client from 0.17.1 to 0.18.0 (#16626)
dependabot[bot] Nov 13, 2023
7455b9e
Bump serde from 1.0.190 to 1.0.192 (#16627)
dependabot[bot] Nov 13, 2023
fb2554b
Fix outbound_federation_restricted_to docs & note when added (#16628)
Nov 13, 2023
69afe3f
Add a Postgres `REPLICA IDENTITY` to tables that do not have an impli…
reivilibre Nov 13, 2023
0e36a57
Remove whole table locks on push rule add/delete (#16051)
Fizzadar Nov 13, 2023
4dd18bd
Improve documentation for `/_synapse/admin/v1/rooms/<room_id>/timesta…
Half-Shot Nov 14, 2023
f2f2c7c
Use full GitHub links instead of bare issue numbers. (#16637)
clokep Nov 15, 2023
80922dc
Add links to pre-1.0 changelog issue/PR references. (#16638)
clokep Nov 15, 2023
999bd77
Asynchronous Uploads (#15503)
sumnerevans Nov 15, 2023
43d1aa7
Add an Admin API to temporarily grant the ability to update an existi…
Nov 15, 2023
830988a
Fix test not detecting tables with missing primary keys and missing r…
reivilibre Nov 16, 2023
898655f
More efficiently handle no-op POSITION (#16640)
erikjohnston Nov 16, 2023
fef08cb
Fix sending out of order `POSITION` over replication (#16639)
erikjohnston Nov 16, 2023
1b238e8
Speed up persisting large number of outliers (#16649)
erikjohnston Nov 16, 2023
3e8531d
Speed up deleting device messages (#16643)
erikjohnston Nov 16, 2023
ef5329a
Revert "Add a Postgres `REPLICA IDENTITY` to tables that do not have …
erikjohnston Nov 16, 2023
4d6b800
Revert "Fix test not detecting tables with missing primary keys and m…
erikjohnston Nov 16, 2023
ff0148a
1.96.0
clokep Nov 16, 2023
2de2258
Add blogpost link to changelog.
clokep Nov 16, 2023
47c6821
Fix building wheels in CI. (#16653)
clokep Nov 17, 2023
76f990c
1.96.1
clokep Nov 17, 2023
6a1352e
Move the forking note to 1.96.1.
clokep Nov 17, 2023
c4f5522
Tweaks from review.
clokep Nov 17, 2023
700c8a0
Reduce task concurrency (#16656)
erikjohnston Nov 17, 2023
518e4de
Update admin user API return types in docs. (#16654)
weeman1337 Nov 17, 2023
bdb0cbc
Merge branch 'master' into develop
clokep Nov 17, 2023
6fec2d0
Also discard 'caches' and 'backfill' stream POSITIONS (#16655)
erikjohnston Nov 17, 2023
9c02ef2
Speed up purge room by adding index (#16657)
erikjohnston Nov 17, 2023
d9dcfe2
Bump requests-toolbelt from 0.10.1 to 1.0.0. (#16659)
clokep Nov 17, 2023
6088303
Speed up how quickly we launch new tasks (#16660)
erikjohnston Nov 17, 2023
89d9ab0
Bump types-psycopg2 from 2.9.21.15 to 2.9.21.16 (#16665)
dependabot[bot] Nov 20, 2023
d792e0f
Bump types-pillow from 10.1.0.0 to 10.1.0.2 (#16664)
dependabot[bot] Nov 20, 2023
e934e7f
Bump pyopenssl from 23.2.0 to 23.3.0 (#16662)
dependabot[bot] Nov 20, 2023
7611df7
Bump sentry-sdk from 1.32.0 to 1.35.0 (#16666)
dependabot[bot] Nov 20, 2023
bb86eb9
1.97.0rc1
Nov 21, 2023
536f9c9
fix changelog typo
Nov 21, 2023
8d5c1fe
Merge branch 'release-v1.97' into develop
Nov 21, 2023
460743d
Filter out auth chain queries that don't exist (#16552)
realtyem Nov 22, 2023
c8118ba
Bump pydantic from 2.4.2 to 2.5.1 (#16663)
dependabot[bot] Nov 22, 2023
c432d8f
Admin API for server notice: consistently bypass rate limits (#16670)
MatMaul Nov 22, 2023
f2430b1
Bump pyo3 (0.20), pythonize (0.20), pyo3-log (0.9) (#16673)
V02460 Nov 22, 2023
1a5f9bb
Enable refreshable tokens on the admin registration endpoint (#16642)
Nov 22, 2023
32a59a6
Keep track of `user_ips` and `monthly_active_users` when delegating a…
Nov 23, 2023
c3627d0
Correctly read to-device stream pos on SQLite (#16682)
Nov 24, 2023
0619c2b
Move media retention tests out of rest tests (#16684)
Nov 27, 2023
1c63dfe
Bump serde from 1.0.192 to 1.0.193 (#16693)
dependabot[bot] Nov 27, 2023
9a6181f
Bump jsonschema from 4.19.1 to 4.20.0 (#16692)
dependabot[bot] Nov 27, 2023
73794dd
Bump ruff from 0.1.4 to 0.1.6 (#16690)
dependabot[bot] Nov 27, 2023
3238ae3
Bump types-setuptools from 68.2.0.0 to 68.2.0.2 (#16688)
dependabot[bot] Nov 27, 2023
62e96a2
Bump pyasn1 from 0.5.0 to 0.5.1 (#16689)
dependabot[bot] Nov 27, 2023
b3e8d50
Bump prometheus-client from 0.18.0 to 0.19.0 (#16691)
dependabot[bot] Nov 27, 2023
8751f0e
Fix poetry version typo in contributors' guide (#16695)
Nov 27, 2023
d199b84
Remove old full schema dumps. (#16697)
clokep Nov 28, 2023
b0ed14d
Ignore `encryption_enabled_by_default_for_room_type` for notices room…
MatMaul Nov 28, 2023
d75d6d6
1.97.0
erikjohnston Nov 28, 2023
77882b6
Document which versions of Synapse have compatible schema versions. (…
clokep Nov 28, 2023
825ac7e
Merge branch 'master' into develop
erikjohnston Nov 28, 2023
6f2be77
Bump cryptography from 41.0.5 to 41.0.6 (#16703)
dependabot[bot] Nov 29, 2023
df36696
Speed up pruning of `user_ips` table (#16667)
erikjohnston Nov 29, 2023
19dac97
Add a workflow to try and automatically fixup a PR (#16704)
erikjohnston Nov 29, 2023
a146784
Reduce DB load when forget on leave setting is disabled (#16668)
erikjohnston Nov 29, 2023
d6c3b75
Request & follow redirects for /media/v3/download (#16701)
clokep Nov 29, 2023
dcf949c
Declare support for Matrix v1.7, v1.8, and v1.9. (#16707)
clokep Nov 29, 2023
3a09269
Upgrade poetry-core range to fix issue with .so file (#16702)
thebalaa Nov 29, 2023
579c6be
Drop unused tables & unneeded access token ID for events. (#16522)
clokep Dec 1, 2023
63d96bf
ModuleAPI SSO auth callbacks (#15207)
yasinishyn Dec 1, 2023
a5c1434
Bump types-jsonschema from 4.19.0.4 to 4.20.0.0 (#16724)
dependabot[bot] Dec 4, 2023
dd02c63
Bump sphinx-autodoc2 from 0.4.2 to 0.5.0 (#16723)
dependabot[bot] Dec 4, 2023
c915b91
Bump cryptography from 41.0.6 to 41.0.7 (#16721)
dependabot[bot] Dec 4, 2023
2686a05
Bump idna from 3.4 to 3.6 (#16720)
dependabot[bot] Dec 4, 2023
d6e194b
Implement MSC4069: Inhibit profile propagation (#16636)
turt2live Dec 4, 2023
506f5c7
Bump matrix-org/netlify-pr-preview from 2 to 3 (#16719)
dependabot[bot] Dec 4, 2023
9e7f800
Server notices: add an autojoin setting for the notices room (#16699)
MatMaul Dec 4, 2023
15c46cf
Bump phonenumbers from 8.13.23 to 8.13.26 (#16722)
dependabot[bot] Dec 4, 2023
0aa4d3b
Switch UNIX socket paths to /run, and add a UNIX socket example for H…
villepeh Dec 4, 2023
51e4e35
Add a Postgres `REPLICA IDENTITY` to tables that do not have an impli…
reivilibre Dec 4, 2023
0bb8e41
Fix postgres schema after dropping old tables (#16730)
Dec 5, 2023
ea78355
Set response values to zero if None for /_synapse/admin/v1/federation…
Half-Shot Dec 5, 2023
e87499b
Add how to validate configuration file with synapse.config script (#1…
amandahla Dec 5, 2023
0a00c99
Fix upgrading a room without `events` field in power levels (#16725)
Dec 5, 2023
3c83d8f
1.98.0rc1
Dec 5, 2023
3866493
Fixup dependency bumps syntax in changelog
Dec 5, 2023
c8a24c5
Amend changelog typo
Dec 5, 2023
44377f5
Revert postgres logical replication deltaas
Dec 5, 2023
fcf3c49
Expose OIDC discovery information under the CSAPI (#16726)
Dec 6, 2023
aa983c7
Clarify documentation for `only_for_reauth` (#16737)
dklimpel Dec 7, 2023
10ada2f
Write signing keys with file mode 0640 (#16740)
Dec 8, 2023
483d22a
Adding a version picker for Synapse docs (#16533)
Dmytro27Ind Dec 11, 2023
ee37039
Version picker added for v1.98 docs
Dec 11, 2023
043bea8
Bump immutabledict from 3.0.0 to 4.0.0 (#16743)
dependabot[bot] Dec 12, 2023
438df1c
Bump pydantic from 2.5.1 to 2.5.2 (#16747)
dependabot[bot] Dec 12, 2023
7550f4d
Bump actions/setup-python from 4 to 5 (#16748)
dependabot[bot] Dec 12, 2023
eb03258
Bump actions/setup-go from 4 to 5 (#16749)
dependabot[bot] Dec 12, 2023
8275953
Bump ruff from 0.1.6 to 0.1.7 (#16746)
dependabot[bot] Dec 12, 2023
8782ec1
Bump isort from 5.12.0 to 5.13.0 (#16745)
dependabot[bot] Dec 12, 2023
9d22fe1
Bump types-setuptools from 68.2.0.2 to 69.0.0.0 (#16744)
dependabot[bot] Dec 12, 2023
1b93192
Bump isort from 5.13.0 to 5.13.1 (#16752)
dependabot[bot] Dec 12, 2023
9f6c644
Add config to change the delay before sending a notification email (#…
MatMaul Dec 12, 2023
128aad4
1.98.0
erikjohnston Dec 12, 2023
e108c31
Add avatar and topic settings for server notice room (#16679)
MatMaul Dec 12, 2023
15733b0
Update changelog
erikjohnston Dec 12, 2023
e108cde
Sentry Alert configuration based on production and development enviro…
zeeshanrafiqrana Dec 12, 2023
e85e0ef
Merge remote-tracking branch 'origin/master' into develop
erikjohnston Dec 12, 2023
e1f8440
Update the README pointing to the Element fork.
clokep Nov 21, 2023
70c020b
Update text
erikjohnston Dec 12, 2023
025951b
Merge remote-tracking branch 'origin/clokep/morg-readme' into develop
erikjohnston Dec 13, 2023
66fc265
Update README.rst
wrjlewis Dec 13, 2023
be65a8e
Update README.rst
wrjlewis Dec 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
91 changes: 91 additions & 0 deletions .ci/complement_package.gotpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{{- /*gotype: github.com/haveyoudebuggedit/gotestfmt/parser.Package*/ -}}
{{- /*
This template contains the format for an individual package. GitHub actions does not currently support nested groups so
we are creating a stylized header for each package.

This template is based on https://github.com/haveyoudebuggedit/gotestfmt/blob/f179b0e462a9dcf7101515d87eec4e4d7e58b92a/.gotestfmt/github/package.gotpl
which is under the Unlicense licence.
*/ -}}
{{- $settings := .Settings -}}
{{- if and (or (not $settings.HideSuccessfulPackages) (ne .Result "PASS")) (or (not $settings.HideEmptyPackages) (ne .Result "SKIP") (ne (len .TestCases) 0)) -}}
{{- if eq .Result "PASS" -}}
{{ "\033" }}[0;32m
{{- else if eq .Result "SKIP" -}}
{{ "\033" }}[0;33m
{{- else -}}
{{ "\033" }}[0;31m
{{- end -}}
📦 {{ .Name }}{{- "\033" }}[0m
{{- with .Coverage -}}
{{- "\033" -}}[0;37m ({{ . }}% coverage){{- "\033" -}}[0m
{{- end -}}
{{- "\n" -}}
{{- with .Reason -}}
{{- " " -}}🛑 {{ . -}}{{- "\n" -}}
{{- end -}}
{{- with .Output -}}
{{- . -}}{{- "\n" -}}
{{- end -}}
{{- with .TestCases -}}
{{- /* Passing tests are first */ -}}
{{- range . -}}
{{- if eq .Result "PASS" -}}
::group::{{ "\033" }}[0;32m✅{{ " " }}{{- .Name -}}
{{- "\033" -}}[0;37m ({{if $settings.ShowTestStatus}}{{.Result}}; {{end}}{{ .Duration -}}
{{- with .Coverage -}}
, coverage: {{ . }}%
{{- end -}})
{{- "\033" -}}[0m
{{- "\n" -}}

{{- with .Output -}}
{{- formatTestOutput . $settings -}}
{{- "\n" -}}
{{- end -}}

::endgroup::{{- "\n" -}}
{{- end -}}
{{- end -}}

{{- /* Then skipped tests are second */ -}}
{{- range . -}}
{{- if eq .Result "SKIP" -}}
::group::{{ "\033" }}[0;33m🚧{{ " " }}{{- .Name -}}
{{- "\033" -}}[0;37m ({{if $settings.ShowTestStatus}}{{.Result}}; {{end}}{{ .Duration -}}
{{- with .Coverage -}}
, coverage: {{ . }}%
{{- end -}})
{{- "\033" -}}[0m
{{- "\n" -}}

{{- with .Output -}}
{{- formatTestOutput . $settings -}}
{{- "\n" -}}
{{- end -}}

::endgroup::{{- "\n" -}}
{{- end -}}
{{- end -}}

{{- /* and failing tests are last */ -}}
{{- range . -}}
{{- if and (ne .Result "PASS") (ne .Result "SKIP") -}}
::group::{{ "\033" }}[0;31m❌{{ " " }}{{- .Name -}}
{{- "\033" -}}[0;37m ({{if $settings.ShowTestStatus}}{{.Result}}; {{end}}{{ .Duration -}}
{{- with .Coverage -}}
, coverage: {{ . }}%
{{- end -}})
{{- "\033" -}}[0m
{{- "\n" -}}

{{- with .Output -}}
{{- formatTestOutput . $settings -}}
{{- "\n" -}}
{{- end -}}

::endgroup::{{- "\n" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- "\n" -}}
{{- end -}}
4 changes: 4 additions & 0 deletions .ci/latest_deps_build_failed_issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: CI run against latest deps is failing
---
See https://github.com/{{env.GITHUB_REPOSITORY}}/actions/runs/{{env.GITHUB_RUN_ID}}
19 changes: 19 additions & 0 deletions .ci/postgres-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Configuration file used for testing the 'synapse_port_db' script.
# Tells the script to connect to the postgresql database that will be available in the
# CI's Docker setup at the point where this file is considered.
server_name: "localhost:8800"

signing_key_path: ".ci/test.signing.key"

report_stats: false

database:
name: "psycopg2"
args:
user: postgres
host: localhost
password: postgres
database: synapse

# Suppress the key server warning.
trusted_key_servers: []
141 changes: 141 additions & 0 deletions .ci/scripts/auditwheel_wrapper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
#!/usr/bin/env python
# Copyright 2022 The Matrix.org Foundation C.I.C.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Wraps `auditwheel repair` to first check if we're repairing a potentially abi3
# compatible wheel, if so rename the wheel before repairing it.

import argparse
import os
import subprocess
from typing import Optional
from zipfile import ZipFile

from packaging.tags import Tag
from packaging.utils import parse_wheel_filename
from packaging.version import Version


def check_is_abi3_compatible(wheel_file: str) -> None:
"""Check the contents of the built wheel for any `.so` files that are *not*
abi3 compatible.
"""

with ZipFile(wheel_file, "r") as wheel:
for file in wheel.namelist():
if not file.endswith(".so"):
continue

if not file.endswith(".abi3.so"):
raise Exception(f"Found non-abi3 lib: {file}")


def cpython(wheel_file: str, name: str, version: Version, tag: Tag) -> str:
"""Replaces the cpython wheel file with a ABI3 compatible wheel"""

if tag.abi == "abi3":
# Nothing to do.
return wheel_file

check_is_abi3_compatible(wheel_file)

# HACK: it seems that some older versions of pip will consider a wheel marked
# as macosx_11_0 as incompatible with Big Sur. I haven't done the full archaeology
# here; there are some clues in
# https://github.com/pantsbuild/pants/pull/12857
# https://github.com/pypa/pip/issues/9138
# https://github.com/pypa/packaging/pull/319
# Empirically this seems to work, note that macOS 11 and 10.16 are the same,
# both versions are valid for backwards compatibility.
platform = tag.platform.replace("macosx_11_0", "macosx_10_16")
abi3_tag = Tag(tag.interpreter, "abi3", platform)

dirname = os.path.dirname(wheel_file)
new_wheel_file = os.path.join(
dirname,
f"{name}-{version}-{abi3_tag}.whl",
)

os.rename(wheel_file, new_wheel_file)

print("Renamed wheel to", new_wheel_file)

return new_wheel_file


def main(wheel_file: str, dest_dir: str, archs: Optional[str]) -> None:
"""Entry point"""

# Parse the wheel file name into its parts. Note that `parse_wheel_filename`
# normalizes the package name (i.e. it converts matrix_synapse ->
# matrix-synapse), which is not what we want.
_, version, build, tags = parse_wheel_filename(os.path.basename(wheel_file))
name = os.path.basename(wheel_file).split("-")[0]

if len(tags) != 1:
# We expect only a wheel file with only a single tag
raise Exception(f"Unexpectedly found multiple tags: {tags}")

tag = next(iter(tags))

if build:
# We don't use build tags in Synapse
raise Exception(f"Unexpected build tag: {build}")

# If the wheel is for cpython then convert it into an abi3 wheel.
if tag.interpreter.startswith("cp"):
wheel_file = cpython(wheel_file, name, version, tag)

# Finally, repair the wheel.
if archs is not None:
# If we are given archs then we are on macos and need to use
# `delocate-listdeps`.
subprocess.run(["delocate-listdeps", wheel_file], check=True)
subprocess.run(
["delocate-wheel", "--require-archs", archs, "-w", dest_dir, wheel_file],
check=True,
)
else:
subprocess.run(["auditwheel", "repair", "-w", dest_dir, wheel_file], check=True)


if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Tag wheel as abi3 and repair it.")

parser.add_argument(
"--wheel-dir",
"-w",
metavar="WHEEL_DIR",
help="Directory to store delocated wheels",
required=True,
)

parser.add_argument(
"--require-archs",
metavar="archs",
default=None,
)

parser.add_argument(
"wheel_file",
metavar="WHEEL_FILE",
)

args = parser.parse_args()

wheel_file = args.wheel_file
wheel_dir = args.wheel_dir
archs = args.require_archs

main(wheel_file, wheel_dir, archs)
Loading