-
Notifications
You must be signed in to change notification settings - Fork 542
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
feat(toolchain): Extend Python Testing Toolchain with COVERAGE_RC Support #2246
base: main
Are you sure you want to change the base?
feat(toolchain): Extend Python Testing Toolchain with COVERAGE_RC Support #2246
Conversation
c7a142b
to
173853e
Compare
4c0451e
to
5a16df4
Compare
5a16df4
to
039012f
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.
This is certainly interesting. It seems that there are //tests/python/python_tests.bzl
failing due to the mock module_ctx
not being updated.
Shall we mark this as Ready for review and ask others to also have a look? Before doing that could you please update the PR description?
I am going to work on the description and get the tests to pass, then we can open it up for review. |
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.
Added some extra thoughts about the API design
039012f
to
0d3a405
Compare
f256992
to
9ebd564
Compare
The test under Bazel 6.4.0 test is failing. My guess is because this native java |
d7dcb29
to
02d40e0
Compare
Inspired by https://github.com/trybka/scraps/blob/master/cc_test.md This PR extends Test Runner enviroment to provide a coveragerc enviroment variable COVERAGE_RC, allowing user to provide coverage resource in what ever format
02d40e0
to
9e4665c
Compare
Ah, this is because bazel 6.4 is not using the starlark implementation of the rules, so it is expected to not work for now. |
9e4665c
to
0371be3
Compare
0371be3
to
3060b83
Compare
Idea for why the Windows build is failing - it is using a very different bootstrap mechanism and it could be that the coveragerc is not wired properly. I am not 100% sure how we should do this. @rickeylev, any thoughts here? |
@rickeylev @aignas Figured out the issue |
de0204d
to
d7181bc
Compare
d7181bc
to
2270aa0
Compare
This PR enhances the Test Runner environment to support custom coverage configuration via the COVERAGE_RC environment variable. Inspired by this approach, this feature allows users to specify a .coveragerc file in any compatible format to customize coverage reporting.
Key Changes
Adds support for the COVERAGE_RC environment variable in the Test Runner environment.
Enables users to define and pass their own .coveragerc configurations, enhancing flexibility for various testing and reporting requirements.
close #1434