This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Move synctl into synapse._scripts
and expose as an entrypoint
#12140
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
342ba73
Move synctl
83a5f89
Make synctl an entry point
36a729c
Fixup synctl references
6e27671
Changelog
626e08f
Merge remote-tracking branch 'origin/develop' into dmr/move-synctl
bc864d4
Upgrade note
a2d9dc0
Reword upgrade note
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,5 @@ | |
!MANIFEST.in | ||
!README.rst | ||
!setup.py | ||
!synctl | ||
|
||
**/__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
include synctl | ||
include LICENSE | ||
include VERSION | ||
include *.rst | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Move `synctl` into `synapse._scripts` and expose as an entry point. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -47,7 +47,7 @@ this document. | |||||
3. Restart Synapse: | ||||||
|
||||||
```bash | ||||||
./synctl restart | ||||||
synctl restart | ||||||
``` | ||||||
|
||||||
To check whether your update was successful, you can check the running | ||||||
|
@@ -85,6 +85,22 @@ process, for example: | |||||
dpkg -i matrix-synapse-py3_1.3.0+stretch1_amd64.deb | ||||||
``` | ||||||
|
||||||
# Upgrading to v1.55.0 | ||||||
|
||||||
## `synctl` script has been moved | ||||||
|
||||||
The `synctl` script | ||||||
[has been made](https://github.com/matrix-org/synapse/pull/12140) an | ||||||
[entry point](https://setuptools.pypa.io/en/latest/userguide/entry_point.html) | ||||||
and no longer exists at the root of Synapse's source tree. This means that | ||||||
`synctl` cannot be invoked in the form `./synctl` or `/path/to/synapse/synctl`. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be worth turning that into "use this instead of that" to make it super clear to people how they're expected to run the script There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, I've had a go at both of these in a2d9dc0 |
||||||
The `synctl` command will still available on your PATH: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- when Synapse is installed via `pip` or Matrix.org's | ||||||
[Debian packages](https://packages.matrix.org/debian/), and | ||||||
- when Synapse is ran using Matrix.org's | ||||||
[docker images](https://hub.docker.com/r/matrixdotorg/synapse) | ||||||
|
||||||
# Upgrading to v1.54.0 | ||||||
|
||||||
## Legacy structured logging configuration removal | ||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,6 @@ lint_targets = | |
scripts-dev | ||
stubs | ||
contrib | ||
synctl | ||
synmark | ||
.ci | ||
docker | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to include a note in the upgrade notes, since server admins might be relying on synctl being where it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's done. @babolivier could you give it a quick sanity check please?