-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
fix(logging): queue_listener handler for Python >= 3.12 #3185
fix(logging): queue_listener handler for Python >= 3.12 #3185
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3185 +/- ##
==========================================
- Coverage 98.23% 98.22% -0.01%
==========================================
Files 320 320
Lines 14446 14447 +1
Branches 2298 2297 -1
==========================================
Hits 14191 14191
- Misses 113 114 +1
Partials 142 142 ☔ View full report in Codecov by Sentry. |
179cd06
to
d3f4dd0
Compare
22c8a8d
to
e3dd511
Compare
024c8e4
to
26599cb
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.
@JacobCoffee Can you take a look at this? Looks good from my side.
@jderrien Thanks for the PR :) |
I've updated the description, don't hesitate to comment the PR if you need more explainations. :) Also, please wait before merging this. It seems some test jobs hung on on GitHub Actions. It runs well locally since I added |
https://github.com/litestar-org/litestar/actions/runs/8238535303 The test suite on Python 3.12 takes ~10 min and gets killed. While I didn't have this issue on macOS, I'll try to run the test suite in a Linux container tomorrow. Hopefully I'll be able to reproduce the issue. |
I did some testing yesterday and found it to be flaky, sometimes it would hang and sometimes not. I re-requested the 3.12 tests in CI and they passed that time which confirms it. Unfortunately, when it did hang I'd get different behaviors after hitting |
@peterschutt Thank you for checking. I cannot re-run the test suite on GitHub Actions myself, I suppose this is expected (lack of permissions), isn't it? I tried to run the tests locally on my Mac M1 Pro with act and the flag
The tool might hide the error. Then I tried to run the test suite on macOS, with
|
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.
Flaky test.
Just adding this so we don't accidentally merge.
390f6c9
to
9c785a7
Compare
@guacs advised me to use Github Actions directly on my fork, so I did. I worked on a specific branch, the only change is this commit. On these 25 runs (26 but the first one failed due to a config mistake), everything looks good, at least on Python 3.12. There were 3 failures on Python 3.11 on The problem seems to be solved. |
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 aside from weird page load
Fantastic! Thanks very much! |
6af2103
to
7f7b2ca
Compare
7f7b2ca
to
0eebbb9
Compare
@JacobCoffee Good to go from your end? |
0eebbb9
to
a49a278
Compare
a49a278
to
e0b4aa9
Compare
Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/3185 |
Description
queue_listener
handler for Python 3.12Python 3.12 introduced a new way to configure
QueueHandler
andQueueListener
vialogging.config.dictConfig()
. This described here.The listener still needs to be started & stopped, as previously. To do so, I've introduced
LoggingQueueListener
.And as stated in the doc:
Closes
Closes #2954