-
Notifications
You must be signed in to change notification settings - Fork 11
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
Make ComparisonProxy
sync
#730
Conversation
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #730 +/- ##
==========================================
- Coverage 98.07% 98.05% -0.02%
==========================================
Files 434 434
Lines 36800 36466 -334
==========================================
- Hits 36091 35758 -333
+ Misses 709 708 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAttention: Patch coverage is
Changes have been made to critical files, which contain lines commonly executed in production. Learn more ✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #730 +/- ##
==========================================
- Coverage 98.12% 98.10% -0.02%
==========================================
Files 475 475
Lines 38155 37820 -335
==========================================
- Hits 37438 37105 -333
+ Misses 717 715 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #730 +/- ##
==========================================
- Coverage 98.07% 98.05% -0.02%
==========================================
Files 434 434
Lines 36800 36466 -334
==========================================
- Hits 36091 35758 -333
+ Misses 709 708 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #730 +/- ##
==========================================
- Coverage 98.07% 98.05% -0.02%
==========================================
Files 434 434
Lines 36800 36466 -334
==========================================
- Hits 36091 35758 -333
+ Misses 709 708 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
1444f9c
to
12ee48c
Compare
As calling `async_to_sync` within an async context, this necessitated also turning all the various `notification` related functionality sync.
12ee48c
to
b07ef5c
Compare
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.
🎉 LGTM, very nice
@@ -59,18 +59,9 @@ def run_impl(self, db_session, repoid, commitid, *, message=None, **kwargs): | |||
message or "Coverage not measured fully because CI failed" | |||
) | |||
if context in statuses: | |||
# async_to_sync has its own "context" argument so we |
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.
Is this comment wrong? Or simply by passing the argument as arg
(instead of kwarg
) we sidestep async_to_sync
having a context?
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.
simply by passing the argument as arg (instead of kwarg) we sidestep async_to_sync having a context?
yes, exactly that. the problem is that it internally spreads the kwargs
into a call that already has a context
parameter.
I stumbled across this bug in async_to_sync
myself in a different part of this PR, and fixed that the same way.
It took me a while to figure that out btw :-(
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
As calling
async_to_sync
within an async context, this necessitated also turning all the variousnotification
related functionality sync.