Skip to content

fix(coverage) add coverage support for python 3.12 - #1727

Merged
aignas merged 19 commits into
bazel-contrib:mainfrom
trentontrees:feat-add-coverage-for-3.12
Feb 6, 2024
Merged

fix(coverage) add coverage support for python 3.12#1727
aignas merged 19 commits into
bazel-contrib:mainfrom
trentontrees:feat-add-coverage-for-3.12

Conversation

@trentontrees

@trentontrees trentontrees commented Jan 29, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

aignas commented Jan 29, 2024

Copy link
Copy Markdown
Collaborator

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

trentontrees commented Jan 30, 2024

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor Author

Note that #1734 should be merged before this PR.

@aignas aignas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

Comment thread tools/private/update_deps/update_coverage_deps.py
@trentontrees

Copy link
Copy Markdown
Contributor Author

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

Comment thread CHANGELOG.md Outdated
@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 bazel-contrib:main with commit 46f4c25 Feb 6, 2024
@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.

2 participants