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

feat(ci): remove codecov step from tox since performed in GA #719

Merged
merged 1 commit into from Apr 10, 2023

Conversation

StephenSorriaux
Copy link
Member

Why is this needed?

There is no need to perform the non-working codecov step via tox since we now have a Github Actions step that performs it.

Proposed Changes

  • update tox.ini and remove codecov related stuff
  • update GA testing.yml to remove codecov from matrix

Does this PR introduce any breaking change?

Nah.

@codecov
Copy link

codecov bot commented Apr 10, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.11 🎉

Comparison is base (6dbf606) 96.28% compared to head (10daa15) 96.39%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #719      +/-   ##
==========================================
+ Coverage   96.28%   96.39%   +0.11%     
==========================================
  Files          27       27              
  Lines        3554     3554              
==========================================
+ Hits         3422     3426       +4     
+ Misses        132      128       -4     

see 4 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

jeffwidman
jeffwidman previously approved these changes Apr 10, 2023
Copy link
Member

@jeffwidman jeffwidman left a comment

Choose a reason for hiding this comment

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

👍

To run coverage locally, someone doesn't need to specify anything beyond coverage, right? No extra env vars / flags? Or do they need to specify coverage -e ZOOKEPER_VERSION?

@@ -40,9 +39,6 @@ commands =

[testenv:build]

[testenv:codecov]
commands = - codecov -e TOX_VENV,ZOOKEEPER_VERSION
Copy link
Member

Choose a reason for hiding this comment

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

It looks like previously we ran coverage separately for each matrix entry... so removing this we'll only run it once, which means we lose visibility if a particular python/ zookeper version combo loses coverage unexpectedly due to a special casing in the code...

I personally think that's fine, coverage is more a "nice-to-have" tool to surface things, and rather have it run quickly than exhaustively, but wanted to document this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Great point. I am not sure if that coverage for each matrix entry has ever worked, or if I broke something when switching to GA. Looking at the codecov history (https://app.codecov.io/gh/python-zk/kazoo/pulls?order=ASC) does not really help, but I don't remember seeing 20+ comments from codecov in PRs from old Travis times...
Anyway, I agree with you, 1 time per PR seems good enough.

@StephenSorriaux
Copy link
Member Author

+1

To run coverage locally, someone doesn't need to specify anything beyond coverage, right? No extra env vars / flags? Or do they need to specify coverage -e ZOOKEPER_VERSION?

Locally, if you want to use coverage you would just need to perform coverage xml, yes.
FWIW coverage is "integrated" with pytest, in the tox.ini configuration (the pytest-cov dep + the --cov and --cov-report flags).

There is no need to perform the non-working `codecov` step via `tox` since we now have a Github Actions step that performs it.
@jeffwidman jeffwidman merged commit ffa0ae9 into master Apr 10, 2023
23 checks passed
@jeffwidman jeffwidman deleted the feat/drop-codecov-from-tox branch April 10, 2023 21:52
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