Add annotations to minimise differences with celery-aio-pool's tracer.py.#7925
Conversation
66c1233 to
9d3046f
Compare
Codecov ReportBase: 89.89% // Head: 89.90% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #7925 +/- ##
=======================================
Coverage 89.89% 89.90%
=======================================
Files 128 128
Lines 15896 15910 +14
Branches 2140 2143 +3
=======================================
+ Hits 14290 14304 +14
Misses 1370 1370
Partials 236 236
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
This pull request introduces 1 alert when merging 9d3046f into 87613c7 - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog. |
108e90a to
4468397
Compare
|
This pull request introduces 1 alert when merging 4468397 into 87613c7 - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog. |
4468397 to
29ac7a6
Compare
|
This pull request introduces 1 alert when merging 29ac7a6 into 87613c7 - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog. |
|
@auvipy I think I accidentally removed you as a reviewer, but I am not sure how to add you back. |
|
@auvipy @clokep Any chance of getting this reviewed and merged? I have merged the corresponding celery-aio-pool PR. |
clokep
left a comment
There was a problem hiding this comment.
I don't see any issues with it.
| request: celery.app.task.Context, | ||
| exc: Union[Exception, Type[Exception]], | ||
| state: str = FAILURE, | ||
| call_errbacks: bool = True) -> Tuple[Info, Any, Any, Any]: |
There was a problem hiding this comment.
I believe that I.state is a string, but that can always be tightened up in the future.
| call_errbacks: bool = True) -> Tuple[Info, Any, Any, Any]: | |
| call_errbacks: bool = True) -> Tuple[Info, Any, str, Any]: |
…s tracer.py. (celery#7925)" This reverts commit 0233c3b.
…s tracer.py. (celery#7925)" This reverts commit 0233c3b.
|
This PR was reverted as it introduced a bug, unfortunately. The work needs to be done again, apologies & thank you 🙏 |
|
@Nusnus OK, sorry for the inconvenience. I have reviewed the code and am not able to see what caused the issue? AFAICS, this commit consists of annotations which are not supposed to have any run time effect. Did some supporting import go wrong perhaps? |
My first attempt was just reverting single lines - anything that wasn’t pure type annotation change. I also added
No worries - on the contrary though, you’re welcome to redo the work now that you can trust the CI to let you know if something breaks, so go ahead - and tag me for review 🤙 |
Description
As per #7874, add annotations to trace.py to improve it's documentation, and make it easier to compare with celery-aio-pool's tracer.py. See also #the-wondersmith/celery-aio-pool/pull/4.
(Note: unit tests are currently badly broken)