From 244ab974e7e17f3c1688a53bd3258271c644a82e Mon Sep 17 00:00:00 2001 From: Neil Johnson Date: Mon, 4 Jun 2018 16:09:58 +0100 Subject: [PATCH 1/6] bump version and changelog --- CHANGES.rst | 46 +++++++++++++++++++++++++++++++++++++++++++++ synapse/__init__.py | 2 +- 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 0569b581d..531d9ed15 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,49 @@ +Changes in synapse v0.31.0-rc1 (2018-06-04) +========================================== + +Most notable change is to switch to python prometheus library to improve system stats reporting + +Features: + +* Switch to the Python Prometheus library (PR #3256, #3274) +* Let users leave the server notice room after joining (PR #3287) + + +Changes: + +* daily user type phone home stats (PR #3264) +* Use iter* methods for _filter_events_for_server (PR #3267) +* Docs on consent bits (PR #3268) +* Remove users from user directory on deactivate (PR #3277) +* Avoid sending consent notice to guest users (PR #3288) +* disable CPUMetrics if no /proc/self/stat (PR #3299) +* Add local and loopback IPv6 addresses to url_preview_ip_range_blacklist (PR #3312) Thanks to @thegcat! +* Consistently use six's iteritems and wrap lazy keys/values in list() if they're not meant to be lazy (PR #3307) +* Add private IPv6 addresses to example config for url preview blacklist (PR #3317) Thanks to @thegcat! +* Reduce stuck read-receipts: ignore depth when updating (PR #3318) +* Put python's logs into Trial when running unit tests (PR #3319) + +Changes, python 3 migration: + +* Replace some more comparisons with six (PR #3243) Thanks to @NotAFile! +* replace some iteritems with six (PR #3244) Thanks to @NotAFile! +* Add batch_iter to utils (PR #3245) Thanks to @NotAFile! +* use repr, not str (PR #3246) Thanks to @NotAFile! +* Misc Python3 fixes (PR #3247) Thanks to @NotAFile! +* Py3 storage/_base.py (PR #3278) Thanks to @NotAFile! +* more six iteritems (PR #3279) Thanks to @NotAFile! +* More Misc. py3 fixes (PR #3280) Thanks to @NotAFile! +* remaining isintance fixes (PR #3281) Thanks to @NotAFile! +* py3-ize state.py (PR #3283) Thanks to @NotAFile! +* extend tox testing for py3 to avoid regressions (PR #3302) Thanks to @krombel! +* use memoryview in py3 (PR #3303) Thanks to @NotAFile! + +Bugs: + +* Fix federation backfill bugs (PR #3261) +* federation: fix LaterGauge usage (PR #3328) Thanks to @intelfx! + + Changes in synapse v0.30.0 (2018-05-24) ========================================== diff --git a/synapse/__init__.py b/synapse/__init__.py index 5bada5e29..a1ad7830c 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.30.0" +__version__ = "0.31.0-rc1" From b3b16490f7eafea7fe268f4fc1a86593e49e10a1 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 6 Jun 2018 07:08:36 +0100 Subject: [PATCH 2/6] Add note to changelog on prometheus metrics --- CHANGES.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 531d9ed15..be9429f4e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,7 +1,10 @@ Changes in synapse v0.31.0-rc1 (2018-06-04) ========================================== -Most notable change is to switch to python prometheus library to improve system stats reporting +Most notable change is to switch to python prometheus library to improve system +stats reporting. WARNING this changes a number of prometheus metrics in a +backwards-incompatible manner. For more details, see +`docs/metrics-howto.rst `_. Features: From 23c785992f685f0b5dedfc863bdd55e990751561 Mon Sep 17 00:00:00 2001 From: Amber Brown Date: Wed, 6 Jun 2018 15:52:37 +1000 Subject: [PATCH 3/6] Fix metric documentation tables (#3341) --- docs/metrics-howto.rst | 50 +++++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 20 deletions(-) diff --git a/docs/metrics-howto.rst b/docs/metrics-howto.rst index 25e06bca5..5bbb5a4f3 100644 --- a/docs/metrics-howto.rst +++ b/docs/metrics-howto.rst @@ -63,30 +63,40 @@ The duplicated metrics deprecated in Synapse 0.27.0 have been removed. All time duration-based metrics have been changed to be seconds. This affects: -================================ -msec -> sec metrics -================================ -python_gc_time -python_twisted_reactor_tick_time -synapse_storage_query_time -synapse_storage_schedule_time -synapse_storage_transaction_time -================================ ++----------------------------------+ +| msec -> sec metrics | ++==================================+ +| python_gc_time | ++----------------------------------+ +| python_twisted_reactor_tick_time | ++----------------------------------+ +| synapse_storage_query_time | ++----------------------------------+ +| synapse_storage_schedule_time | ++----------------------------------+ +| synapse_storage_transaction_time | ++----------------------------------+ Several metrics have been changed to be histograms, which sort entries into buckets and allow better analysis. The following metrics are now histograms: -========================================= -Altered metrics -========================================= -python_gc_time -python_twisted_reactor_pending_calls -python_twisted_reactor_tick_time -synapse_http_server_response_time_seconds -synapse_storage_query_time -synapse_storage_schedule_time -synapse_storage_transaction_time -========================================= ++-------------------------------------------+ +| Altered metrics | ++===========================================+ +| python_gc_time | ++-------------------------------------------+ +| python_twisted_reactor_pending_calls | ++-------------------------------------------+ +| python_twisted_reactor_tick_time | ++-------------------------------------------+ +| synapse_http_server_response_time_seconds | ++-------------------------------------------+ +| synapse_storage_query_time | ++-------------------------------------------+ +| synapse_storage_schedule_time | ++-------------------------------------------+ +| synapse_storage_transaction_time | ++-------------------------------------------+ Block and response metrics renamed for 0.27.0 From 61134debdc86d415eecefc958981f740837ee619 Mon Sep 17 00:00:00 2001 From: Neil Johnson Date: Wed, 6 Jun 2018 11:26:21 +0100 Subject: [PATCH 4/6] bump version and changelog --- CHANGES.rst | 13 +++++++++++-- synapse/__init__.py | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index be9429f4e..ee104a7e9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,11 +1,20 @@ -Changes in synapse v0.31.0-rc1 (2018-06-04) -========================================== +Changes in synapse v0.31.0 (2018-06-06) +======================================= Most notable change is to switch to python prometheus library to improve system stats reporting. WARNING this changes a number of prometheus metrics in a backwards-incompatible manner. For more details, see `docs/metrics-howto.rst `_. +Bug Fixes: + + * Fix metric documentation tables (PR #3341) + * Fix LaterGuage error handling (694968fa81aab4eac81309b1e16f6063103dd57f) + * Fix replication metrics (b7e7fd2d0edd4d46aaf9d6afc8df14cf3de911f9) + +Changes in synapse v0.31.0-rc1 (2018-06-04) +========================================== + Features: * Switch to the Python Prometheus library (PR #3256, #3274) diff --git a/synapse/__init__.py b/synapse/__init__.py index a1ad7830c..ca113db43 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.31.0-rc1" +__version__ = "0.31.0" From 176f1206d1431f4dfbdb306cc3e673d7f7f44c4a Mon Sep 17 00:00:00 2001 From: Neil Johnson Date: Wed, 6 Jun 2018 11:28:30 +0100 Subject: [PATCH 5/6] Update CHANGES.rst --- CHANGES.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index ee104a7e9..5c49e1263 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,10 +8,10 @@ backwards-incompatible manner. For more details, see Bug Fixes: - * Fix metric documentation tables (PR #3341) - * Fix LaterGuage error handling (694968fa81aab4eac81309b1e16f6063103dd57f) - * Fix replication metrics (b7e7fd2d0edd4d46aaf9d6afc8df14cf3de911f9) - +* Fix metric documentation tables (PR #3341) +* Fix LaterGuage error handling (694968fa81aab4eac81309b1e16f6063103dd57f) +* Fix replication metrics (b7e7fd2d0edd4d46aaf9d6afc8df14cf3de911f9) + Changes in synapse v0.31.0-rc1 (2018-06-04) ========================================== From 3f589f90974586ffccacc2641547452903955b60 Mon Sep 17 00:00:00 2001 From: Neil Johnson Date: Wed, 6 Jun 2018 11:39:42 +0100 Subject: [PATCH 6/6] 7 char sha in changelog --- CHANGES.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 5c49e1263..f2b7f0409 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,7 +1,7 @@ Changes in synapse v0.31.0 (2018-06-06) ======================================= -Most notable change is to switch to python prometheus library to improve system +Most notable change from v0.30.0 is to switch to python prometheus library to improve system stats reporting. WARNING this changes a number of prometheus metrics in a backwards-incompatible manner. For more details, see `docs/metrics-howto.rst `_. @@ -9,8 +9,8 @@ backwards-incompatible manner. For more details, see Bug Fixes: * Fix metric documentation tables (PR #3341) -* Fix LaterGuage error handling (694968fa81aab4eac81309b1e16f6063103dd57f) -* Fix replication metrics (b7e7fd2d0edd4d46aaf9d6afc8df14cf3de911f9) +* Fix LaterGuage error handling (694968f) +* Fix replication metrics (b7e7fd2) Changes in synapse v0.31.0-rc1 (2018-06-04) ==========================================