Skip to content
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) add coverage support for python 3.12 #1727

Merged
merged 19 commits into from Feb 6, 2024

Conversation

trentontrees
Copy link
Contributor

@trentontrees trentontrees commented Jan 29, 2024

Summary:

  • chore(coverage): bump coverage to 7.4.1
  • style: update comments on how to update coverage
  • fix(coverage): add cp312 support

* chore(coverage): bump coverage to 7.4.1
* style: update comments on how to update coverage
* fix(coverage): add cp312 support
@trentontrees
Copy link
Contributor Author

I've not figured out how to use my local instance of rules_python to verify the changes are working as expected.

@aignas
Copy link
Collaborator

aignas commented Jan 29, 2024

The bzlmod example is failing when it is just trying to run bazel coverage and it seems that tho patch that we apply to the wheel may need revising. I think just doing bazel fetch for all of the coverage deps whilst in the rules_python workspace should be enough to test this. Maybe adding a skylib build_test to do that in tests/coverage/BUILD.bazel or similar would be good.

@trentontrees
Copy link
Contributor Author

trentontrees commented Jan 30, 2024

If I am working on main without any modifications:

cd /examples/bzlmod
bazel coverage //...
# 8 fail locally

* examples/bzlmod - bazel coverage //tests:version_3_10_takes_3_9_subprocess_test was always failing due to .coveragerc generated file not being unique
* generating the locv report resulted in messages going to stdout/stderr that resulted in test failures.  To fix this, we run with --quiet.  If VERBOSE_COVERAGE is defined we will output to stderr.
update the patch file for coverage/__main__
@trentontrees
Copy link
Contributor Author

Note that #1734 should be merged before this PR.

Copy link
Collaborator

@aignas aignas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@trentontrees
Copy link
Contributor Author

@aignas this PR is ready for merge as well. Thank you!

CHANGELOG.md Outdated Show resolved Hide resolved
@aignas aignas enabled auto-merge February 6, 2024 02:26
@aignas aignas added this pull request to the merge queue Feb 6, 2024
Merged via the queue into bazelbuild:main with commit 46f4c25 Feb 6, 2024
4 checks passed
@trentontrees trentontrees deleted the feat-add-coverage-for-3.12 branch February 6, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants