Skip to content

Commit fdb36e0

Browse files
committed
Merge branch 'develop' into unraid_develop
2 parents d045aea + e9a4343 commit fdb36e0

File tree

13 files changed

+62
-103
lines changed

13 files changed

+62
-103
lines changed

.ci/scripts/calculate_jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def set_output(key: str, value: str):
6464
{
6565
"python-version": "3.11",
6666
"database": "postgres",
67-
"postgres-version": "14",
67+
"postgres-version": "15",
6868
"extras": "all",
6969
}
7070
)

.github/workflows/docs-pr-netlify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# There's a 'download artifact' action, but it hasn't been updated for the workflow_run action
1515
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
1616
- name: 📥 Download artifact
17-
uses: dawidd6/action-download-artifact@46b4ae883bf0726f5949d025d31cb62c7a5ac70c # v2.24.0
17+
uses: dawidd6/action-download-artifact@b12b127cf24433d14b4f93cee62f5465076ba82a # v2.24.1
1818
with:
1919
workflow: docs-pr.yaml
2020
run_id: ${{ github.event.workflow_run.id }}

.github/workflows/tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ jobs:
451451
postgres-version: "11"
452452

453453
- python-version: "3.11"
454-
postgres-version: "14"
454+
postgres-version: "15"
455455

456456
services:
457457
postgres:
@@ -469,6 +469,15 @@ jobs:
469469
470470
steps:
471471
- uses: actions/checkout@v3
472+
- name: Add PostgreSQL apt repository
473+
# We need a version of pg_dump that can handle the version of
474+
# PostgreSQL being tested against. The Ubuntu package repository lags
475+
# behind new releases, so we have to use the PostreSQL apt repository.
476+
# Steps taken from https://www.postgresql.org/download/linux/ubuntu/
477+
run: |
478+
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
479+
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
480+
sudo apt-get update
472481
- run: sudo apt-get -qq install xmlsec1 postgresql-client
473482
- uses: realtyem/setup-python-poetry@develop
474483
with:

changelog.d/14294.docker

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove references to legacy worker types in the multi-worker Dockerfile.

changelog.d/14394.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Test against PostgreSQL 15 in CI.

changelog.d/14396.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Build Debian packages for Ubuntu 22.10 (Kinetic Kudu).

changelog.d/14397.removal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove support for PostgreSQL 10.

changelog.d/14398.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump dawidd6/action-download-artifact from 2.24.0 to 2.24.1.

docker/configure_workers_and_start.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# * SYNAPSE_SERVER_NAME: The desired server_name of the homeserver.
2121
# * SYNAPSE_REPORT_STATS: Whether to report stats.
2222
# * SYNAPSE_WORKER_TYPES: A comma separated list of worker names as specified in WORKER_CONFIG
23-
# below. Leave empty for no workers, or set to '*' for all possible workers.
23+
# below. Leave empty for no workers.
2424
# * SYNAPSE_AS_REGISTRATION_DIR: If specified, a directory in which .yaml and .yml files
2525
# will be treated as Application Service registration files.
2626
# * SYNAPSE_TLS_CERT: Path to a TLS certificate in PEM format.
@@ -367,7 +367,7 @@ def add_worker_roles_to_shared_config(
367367
worker_port: int,
368368
) -> None:
369369
"""Given a dictionary representing a config file shared across all workers,
370-
append sharded worker information to it for the current worker_type instance.
370+
append appropriate worker information to it for the current worker_type instance.
371371
372372
Args:
373373
shared_config: The config dict that all worker instances share (after being converted to YAML)
@@ -400,7 +400,7 @@ def add_worker_roles_to_shared_config(
400400

401401
elif worker_type in ["account_data", "presence", "receipts", "to_device", "typing"]:
402402
# Update the list of stream writers
403-
# It's convienent that the name of the worker type is the same as the event stream
403+
# It's convenient that the name of the worker type is the same as the stream to write
404404
shared_config.setdefault("stream_writers", {}).setdefault(
405405
worker_type, []
406406
).append(worker_name)
@@ -556,8 +556,7 @@ def generate_worker_files(
556556
if worker_config:
557557
worker_config = worker_config.copy()
558558
else:
559-
log(worker_type + " is an unknown worker type! It will be ignored")
560-
continue
559+
error(worker_type + " is an unknown worker type! Please fix!")
561560

562561
new_worker_count = worker_type_counter.setdefault(worker_type, 0) + 1
563562
worker_type_counter[worker_type] = new_worker_count

scripts-dev/build_debian_packages.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"debian:sid",
2828
"ubuntu:focal", # 20.04 LTS (our EOL forced by Py38 on 2024-10-14)
2929
"ubuntu:jammy", # 22.04 LTS (EOL 2027-04)
30+
"ubuntu:kinetic", # 22.10 (EOL 2023-07-20)
3031
)
3132

3233
DESC = """\

0 commit comments

Comments
 (0)