Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop' into docs_add_alpine-package
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Sep 13, 2023
2 parents ba1b6d0 + 032cf84 commit e7d7f1b
Show file tree
Hide file tree
Showing 48 changed files with 395 additions and 554 deletions.
27 changes: 27 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
# Synapse 1.92.1 (2023-09-12)

This minor release was needed only because of CI-related trouble on [v1.92.0](https://github.com/matrix-org/synapse/releases/tag/v1.92.0), which was never released.

### Internal Changes

- Stop building Ubuntu Kinetic since it is EOL and repos seem to be dead.


# Synapse 1.92.0 (2023-09-12)

This release includes the same [bugfix](https://github.com/matrix-org/synapse/issues/16258) as Synapse 1.91.2.

This version was never released following a CI build failure, cf [v1.92.1 changelog](https://github.com/matrix-org/synapse/releases/tag/v1.92.1).

### Bugfixes

- Revert [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) introspection cache, admin impersonation and account lock. ([\#16258](https://github.com/matrix-org/synapse/issues/16258))

### Internal Changes

- Fix incorrect docstring for `Ratelimiter`. ([\#16255](https://github.com/matrix-org/synapse/issues/16255))
- Update the release script to work on macOS. ([\#16266](https://github.com/matrix-org/synapse/issues/16266))


# Synapse 1.91.2 (2023-09-06)

### Bugfixes

- Revert [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) introspection cache, admin impersonation and account lock. ([\#16258](https://github.com/matrix-org/synapse/issues/16258))


# Synapse 1.92.0rc1 (2023-09-05)

### Features
Expand Down Expand Up @@ -59,6 +85,7 @@
* Bump types-psycopg2 from 2.9.21.10 to 2.9.21.11. ([\#16200](https://github.com/matrix-org/synapse/issues/16200))
* Bump types-pyyaml from 6.0.12.10 to 6.0.12.11. ([\#16199](https://github.com/matrix-org/synapse/issues/16199))


# Synapse 1.91.1 (2023-09-04)

### Bugfixes
Expand Down
1 change: 0 additions & 1 deletion changelog.d/16255.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16258.bugfix

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/16261.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Simplify server key storage.
1 change: 1 addition & 0 deletions changelog.d/16273.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Stop purging from tables slated for removal.
1 change: 1 addition & 0 deletions changelog.d/16288.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug introduced in Synapse 1.49.0 when using dehydrated devices ([MSC2697](https://github.com/matrix-org/matrix-spec-proposals/pull/2697)) and refresh tokens. Contributed by Hanadi.
1 change: 1 addition & 0 deletions changelog.d/16300.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump mypy from 1.4.1 to 1.5.1.
1 change: 1 addition & 0 deletions changelog.d/16301.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve type hints.
1 change: 1 addition & 0 deletions changelog.d/16309.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Small improvements to logging in replication code.
1 change: 1 addition & 0 deletions changelog.d/16311.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Delete device messages asynchronously and in staged batches using the task scheduler.
1 change: 1 addition & 0 deletions changelog.d/16312.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Delete device messages asynchronously and in staged batches using the task scheduler.
1 change: 1 addition & 0 deletions changelog.d/16314.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove a reference cycle for in background processes.
12 changes: 12 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
matrix-synapse-py3 (1.92.1) stable; urgency=medium

* New Synapse release 1.92.1.

-- Synapse Packaging team <[email protected]> Tue, 12 Sep 2023 13:19:42 +0200

matrix-synapse-py3 (1.92.0) stable; urgency=medium

* New Synapse release 1.92.0.

-- Synapse Packaging team <[email protected]> Tue, 12 Sep 2023 11:59:23 +0200

matrix-synapse-py3 (1.91.2) stable; urgency=medium

* New synapse release 1.91.2.
Expand Down
1 change: 0 additions & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ warn_unused_ignores = True
# warn_return_any = True
# no_implicit_reexport = True
strict_equality = True
strict_concatenate = True

# Run mypy type checking with the minimum supported Python version to catch new usage
# that isn't backwards-compatible (types, overloads, etc).
Expand Down
68 changes: 29 additions & 39 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ manifest-path = "rust/Cargo.toml"

[tool.poetry]
name = "matrix-synapse"
version = "1.92.0rc1"
version = "1.92.1"
description = "Homeserver for the Matrix decentralised comms protocol"
authors = ["Matrix.org Team and Contributors <[email protected]>"]
license = "Apache-2.0"
Expand Down
1 change: 0 additions & 1 deletion scripts-dev/build_debian_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"debian:sid", # (EOL not specified yet) (our EOL forced by Python 3.11 is 2027-10-24)
"ubuntu:focal", # 20.04 LTS (EOL 2025-04) (our EOL forced by Python 3.8 is 2024-10-14)
"ubuntu:jammy", # 22.04 LTS (EOL 2027-04) (our EOL forced by Python 3.10 is 2026-10-04)
"ubuntu:kinetic", # 22.10 (EOL 2023-07-20) (our EOL forced by Python 3.10 is 2026-10-04)
"ubuntu:lunar", # 23.04 (EOL 2024-01) (our EOL forced by Python 3.11 is 2027-10-24)
"debian:trixie", # (EOL not specified yet)
)
Expand Down
46 changes: 30 additions & 16 deletions scripts-dev/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,17 @@ def _prepare() -> None:
else:
debian_version = new_version

run_until_successful(
f'dch -M -v {debian_version} "New Synapse release {new_version}."',
shell=True,
)
run_until_successful('dch -M -r -D stable ""', shell=True)
if sys.platform == "darwin":
run_until_successful(
f"docker run --rm -v .:/synapse ubuntu:latest /synapse/scripts-dev/docker_update_debian_changelog.sh {new_version}",
shell=True,
)
else:
run_until_successful(
f'dch -M -v {debian_version} "New Synapse release {new_version}."',
shell=True,
)
run_until_successful('dch -M -r -D stable ""', shell=True)

# Show the user the changes and ask if they want to edit the change log.
synapse_repo.git.add("-u")
Expand Down Expand Up @@ -566,19 +572,27 @@ def _notify(message: str) -> None:
# for this.
click.echo(f"\a{message}")

app_name = "Synapse Release Script"

# Try and run notify-send, but don't raise an Exception if this fails
# (This is best-effort)
# TODO Support other platforms?
subprocess.run(
[
"notify-send",
"--app-name",
"Synapse Release Script",
"--expire-time",
"3600000",
message,
]
)
if sys.platform == "darwin":
# See https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW224
subprocess.run(
f"""osascript -e 'display notification "{message}" with title "{app_name}"'""",
shell=True,
)
else:
subprocess.run(
[
"notify-send",
"--app-name",
app_name,
"--expire-time",
"3600000",
message,
]
)


@cli.command()
Expand Down
Loading

0 comments on commit e7d7f1b

Please sign in to comment.