Skip to content

Onboard test coverage to Codecov [RHELDST-40402]#228

Merged
rbikar merged 1 commit into
release-engineering:mainfrom
mbooz-rh:RHELDST-40402
Jun 25, 2026
Merged

Onboard test coverage to Codecov [RHELDST-40402]#228
rbikar merged 1 commit into
release-engineering:mainfrom
mbooz-rh:RHELDST-40402

Conversation

@mbooz-rh

@mbooz-rh mbooz-rh commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Update cov testenv to generate coverage.xml report.
Adds the codecov action to the coverage workflow in tox-tests.yml.
Adds setuptools < 82.0.0 in requirements-docs.in, since pulptools-iib still uses the now deprecated pkg_resources.

@mbooz-rh mbooz-rh changed the title Onboard test coverage to Codecov Onboard test coverage to Codecov [RHELDST-40402] Jun 18, 2026
@mbooz-rh mbooz-rh force-pushed the RHELDST-40402 branch 4 times, most recently from 4501c2a to b5675e1 Compare June 22, 2026 19:15
@mbooz-rh mbooz-rh marked this pull request as ready for review June 22, 2026 19:51
@mbooz-rh mbooz-rh requested review from querti and rbikar as code owners June 22, 2026 19:51
@mbooz-rh mbooz-rh force-pushed the RHELDST-40402 branch 3 times, most recently from 9dee543 to aaefa41 Compare June 25, 2026 14:54
@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (aacc120) to head (62076e6).
⚠️ Report is 122 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #228   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          160       165    +5     
=========================================
+ Hits           160       165    +5     
Flag Coverage Δ
unit-tests 100.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread tox.ini Outdated
usedevelop=true
commands=
pytest --cov-report=term --cov=src/pubtools --cov-fail-under=100 {posargs}
pytest --cov-report=term --cov-report=xml --cov=src/pubtools {posargs}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I believe we can keep --cov-fail-under=100 as the upload to code-cov tends to be flaky, it's better to have check that is dependent on external service.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added it back

Update cov testenv to generate coverage.xml report.
Adds the codecov action to the coverage workflow in tox-tests.yml.
Adds setuptools < 82.0.0 in requirements-docs.in, since pulptools-iib
still uses the now deprecated pkg_resources.
@mbooz-rh mbooz-rh requested a review from rbikar June 25, 2026 15:06
@rbikar rbikar merged commit c8c551e into release-engineering:main Jun 25, 2026
8 checks passed
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