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

Merge Synapse release v1.31.0 into dinsic #97

Merged
merged 690 commits into from
Apr 28, 2021

Conversation

anoadragon453
Copy link
Member

@anoadragon453 anoadragon453 commented Apr 23, 2021

Updating DINUM's synapse branch from v1.24.0 -> v1.31.0.

Things to be aware of before deploying

Python 3.6+ and Postgres 9.6+ are required. Otherwise please read the upgrade notes for Synapse 1.25.0 -> 1.31.0 here.

On top of that you'll likely want to:

experimental_features:
    msc2403_enabled: true

This merge is paired with one for Sytest: matrix-org/sytest#1038

erikjohnston and others added 30 commits February 25, 2021 13:56
... otherwise, we don't get the cookie back.
### Changes proposed in this PR

- Add support for the `no_proxy` and `NO_PROXY` environment variables
  - Internally rely on urllib's [`proxy_bypass_environment`](https://github.com/python/cpython/blob/bdb941be423bde8b02a5695ccf51c303d6204bed/Lib/urllib/request.py#L2519)
- Extract env variables using urllib's `getproxies`/[`getproxies_environment`](https://github.com/python/cpython/blob/bdb941be423bde8b02a5695ccf51c303d6204bed/Lib/urllib/request.py#L2488) which supports lowercase + uppercase, preferring lowercase, except for `HTTP_PROXY` in a CGI environment

This does contain behaviour changes for consumers so making sure these are called out:
- `no_proxy`/`NO_PROXY` is now respected
- lowercase `https_proxy` is now allowed and taken over `HTTPS_PROXY`

Related to #9306 which also uses `ProxyAgent`

Signed-off-by: Timothy Leung tim95@hotmail.co.uk
In #75, bytecode was disabled (from a bit of FUD back in `python<2.4` days, according to dev chat), I think it's safe enough to enable it again.

Added in `__pycache__/` and `.pyc`/`.pyd` to `.gitignore`, to extra-insure compiled files don't get committed.

`Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
This also pins the Twisted version in the mypy job for CI until
proper type hints are fixed throughout Synapse.
By consuming the response if the headers imply that the
content is too large.
It landed in schema version 58 after 59 had been created, causing some
servers to not run it. The main effect of was that not all rooms had
their chain cover calculated correctly. After the BG updates complete
the chain covers will get fixed when a new state event in the affected
rooms is received.
…358)"

This reverts commit f5c93fc.

This is being backed out due to a regression (#9507) and additional
review feedback being provided.
…ed (#9530)

Prevent presence background jobs from running when presence is disabled

Signed-off-by: Aaron Raimist <aaron@raim.ist>
Turns out nginx overwrites the Host header by default.
Turns out matrix.org has an event that has duplicate auth events (which really isn't supposed to happen, but here we are). This caused the background update to fail due to `UniqueViolation`.
This great big stack of commits is a a whole load of hoop-jumping to make it easier to store additional values in login tokens, and then to actually store the SSO Identity Provider in the login token. (Making use of that data will follow in a subsequent PR.)
Add prom metrics for number of users successfully registering and logging in, by SSO provider.
Following the advice at
https://prometheus.io/docs/practices/instrumentation/#timestamps-not-time-since,
it's preferable to export unix timestamps, not ages.

There doesn't seem to be any particular naming convention for timestamp
metrics.
…508)

Update reverse proxy to add OpenBSD relayd example configuration.

Signed-off-by: Leo Bärring <leo.barring@protonmail.com>
@anoadragon453 anoadragon453 force-pushed the anoa/dinsic_release_1_31_0 branch from 0120c2a to f95ec90 Compare April 26, 2021 14:11
@anoadragon453 anoadragon453 force-pushed the anoa/dinsic_release_1_31_0 branch from f6f367e to a0f5001 Compare April 26, 2021 16:53
@anoadragon453
Copy link
Member Author

The python 3.6 tests are failing for a Weird Issue involving tox, and I'm currently failing to see how the test differs at all from mainline.

@anoadragon453
Copy link
Member Author

After spending too much trying to sort the above out, I'm just going to disable the step. I'd like to no longer block the merge on it, and will try to sort it out next week.

@anoadragon453 anoadragon453 marked this pull request as ready for review April 27, 2021 18:07
@anoadragon453 anoadragon453 merged commit a5575ea into dinsic Apr 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.