-
Notifications
You must be signed in to change notification settings - Fork 211
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
pytest-cov
emits hundreds of megabytes of AstArcAnalyzer
#666
Comments
Where the debug flag gets set: Where the debug logs get emitted: |
Okay - found a bit more info as to what's happening.. sorta. Using However, our tests failed via an internal error, a I'm guessing that because this runs as a pytest plugin that it runs in the same global scope as tests so when Yikes, that's a messy problem to try to unravel. Part of this feels more like a problem in |
I'm working on a fix for stopiteration A workaround is to use pytest before modernized hookwrappers to debug When modernizing hookwrappers in pluggy we missed a edge case |
Try adding this in coverage/parser.py, after the imports:
|
I'm adding those lines to coverage.py.... |
This is now released as part of coverage 7.6.5. |
Awesome! Reading a bit between the lines, I think this is not really a problem with A thought I had on this -- I don't know if there's a way for I haven't had the time to look into much of this myself; I didn't expect y'all to be so quick to dig into it! You all rock. |
I'll note - I was able to work around this by using |
Struggling to create a minimal implementation of this, but it seems that when we're using
pytest-cov
, mocking outos
, and then have an internal pytest error we have hundreds of megabytes of AST data printed out becauseos.getenv("COVERAGE_TRACK_ARCS")
gets accidentally set to a truthy value.Working on a minimal reproduction..
The text was updated successfully, but these errors were encountered: