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

automation: switch to cargo-llvm-cov #956

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

flavio
Copy link
Member

@flavio flavio commented Oct 23, 2024

Switch to cargo-llvm-cov to collect code coverage results. This is required because tarpaulin is consuming too much memory, leading to our GHA being killed.

See xd009642/tarpaulin#1639 for more details.

@flavio flavio requested a review from a team as a code owner October 23, 2024 13:47
Switch to cargo-llvm-cov to collect code coverage results. This is
required because tarpaulin is consuming too much memory, leading to our
GHA being killed.

See xd009642/tarpaulin#1639 for more details.

Signed-off-by: Flavio Castelli <[email protected]>
Copy link

codecov bot commented Oct 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.98%. Comparing base (493cf14) to head (faf5e38).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #956       +/-   ##
===========================================
+ Coverage   13.16%   82.98%   +69.82%     
===========================================
  Files          25       25               
  Lines        2036     4190     +2154     
===========================================
+ Hits          268     3477     +3209     
+ Misses       1768      713     -1055     
Flag Coverage Δ
unit-tests ?

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

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

@flavio
Copy link
Member Author

flavio commented Oct 23, 2024

It works, and what a boost! 🚀 😄

@flavio
Copy link
Member Author

flavio commented Oct 23, 2024

Some thoughts/highlights:

  • unit tests and e2e tests are run at the same time by cargo llvm-cov
  • running all the tests + coverage is fast: it took 7 minutes. Maybe we should drop the unit tests and the e2e tests actions and just run the coverage one

What do you think? If you agree with that, should we do these changes with another PR?

Copy link
Member

@viccuad viccuad left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for re-establishing the cosign-installer.

I vote for keeping the unit and e2e tests separately on CI, they are shorter and run in parallel. Plus, we test the local make targets that way too.

@flavio flavio merged commit e8bb5d3 into kubewarden:main Oct 23, 2024
13 checks passed
@flavio flavio deleted the switch-to-cargo-llvm-cov branch October 23, 2024 14:19
@flavio
Copy link
Member Author

flavio commented Oct 23, 2024

I've merged it because I'm eager to see the code coverage bump on the main page of codecov 😄

We can keep discussing what to do about the other GHA tasks here or on slack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants