From aea80a0118270807feb6e679d3d65562e9c9e512 Mon Sep 17 00:00:00 2001 From: Neil Johnson Date: Mon, 14 May 2018 15:50:57 +0100 Subject: [PATCH 1/4] v0.29.0-rc1: bump version and change log --- CHANGES.rst | 66 +++++++++++++++++++++++++++++++++++++++++++-- synapse/__init__.py | 2 +- 2 files changed, 65 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 9d40b2ac1..a5c3848bc 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,5 +1,9 @@ -Changes in synapse -=============================== +Changes in synapse v0.29.0-rc1 (2018-05-14) +=========================================== + +Notable changes, a docker file for running Synapse (Thanks to @kaiyou!) and a +closed spec bug in the Client Server API. Additionally further prep for Python 3 +migration. Potentially breaking change: @@ -12,6 +16,64 @@ Potentially breaking change: Thanks to @NotAFile for fixing this. +Features: + +* Add a Dockerfile for synapse (PR #2846) Thanks to @kaiyou! + +Changes: + +* nuke-room-from-db.sh: added postgresql option and help (PR #2337) Thanks to @rubo77! +* Make 'unexpected logging context' into warnings (PR #3007) +* Open certificate files as bytes (PR #3084) Thanks to @NotAFile! +* Open config file in non-bytes mode (PR #3085) Thanks to @NotAFile! +* Make event properties raise AttributeError instead (PR #3102) Thanks to @NotAFile! +* Use six.moves.urlparse (PR #3108) Thanks to @NotAFile! +* Use deferred.addTimeout instead of time_bound_deferred (PR #3127) +* remove duplicates from groups tables (PR #3129) +* Miscellaneous fixes to python_dependencies (PR #3136) +* Improve exception handling for background processes (PR #3138) +* Add missing consumeErrors to improve exception handling (PR #3139) +* Use run_in_background in preference to preserve_fn (PR #3140) +* Refactor event storage to prepare for changes in state calculations (PR #3141) +* reraise exceptions more carefully (PR #3142) +* Remove redundant call to preserve_fn (PR #3143) +* Trap exceptions thrown within run_in_background (PR #3144) +* Add py3 tests to tox with folders that work (PR #3145) Thanks to @NotAFile! +* Don't yield in list comprehensions (PR #3150) Thanks to @NotAFile! +* Move more xrange to six (PR #3151) Thanks to @NotAFile! +* make imports local (PR #3152) Thanks to @NotAFile! +* move httplib import to six (PR #3153) Thanks to @NotAFile! +* Replace stringIO imports with six (PR #3154) Thanks to @NotAFile! +* more bytes strings (PR #3155) Thanks to @NotAFile! +* Construct HMAC as bytes on py3 (PR #3156) Thanks to @NotAFile! +* run config tests on py3 (PR #3159) Thanks to @NotAFile! +* add guard for None on purge_history api (PR #3160) Thanks to @krombel! +* Refactor /context to reuse pagination storage functions (PR #3193) +* Refactor recent events func to use pagination func (PR #3195) +* Refactor pagination DB API to return concrete type (PR #3196) +* Refactor get_recent_events_for_room return type (PR #3198) +* Refactor sync APIs to reuse pagination API (PR #3199) +* Remove unused code path from member change DB func (PR #3200) +* Part user from rooms on account deactivate (PR #3201) +* Refactor request handling wrappers (PR #3203) +* transaction_id, destination defined twice (PR #3209) Thanks to @damir-manapov! + +Bug Fixes: + +* synapse fails to start under Twisted >= 18.4 (PR #3135) +* Fix incorrect reference to StringIO (PR #3168) +* Fix a class of logcontext leaks (PR #3170) +* Fix a couple of logcontext leaks in unit tests (PR #3172) +* Fix logcontext leak in media repo (PR #3174) +* Escape label values in prometheus metrics (PR #3175) +* fix http request timeout code (PR #3178) +* Fix 'Unhandled Error' logs with Twisted 18.4 (PR #3182) Thanks to @Half-Shot! +* Fix logcontext leaks in rate limiter (PR #3183) +* Fix metrics that have integer value labels (PR #3186) +* notifications: Convert next_token to string according to the spec (PR #3190) Thanks to @mujx! +* nuke-room-from-db.sh: fix deletion from search table (PR #3194) Thanks to @rubo77! +* Set Server header in SynapseRequest (PR #3208) + Changes in synapse v0.28.1 (2018-05-01) ======================================= diff --git a/synapse/__init__.py b/synapse/__init__.py index f31cb9a3c..69c081eb3 100644 --- a/synapse/__init__.py +++ b/synapse/__init__.py @@ -16,4 +16,4 @@ """ This is a reference implementation of a Matrix home server. """ -__version__ = "0.28.1" +__version__ = "0.29.0-rc1" From e71fb118f4d57f0c77647aa6fcabe36c08e31b20 Mon Sep 17 00:00:00 2001 From: Neil Johnson Date: Mon, 14 May 2018 17:39:22 +0100 Subject: [PATCH 2/4] rearrange and collect related PRs --- CHANGES.rst | 53 +++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index a5c3848bc..aed8525f2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -20,60 +20,61 @@ Features: * Add a Dockerfile for synapse (PR #2846) Thanks to @kaiyou! -Changes: +Changes - General: * nuke-room-from-db.sh: added postgresql option and help (PR #2337) Thanks to @rubo77! +* Part user from rooms on account deactivate (PR #3201) * Make 'unexpected logging context' into warnings (PR #3007) -* Open certificate files as bytes (PR #3084) Thanks to @NotAFile! -* Open config file in non-bytes mode (PR #3085) Thanks to @NotAFile! -* Make event properties raise AttributeError instead (PR #3102) Thanks to @NotAFile! -* Use six.moves.urlparse (PR #3108) Thanks to @NotAFile! -* Use deferred.addTimeout instead of time_bound_deferred (PR #3127) +* Set Server header in SynapseRequest (PR #3208) +* Use deferred.addTimeout instead of time_bound_deferred (PR #3127, #3178) * remove duplicates from groups tables (PR #3129) -* Miscellaneous fixes to python_dependencies (PR #3136) * Improve exception handling for background processes (PR #3138) * Add missing consumeErrors to improve exception handling (PR #3139) * Use run_in_background in preference to preserve_fn (PR #3140) -* Refactor event storage to prepare for changes in state calculations (PR #3141) * reraise exceptions more carefully (PR #3142) * Remove redundant call to preserve_fn (PR #3143) * Trap exceptions thrown within run_in_background (PR #3144) -* Add py3 tests to tox with folders that work (PR #3145) Thanks to @NotAFile! -* Don't yield in list comprehensions (PR #3150) Thanks to @NotAFile! -* Move more xrange to six (PR #3151) Thanks to @NotAFile! -* make imports local (PR #3152) Thanks to @NotAFile! -* move httplib import to six (PR #3153) Thanks to @NotAFile! -* Replace stringIO imports with six (PR #3154) Thanks to @NotAFile! -* more bytes strings (PR #3155) Thanks to @NotAFile! -* Construct HMAC as bytes on py3 (PR #3156) Thanks to @NotAFile! -* run config tests on py3 (PR #3159) Thanks to @NotAFile! -* add guard for None on purge_history api (PR #3160) Thanks to @krombel! + +Changes - Refactors: + * Refactor /context to reuse pagination storage functions (PR #3193) * Refactor recent events func to use pagination func (PR #3195) * Refactor pagination DB API to return concrete type (PR #3196) * Refactor get_recent_events_for_room return type (PR #3198) * Refactor sync APIs to reuse pagination API (PR #3199) * Remove unused code path from member change DB func (PR #3200) -* Part user from rooms on account deactivate (PR #3201) * Refactor request handling wrappers (PR #3203) * transaction_id, destination defined twice (PR #3209) Thanks to @damir-manapov! +* Refactor event storage to prepare for changes in state calculations (PR #3141) + +Changes - Python 3 migration: + +* Construct HMAC as bytes on py3 (PR #3156) Thanks to @NotAFile! +* run config tests on py3 (PR #3159) Thanks to @NotAFile! +* Open certificate files as bytes (PR #3084) Thanks to @NotAFile! +* Open config file in non-bytes mode (PR #3085) Thanks to @NotAFile! +* Make event properties raise AttributeError instead (PR #3102) Thanks to @NotAFile! +* Use six.moves.urlparse (PR #3108) Thanks to @NotAFile! +* Add py3 tests to tox with folders that work (PR #3145) Thanks to @NotAFile! +* Don't yield in list comprehensions (PR #3150) Thanks to @NotAFile! +* Move more xrange to six (PR #3151) Thanks to @NotAFile! +* make imports local (PR #3152) Thanks to @NotAFile! +* move httplib import to six (PR #3153) Thanks to @NotAFile! +* Replace stringIO imports with six (PR #3154, #3168) Thanks to @NotAFile! +* more bytes strings (PR #3155) Thanks to @NotAFile! Bug Fixes: -* synapse fails to start under Twisted >= 18.4 (PR #3135) -* Fix incorrect reference to StringIO (PR #3168) +* synapse fails to start under Twisted >= 18.4 (PR #3157) * Fix a class of logcontext leaks (PR #3170) * Fix a couple of logcontext leaks in unit tests (PR #3172) * Fix logcontext leak in media repo (PR #3174) -* Escape label values in prometheus metrics (PR #3175) -* fix http request timeout code (PR #3178) +* Escape label values in prometheus metrics (PR #3175, #3186) * Fix 'Unhandled Error' logs with Twisted 18.4 (PR #3182) Thanks to @Half-Shot! * Fix logcontext leaks in rate limiter (PR #3183) -* Fix metrics that have integer value labels (PR #3186) * notifications: Convert next_token to string according to the spec (PR #3190) Thanks to @mujx! * nuke-room-from-db.sh: fix deletion from search table (PR #3194) Thanks to @rubo77! -* Set Server header in SynapseRequest (PR #3208) - +* add guard for None on purge_history api (PR #3160) Thanks to @krombel! Changes in synapse v0.28.1 (2018-05-01) ======================================= From 589ecc5b5800a86406a0d1464fd6974c029a1163 Mon Sep 17 00:00:00 2001 From: Neil Johnson Date: Mon, 14 May 2018 17:49:59 +0100 Subject: [PATCH 3/4] further musical chairs --- CHANGES.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index aed8525f2..78d015db9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -26,11 +26,9 @@ Changes - General: * Part user from rooms on account deactivate (PR #3201) * Make 'unexpected logging context' into warnings (PR #3007) * Set Server header in SynapseRequest (PR #3208) -* Use deferred.addTimeout instead of time_bound_deferred (PR #3127, #3178) * remove duplicates from groups tables (PR #3129) * Improve exception handling for background processes (PR #3138) * Add missing consumeErrors to improve exception handling (PR #3139) -* Use run_in_background in preference to preserve_fn (PR #3140) * reraise exceptions more carefully (PR #3142) * Remove redundant call to preserve_fn (PR #3143) * Trap exceptions thrown within run_in_background (PR #3144) @@ -46,6 +44,9 @@ Changes - Refactors: * Refactor request handling wrappers (PR #3203) * transaction_id, destination defined twice (PR #3209) Thanks to @damir-manapov! * Refactor event storage to prepare for changes in state calculations (PR #3141) +* Set Server header in SynapseRequest (PR #3208) +* Use deferred.addTimeout instead of time_bound_deferred (PR #3127, #3178) +* Use run_in_background in preference to preserve_fn (PR #3140) Changes - Python 3 migration: From 3c099219e0506f81fc333ff9d27cc3af5c365a2c Mon Sep 17 00:00:00 2001 From: Neil Johnson Date: Wed, 16 May 2018 15:44:59 +0100 Subject: [PATCH 4/4] bump version and changelog for 0.29.0 --- CHANGES.rst | 4 ++++ synapse/__init__.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 78d015db9..b769b0f04 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,7 @@ +Changes in synapse v0.29.0 (2018-05-16) +=========================================== + + Changes in synapse v0.29.0-rc1 (2018-05-14) =========================================== diff --git a/synapse/__init__.py b/synapse/__init__.py index 69c081eb3..d94c20505 100644 --- a/synapse/__init__.py +++ b/synapse/__init__.py @@ -16,4 +16,4 @@ """ This is a reference implementation of a Matrix home server. """ -__version__ = "0.29.0-rc1" +__version__ = "0.29.0"