-
Notifications
You must be signed in to change notification settings - Fork 420
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(gevent): resolve asyncio-gevent compatibility issues #11900
Conversation
|
4f357ab
to
be9416a
Compare
replace = code.replace( | ||
co_code=bytes(new_code), | ||
co_consts=tuple(new_consts), | ||
co_stacksize=code.co_stacksize + 4, # TODO: Compute the value! |
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.
⚪ Code Quality Violation
co_stacksize=code.co_stacksize + 4, # TODO: Compute the value! | |
co_stacksize=code.co_stacksize + 4, # TODO(<owner>): Compute the value! |
comments must have ownership (...read more)
When using TODO
or FIXME
, specify who write the annotation. It's a best practice to remind you who created the annotation and have potential context and information about this issue.
replace = code.replace( | ||
co_code=bytes(new_code), | ||
co_consts=tuple(new_consts), | ||
co_stacksize=code.co_stacksize + 4, # TODO: Compute the value! |
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.
⚪ Code Quality Violation
co_stacksize=code.co_stacksize + 4, # TODO: Compute the value! | |
co_stacksize=code.co_stacksize + 4, # TODO(<owner>): Compute the value! |
comments must have ownership (...read more)
When using TODO
or FIXME
, specify who write the annotation. It's a best practice to remind you who created the annotation and have potential context and information about this issue.
lines.add(last_lineno) | ||
except AttributeError: | ||
# pseudo-instruction (e.g. label) | ||
pass |
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.
🔴 Code Quality Violation
silent exception (...read more)
Using the pass
statement in an exception block ignores the exception. Exceptions should never be ignored. Instead, the user must add code to notify an exception occurred and attempt to handle it or recover from it.
The exception to this rule is the use of StopIteration
or StopAsyncIteration
when implementing a custom iterator (as those errors are used to acknowledge the end of a successful iteration).
if instr.name == "NOP": | ||
continue |
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.
🔴 Code Quality Violation
too many nesting levels (...read more)
Avoid to nest too many loops together. Having too many loops make your code harder to understand.
Prefer to organize your code in functions and unit of code you can clearly understand.
Learn More
BenchmarksBenchmark execution time: 2025-01-10 19:54:36 Comparing candidate commit 822c0db in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 154 metrics, 2 unstable metrics. |
This reverts commit 83f8e3c.
Datadog ReportBranch report: ✅ 0 Failed, 121709 Passed, 56649 Skipped, 4h 26m 41.92s Total duration (5h 29m 5.07s time saved) |
Description
In some unix operating system tests (ex: ubuntuu), ddtrace module unloading breaks setting asyncio event loops. This issue can not be reproduced on macos.
Reproduction
Checklist
Reviewer Checklist