-
Notifications
You must be signed in to change notification settings - Fork 384
Remove sentinel
logcontext in Clock
utilities (looping_call
, looping_call_now
, call_later
)
#18907
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
Open
MadLittleMods
wants to merge
30
commits into
develop
Choose a base branch
from
madlittlemods/looping-call-logcontext
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+287
−31
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
6170762
Add logcontext to looping calls
MadLittleMods 5d2e4c4
Remove `server_name` arg
MadLittleMods 414b178
No need for a description
MadLittleMods 788cd19
Fix db loop
MadLittleMods 77b3228
Revert keyword arg changes
MadLittleMods 91f7bb3
Multiple paragraphs
MadLittleMods 2e88eb3
Update docstring
MadLittleMods fbf5946
Apply the same treatment to `call_later`
MadLittleMods 3809f3f
Add comments for why we `PreserveLoggingContext()`
MadLittleMods 442dbc0
Add changelog
MadLittleMods 13b938f
Sanity check that we start in the sentinel logcontext
MadLittleMods 04825eb
Improve `Clock.sleep` test
MadLittleMods f4ad07d
Fix copy/paste typo
MadLittleMods a8e66e7
Fixup `looping_call`
MadLittleMods 0780183
All logcontext tests should use `@logcontext_clean`
MadLittleMods c535d8a
Add `test_looping_call`
MadLittleMods aec7065
Add `test_call_later` and align `call_later` with `looping_call`
MadLittleMods 2aa15b0
Align tests
MadLittleMods 1c001c9
No need to return something
MadLittleMods 13a5a36
Revert "No need to return something"
MadLittleMods eae83e8
Be more specific on what to return
MadLittleMods 3797515
Fix typo in assertion message
MadLittleMods 9116e74
Fix logcontext leak in email pusher test
MadLittleMods 57cc675
Clarify why
MadLittleMods 45e6b78
Use "foo" instead of "one"
MadLittleMods 4145160
Wrap callback to see underlying failure
MadLittleMods f2ae33a
Merge branch 'develop' into madlittlemods/looping-call-logcontext
MadLittleMods 160eb63
Merge branch 'develop' into madlittlemods/looping-call-logcontext
MadLittleMods c8d0f97
Cancelling the deferred doesn't matter AFACT
MadLittleMods 774d25f
Merge branch 'develop' into madlittlemods/looping-call-logcontext
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 @@ | ||
Remove `sentinel` logcontext usage in `Clock` utilities like `looping_call` and `call_later`. |
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
We were leaking the logcontext into the reactor
This took some debug diving to find the culprit but turns out we already had the same fix in the HTTP pusher tests since a267c2e (matrix-org/synapse#4204)
Previously, this was causing some tests to fail:
SYNAPSE_TEST_LOG_LEVEL=INFO poetry run trial tests.push.test_email.EmailPusherTests.test_invite_to_empty_room_sends_email
_trial_temp/test.log
We caught this because we added that new
sentinel
logcontext assertion (discussed in another thread above)