Skip to content

Commit 048508c

Browse files
committed
Merge with 'develop': PEP585 and always RETURNING
2 parents 2ec54e4 + 41a2762 commit 048508c

File tree

662 files changed

+7287
-7228
lines changed

Some content is hidden

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

662 files changed

+7287
-7228
lines changed

.ci/scripts/calculate_jobs.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ def set_output(key: str, value: str):
3636
# First calculate the various trial jobs.
3737
#
3838
# For PRs, we only run each type of test with the oldest Python version supported (which
39-
# is Python 3.9 right now)
39+
# is Python 3.10 right now)
4040

4141
trial_sqlite_tests = [
4242
{
43-
"python-version": "3.9",
43+
"python-version": "3.10",
4444
"database": "sqlite",
4545
"extras": "all",
4646
}
@@ -53,12 +53,12 @@ def set_output(key: str, value: str):
5353
"database": "sqlite",
5454
"extras": "all",
5555
}
56-
for version in ("3.10", "3.11", "3.12", "3.13")
56+
for version in ("3.11", "3.12", "3.13")
5757
)
5858

5959
trial_postgres_tests = [
6060
{
61-
"python-version": "3.9",
61+
"python-version": "3.10",
6262
"database": "postgres",
6363
"postgres-version": "13",
6464
"extras": "all",
@@ -77,7 +77,7 @@ def set_output(key: str, value: str):
7777

7878
trial_no_extra_tests = [
7979
{
80-
"python-version": "3.9",
80+
"python-version": "3.10",
8181
"database": "sqlite",
8282
"extras": "",
8383
}
@@ -99,24 +99,24 @@ def set_output(key: str, value: str):
9999

100100
# First calculate the various sytest jobs.
101101
#
102-
# For each type of test we only run on bullseye on PRs
102+
# For each type of test we only run on bookworm on PRs
103103

104104

105105
sytest_tests = [
106106
{
107-
"sytest-tag": "bullseye",
107+
"sytest-tag": "bookworm",
108108
},
109109
{
110-
"sytest-tag": "bullseye",
110+
"sytest-tag": "bookworm",
111111
"postgres": "postgres",
112112
},
113113
{
114-
"sytest-tag": "bullseye",
114+
"sytest-tag": "bookworm",
115115
"postgres": "multi-postgres",
116116
"workers": "workers",
117117
},
118118
{
119-
"sytest-tag": "bullseye",
119+
"sytest-tag": "bookworm",
120120
"postgres": "multi-postgres",
121121
"workers": "workers",
122122
"reactor": "asyncio",
@@ -127,11 +127,11 @@ def set_output(key: str, value: str):
127127
sytest_tests.extend(
128128
[
129129
{
130-
"sytest-tag": "bullseye",
130+
"sytest-tag": "bookworm",
131131
"reactor": "asyncio",
132132
},
133133
{
134-
"sytest-tag": "bullseye",
134+
"sytest-tag": "bookworm",
135135
"postgres": "postgres",
136136
"reactor": "asyncio",
137137
},

.github/workflows/docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
touch "${{ runner.temp }}/digests/${digest#sha256:}"
7676
7777
- name: Upload digest
78-
uses: actions/upload-artifact@v4
78+
uses: actions/upload-artifact@v5
7979
with:
8080
name: digests-${{ matrix.suffix }}
8181
path: ${{ runner.temp }}/digests/*
@@ -95,7 +95,7 @@ jobs:
9595
- build
9696
steps:
9797
- name: Download digests
98-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
98+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
9999
with:
100100
path: ${{ runner.temp }}/digests
101101
pattern: digests-*
@@ -120,7 +120,7 @@ jobs:
120120
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
121121

122122
- name: Install Cosign
123-
uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3.10.0
123+
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
124124

125125
- name: Calculate docker image tag
126126
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0

.github/workflows/docs-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
cp book/welcome_and_overview.html book/index.html
4040
4141
- name: Upload Artifact
42-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
42+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
4343
with:
4444
name: book
4545
path: book

.github/workflows/fix_lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ jobs:
4747
- run: cargo fmt
4848
continue-on-error: true
4949

50-
- uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
50+
- uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0
5151
with:
5252
commit_message: "Attempt to fix linting"

.github/workflows/latest_deps.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ jobs:
139139
fail-fast: false
140140
matrix:
141141
include:
142-
- sytest-tag: bullseye
142+
- sytest-tag: bookworm
143143

144-
- sytest-tag: bullseye
144+
- sytest-tag: bookworm
145145
postgres: postgres
146146
workers: workers
147147
redis: redis
@@ -173,7 +173,7 @@ jobs:
173173
if: ${{ always() }}
174174
run: /sytest/scripts/tap_to_gha.pl /logs/results.tap
175175
- name: Upload SyTest logs
176-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
176+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
177177
if: ${{ always() }}
178178
with:
179179
name: Sytest Logs - ${{ job.status }} - (${{ join(matrix.*, ', ') }})

.github/workflows/release-artifacts.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
echo "ARTIFACT_NAME=${DISTRO#*:}" >> "$GITHUB_OUTPUT"
102102
103103
- name: Upload debs as artifacts
104-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
104+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
105105
with:
106106
name: debs-${{ steps.artifact-name.outputs.ARTIFACT_NAME }}
107107
path: debs/*
@@ -145,7 +145,7 @@ jobs:
145145

146146
- name: Only build a single wheel on PR
147147
if: startsWith(github.ref, 'refs/pull/')
148-
run: echo "CIBW_BUILD="cp39-manylinux_*"" >> $GITHUB_ENV
148+
run: echo "CIBW_BUILD="cp310-manylinux_*"" >> $GITHUB_ENV
149149

150150
- name: Build wheels
151151
run: python -m cibuildwheel --output-dir wheelhouse
@@ -154,7 +154,7 @@ jobs:
154154
# for, and so need extra build deps.
155155
CIBW_TEST_SKIP: pp3*-* *i686* *musl*
156156

157-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
157+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
158158
with:
159159
name: Wheel-${{ matrix.os }}
160160
path: ./wheelhouse/*.whl
@@ -175,7 +175,7 @@ jobs:
175175
- name: Build sdist
176176
run: python -m build --sdist
177177

178-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
178+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
179179
with:
180180
name: Sdist
181181
path: dist/*.tar.gz
@@ -191,7 +191,7 @@ jobs:
191191
runs-on: ubuntu-latest
192192
steps:
193193
- name: Download all workflow run artifacts
194-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
194+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
195195
- name: Build a tarball for the debs
196196
# We need to merge all the debs uploads into one folder, then compress
197197
# that.
@@ -200,16 +200,11 @@ jobs:
200200
mv debs*/* debs/
201201
tar -cvJf debs.tar.xz debs
202202
- name: Attach to release
203-
# Pinned to work around https://github.com/softprops/action-gh-release/issues/445
204-
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v0.1.15
205203
env:
206204
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
207-
with:
208-
files: |
209-
Sdist/*
210-
Wheel*/*
211-
debs.tar.xz
212-
# if it's not already published, keep the release as a draft.
213-
draft: true
214-
# mark it as a prerelease if the tag contains 'rc'.
215-
prerelease: ${{ contains(github.ref, 'rc') }}
205+
run: |
206+
gh release upload "${{ github.ref_name }}" \
207+
Sdist/* \
208+
Wheel*/* \
209+
debs.tar.xz \
210+
--repo ${{ github.repository }}

.github/workflows/tests.yml

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -207,26 +207,6 @@ jobs:
207207
env:
208208
PULL_REQUEST_NUMBER: ${{ github.event.number }}
209209

210-
lint-pydantic:
211-
runs-on: ubuntu-latest
212-
needs: changes
213-
if: ${{ needs.changes.outputs.linting == 'true' }}
214-
215-
steps:
216-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
217-
with:
218-
ref: ${{ github.event.pull_request.head.sha }}
219-
- name: Install Rust
220-
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
221-
with:
222-
toolchain: ${{ env.RUST_VERSION }}
223-
- uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
224-
- uses: matrix-org/setup-python-poetry@5bbf6603c5c930615ec8a29f1b5d7d258d905aa4 # v2.0.0
225-
with:
226-
poetry-version: "2.1.1"
227-
extras: "all"
228-
- run: poetry run scripts-dev/check_pydantic_models.py
229-
230210
lint-clippy:
231211
runs-on: ubuntu-latest
232212
needs: changes
@@ -341,7 +321,6 @@ jobs:
341321
- lint-mypy
342322
- lint-crlf
343323
- lint-newsfile
344-
- lint-pydantic
345324
- check-sampleconfig
346325
- check-schema-delta
347326
- check-lockfile
@@ -363,7 +342,6 @@ jobs:
363342
lint
364343
lint-mypy
365344
lint-newsfile
366-
lint-pydantic
367345
lint-clippy
368346
lint-clippy-nightly
369347
lint-rust
@@ -470,7 +448,7 @@ jobs:
470448
471449
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
472450
with:
473-
python-version: '3.9'
451+
python-version: '3.10'
474452

475453
- name: Prepare old deps
476454
if: steps.cache-poetry-old-deps.outputs.cache-hit != 'true'
@@ -514,7 +492,7 @@ jobs:
514492
runs-on: ubuntu-latest
515493
strategy:
516494
matrix:
517-
python-version: ["pypy-3.9"]
495+
python-version: ["pypy-3.10"]
518496
extras: ["all"]
519497

520498
steps:
@@ -585,7 +563,7 @@ jobs:
585563
if: ${{ always() }}
586564
run: /sytest/scripts/tap_to_gha.pl /logs/results.tap
587565
- name: Upload SyTest logs
588-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
566+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
589567
if: ${{ always() }}
590568
with:
591569
name: Sytest Logs - ${{ job.status }} - (${{ join(matrix.job.*, ', ') }})
@@ -638,7 +616,7 @@ jobs:
638616
strategy:
639617
matrix:
640618
include:
641-
- python-version: "3.9"
619+
- python-version: "3.10"
642620
postgres-version: "13"
643621

644622
- python-version: "3.13"
@@ -683,7 +661,7 @@ jobs:
683661
PGPASSWORD: postgres
684662
PGDATABASE: postgres
685663
- name: "Upload schema differences"
686-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
664+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
687665
if: ${{ failure() && !cancelled() && steps.run_tester_script.outcome == 'failure' }}
688666
with:
689667
name: Schema dumps

.github/workflows/twisted_trunk.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ jobs:
108108
if: needs.check_repo.outputs.should_run_workflow == 'true'
109109
runs-on: ubuntu-latest
110110
container:
111-
# We're using debian:bullseye because it uses Python 3.9 which is our minimum supported Python version.
111+
# We're using bookworm because that's what Debian oldstable is at the time of writing.
112112
# This job is a canary to warn us about unreleased twisted changes that would cause problems for us if
113113
# they were to be released immediately. For simplicity's sake (and to save CI runners) we use the oldest
114114
# version, assuming that any incompatibilities on newer versions would also be present on the oldest.
115-
image: matrixdotorg/sytest-synapse:bullseye
115+
image: matrixdotorg/sytest-synapse:bookworm
116116
volumes:
117117
- ${{ github.workspace }}:/src
118118

@@ -147,7 +147,7 @@ jobs:
147147
if: ${{ always() }}
148148
run: /sytest/scripts/tap_to_gha.pl /logs/results.tap
149149
- name: Upload SyTest logs
150-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
150+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
151151
if: ${{ always() }}
152152
with:
153153
name: Sytest Logs - ${{ job.status }} - (${{ join(matrix.*, ', ') }})

0 commit comments

Comments
 (0)