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

Improve coverage reporting #348

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

tiran
Copy link
Collaborator

@tiran tiran commented Aug 26, 2024

  • Add cov.pth file and COVERAGE_PROCESS_START to track coverage of
    subprocesses and e2e tests
  • e2e tests set COVERAGE_PROCESS_START and run command_pre hooks
  • Configure mapping of file paths for coverage
  • Add step to combine coverage results in GHA
  • Use plain coverage instead of pytest-cov. The pytest plugin
    interfers with parallel coverage collection.
  • Fix test_dependencies to actually run tests

@mergify mergify bot added the ci label Aug 26, 2024
@tiran tiran force-pushed the coverage branch 3 times, most recently from 74feee3 to f567e56 Compare August 26, 2024 11:43
@tiran tiran marked this pull request as ready for review August 26, 2024 11:43
@tiran tiran requested review from dhellmann and shubhbapna August 26, 2024 11:44
Copy link
Member

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

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

Looks good, just one question about intent in the tox.ini change.

tox.ini Outdated Show resolved Hide resolved
.github/workflows/test.yaml Outdated Show resolved Hide resolved
.github/workflows/test.yaml Show resolved Hide resolved
Copy link
Member

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

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

This version looks good. @shubhbapna had some comments, so I'll leave it open for him to approve and merge.

- Add `cov.pth` file and `COVERAGE_PROCESS_START` to track coverage of
  subprocesses and e2e tests
- e2e tests set `COVERAGE_PROCESS_START` and run `command_pre` hooks
- Configure mapping of file paths for coverage
- Add step to combine coverage results in GHA
- Use plain `coverage` instead of `pytest-cov`. The pytest plugin
  interfers with parallel coverage collection.
- Fix `test_dependencies` to actually run tests

Signed-off-by: Christian Heimes <cheimes@redhat.com>
@mergify mergify bot merged commit dc827d7 into python-wheel-build:main Aug 26, 2024
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants