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

Setup Codecov #193

Closed
wants to merge 1 commit into from
Closed

Setup Codecov #193

wants to merge 1 commit into from

Conversation

goshlanguage
Copy link
Collaborator

Ticket

No issue, but happy to make one if it makes sense

Problem description

This PR aims to add codecov to the repo to give a report for how each PR affects the test coverage of the project.
Currently, the PR only leverages python's pytest coverage, but if it makes sense for the C++ code, we can leverage either gcov or lcov such as in https://about.codecov.io/language/c-plus-plus/

What's changed

Add a Github action to upload the coverage xml to codecov so it can generate reports per PR

Checklist

  • New/Existing tests provide coverage for changes

Copy link

github-actions bot commented Jan 28, 2025

TestsPassed ✅Skipped ⚠️Failed
TT-XLA Tests447 ran381 passed66 skipped0 failed
TestResult
No test annotations available

@kmitrovicTT
Copy link
Contributor

@goshlanguage tnx for providing this! Please wait on Marko's response on this.

@mrakitaTT @ajakovljevicTT what do we think about adding cpp coverage as well? Would it make sense to have coverage of our pjrt plugin code?

@goshlanguage
Copy link
Collaborator Author

I connected with @vmilosevic who already setup lcov in build_and_test.yaml, and has better context for this repo. He'll put a PR to add the codecov upload step here and we should then see coverage reports in subsequent PRs.

Closing this PR as python coverage is likely not the right choice for this project.

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