-
Notifications
You must be signed in to change notification settings - Fork 559
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(coverage): prevent issues when packages execute files in tmp dir. #2599
base: main
Are you sure you want to change the base?
Conversation
since subprocess.call won't exapnd environment variables. Co-authored-by: Richard Levasseur <[email protected]>
My thinking is that the
We have a proposal here for this: #2246. Some thoughts about this change:
I think there are many other things I am forgetting, but wanted to mention greater design concerns here. I am not too much against this as a temporary fix for the actual problem at hand, but I would like to have a better story for testing and configuration in |
Yes, indeed. There are also solutions to this which might be solved in userspace instead. Similar to https://pypi.org/project/pytest-bazel/ I do like a userspace solution, but the "batteries included" coverage supporting configuration files makes sense while we are bundling |
Background
(A good addition to #2597)
This is a proposal to have a workaround for #2575 where an inherent issue from coverage.py when creating the lcov output file.
Proposed Changes
Add an
--omit='...'
flag pointing to tempdir.Reproducible steps
We can see how this proposal addresses the issue described from https://github.com/BurnzZ/rules_python.
MODULE.bazel
: