Skip to content

Commit 2927008

Browse files
committed
Merge branch 'release-v1.99'
2 parents e9eba08 + 7d57c2c commit 2927008

File tree

1,211 files changed

+21442
-9670
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,211 files changed

+21442
-9670
lines changed

.ci/scripts/auditwheel_wrapper.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
#!/usr/bin/env python
2-
# Copyright 2022 The Matrix.org Foundation C.I.C.
32
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
3+
# This file is licensed under the Affero General Public License (AGPL) version 3.
4+
#
5+
# Copyright (C) 2023 New Vector, Ltd
6+
#
7+
# This program is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU Affero General Public License as
9+
# published by the Free Software Foundation, either version 3 of the
10+
# License, or (at your option) any later version.
11+
#
12+
# See the GNU Affero General Public License for more details:
13+
# <https://www.gnu.org/licenses/agpl-3.0.html>.
14+
#
15+
# Originally licensed under the Apache License, Version 2.0:
16+
# <http://www.apache.org/licenses/LICENSE-2.0>.
17+
#
18+
# [This file includes modifications made by New Vector Limited]
719
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
920
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
1521

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

.ci/scripts/calculate_jobs.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
#!/usr/bin/env python
2-
# Copyright 2022 The Matrix.org Foundation C.I.C.
32
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
3+
# This file is licensed under the Affero General Public License (AGPL) version 3.
4+
#
5+
# Copyright (C) 2023 New Vector, Ltd
6+
#
7+
# This program is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU Affero General Public License as
9+
# published by the Free Software Foundation, either version 3 of the
10+
# License, or (at your option) any later version.
11+
#
12+
# See the GNU Affero General Public License for more details:
13+
# <https://www.gnu.org/licenses/agpl-3.0.html>.
14+
#
15+
# Originally licensed under the Apache License, Version 2.0:
16+
# <http://www.apache.org/licenses/LICENSE-2.0>.
17+
#
18+
# [This file includes modifications made by New Vector Limited]
719
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
920
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
1521

1622
# Calculate the trial jobs to run based on if we're in a PR or not.
1723

.ci/scripts/check_lockfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"""\
1818
Lockfile is not version 2.0. You probably need to upgrade poetry on your local box
1919
and re-run `poetry lock --no-update`. See the Poetry cheat sheet at
20-
https://matrix-org.github.io/synapse/develop/development/dependencies.html
20+
https://element-hq.github.io/synapse/develop/development/dependencies.html
2121
"""
2222
)
2323
raise

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Automatically request reviews from the synapse-core team when a pull request comes in.
2-
* @matrix-org/synapse-core
2+
* @element-hq/synapse-core

.github/FUNDING.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/BUG_REPORT.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ body:
8686
8787
If PostgreSQL, please also answer the following:
8888
- are you using a single PostgreSQL server
89-
or [separate servers for `main` and `state`](https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#databases)?
89+
or [separate servers for `main` and `state`](https://vector-im.github.io/synapse/latest/usage/configuration/config_documentation.html#databases)?
9090
- have you previously ported from SQLite using the Synapse "portdb" script?
9191
- have you previously restored from a backup?
9292
validations:
@@ -97,7 +97,7 @@ body:
9797
label: Workers
9898
description: |
9999
Are you running a single Synapse process, or are you running
100-
[2 or more workers](https://matrix-org.github.io/synapse/latest/workers.html)?
100+
[2 or more workers](https://vector-im.github.io/synapse/latest/workers.html)?
101101
options:
102102
- Single process
103103
- Multiple workers
@@ -121,9 +121,9 @@ body:
121121
Do you have any unusual config options turned on? If so, please provide details.
122122
123123
- Experimental or undocumented features
124-
- [Presence](https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#presence)
125-
- [Message retention](https://matrix-org.github.io/synapse/latest/message_retention_policies.html)
126-
- [Synapse modules](https://matrix-org.github.io/synapse/latest/modules/index.html)
124+
- [Presence](https://vector-im.github.io/synapse/latest/usage/configuration/config_documentation.html#presence)
125+
- [Message retention](https://vector-im.github.io/synapse/latest/message_retention_policies.html)
126+
- [Synapse modules](https://vector-im.github.io/synapse/latest/modules/index.html)
127127
- type: textarea
128128
id: logs
129129
attributes:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
### Pull Request Checklist
22

3-
<!-- Please read https://matrix-org.github.io/synapse/latest/development/contributing_guide.html before submitting your pull request -->
3+
<!-- Please read https://element-hq.github.io/synapse/latest/development/contributing_guide.html before submitting your pull request -->
44

55
* [ ] Pull request is based on the develop branch
6-
* [ ] Pull request includes a [changelog file](https://matrix-org.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should:
6+
* [ ] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should:
77
- Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from `EventStore` to `EventWorkerStore`.".
88
- Use markdown where necessary, mostly for `code blocks`.
99
- End with either a period (.) or an exclamation mark (!).
1010
- Start with a capital letter.
1111
- Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry.
12-
* [ ] Pull request includes a [sign off](https://matrix-org.github.io/synapse/latest/development/contributing_guide.html#sign-off)
13-
* [ ] [Code style](https://matrix-org.github.io/synapse/latest/code_style.html) is correct
14-
(run the [linters](https://matrix-org.github.io/synapse/latest/development/contributing_guide.html#run-the-linters))
12+
* [ ] Pull request includes a [sign off](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#sign-off)
13+
* [ ] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct
14+
(run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters))

.github/workflows/docker.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
permissions:
1212
contents: read
1313
packages: write
14-
14+
id-token: write # needed for signing the images with GitHub OIDC Token
1515
jobs:
1616
build:
1717
runs-on: ubuntu-latest
@@ -29,6 +29,9 @@ jobs:
2929
- name: Inspect builder
3030
run: docker buildx inspect
3131

32+
- name: Install Cosign
33+
uses: sigstore/cosign-installer@v3.3.0
34+
3235
- name: Checkout repository
3336
uses: actions/checkout@v4
3437

@@ -58,7 +61,7 @@ jobs:
5861
with:
5962
images: |
6063
docker.io/matrixdotorg/synapse
61-
ghcr.io/matrix-org/synapse
64+
ghcr.io/element-hq/synapse
6265
flavor: |
6366
latest=false
6467
tags: |
@@ -68,6 +71,7 @@ jobs:
6871
type=pep440,pattern={{raw}}
6972
7073
- name: Build and push all platforms
74+
id: build-and-push
7175
uses: docker/build-push-action@v5
7276
with:
7377
push: true
@@ -82,3 +86,14 @@ jobs:
8286
# https://github.com/rust-lang/cargo/issues/10583
8387
build-args: |
8488
CARGO_NET_GIT_FETCH_WITH_CLI=true
89+
90+
- name: Sign the images with GitHub OIDC Token
91+
env:
92+
DIGEST: ${{ steps.build-and-push.outputs.digest }}
93+
TAGS: ${{ steps.set-tag.outputs.tags }}
94+
run: |
95+
images=""
96+
for tag in ${TAGS}; do
97+
images+="${tag}@${DIGEST} "
98+
done
99+
cosign sign --yes ${images}

.github/workflows/docs-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
mdbook-version: '0.4.17'
2525

2626
- name: Setup python
27-
uses: actions/setup-python@v4
27+
uses: actions/setup-python@v5
2828
with:
2929
python-version: "3.x"
3030

.github/workflows/docs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ jobs:
6060
with:
6161
mdbook-version: '0.4.17'
6262

63+
- name: Set version of docs
64+
run: echo 'window.SYNAPSE_VERSION = "${{ needs.pre.outputs.branch-version }}";' > ./docs/website_files/version.js
65+
6366
- name: Setup python
64-
uses: actions/setup-python@v4
67+
uses: actions/setup-python@v5
6568
with:
6669
python-version: "3.x"
6770

0 commit comments

Comments
 (0)