-
Notifications
You must be signed in to change notification settings - Fork 425
Be able to shutdown homeserver that hasn't setup
#19187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MadLittleMods
merged 18 commits into
develop
from
madlittlemods/shutdown-homeserver-that-was-never-setup
Dec 2, 2025
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0480911
First pass: be able to shutdown homeserver that hasn't `setup`
MadLittleMods a0e7698
Add test
MadLittleMods df0a5d1
Add some better debugging info when the test fails
MadLittleMods d046476
Fix up lints
MadLittleMods d55f86d
Add changelog
MadLittleMods fa83d65
Merge branch 'develop' into madlittlemods/shutdown-homeserver-that-wa…
MadLittleMods ea1757e
Avoid partially initialized `Keyring` which can hold references to `hs`
MadLittleMods fce7ada
Better comment
MadLittleMods b99246b
Merge branch 'develop' into madlittlemods/shutdown-homeserver-that-wa…
MadLittleMods b3aab27
Merge branch 'develop' into madlittlemods/shutdown-homeserver-that-wa…
MadLittleMods 72ca424
Merge branch 'develop' into madlittlemods/shutdown-homeserver-that-wa…
MadLittleMods 591d920
Merge branch 'develop' into madlittlemods/shutdown-homeserver-that-wa…
MadLittleMods 235b684
Use `ExitStack` for nice clean-up during `__init__`
MadLittleMods 25015f7
`self._key_fetchers.clear()`
MadLittleMods 858c2ba
Remove irrelevant comment
MadLittleMods fe3a84a
Fix `which` typo
MadLittleMods df97f11
Explain `ExitStack` a little
MadLittleMods 238c936
Merge branch 'develop' into madlittlemods/shutdown-homeserver-that-wa…
MadLittleMods 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 hidden or 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 @@ | ||
| Fix `HomeServer.shutdown()` failing if the homeserver hasn't been setup yet. |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
I want to add a bit more context on why we're doing this but it's also a bit self-evident in the pattern itself. And a bit tough since we'd need to copy it around to every usage.
Perhaps something we can expand upon in the docstring if we write our own wrapper around
ExitStack(discussed in #19187 (comment))