-
Notifications
You must be signed in to change notification settings - Fork 816
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
Added code-coverage.yml
using codecov
#1665
Conversation
code-coverage.yml
code-coverage.yml
using codecov
Codecov Report
@@ Coverage Diff @@
## master #1665 +/- ##
=========================================
Coverage ? 45.36%
=========================================
Files ? 64
Lines ? 2590
Branches ? 60
=========================================
Hits ? 1175
Misses ? 1415
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. |
…into msaroufim-patch-13
Hi @maaquib @lxning @HamidShojanazeri this PR is ready to review now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you elaborate the problems of the existing code coverage report? Where do you set up code coverage threshold in CI job?
Thanks for the feedback @lxning
This is easy to do with |
@msaroufim I think both ci-gpu and ci-cpu build should have code coverage. lint was already in the existing ci build. |
Done
It's not ideal to have linting in the CI pipeline where tests run since that takes ~20-30min to run whereas our new linting github action takes about 11s. The new black linting pipeline is also tightly integrated with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
This PR introduces code coverage using codecov https://about.codecov.io/
The code coverage results will show up as a github action showing the total coverage and how much coverage was added or lost in a PR. The action will show up as failing if coverage goes down in a PR. For now we've included
ts/
workflow_archiver
andmodel_archiver
Note that postman does not do code coverage, postman is a way to test APIs not code
Also deleted
install_utils
shell script since it's not used anywhere and has some remnant pytest related code that may be confusing later onFixes #1636
Next steps in future PRs
serve/ts_scripts/regression_utils.py
Line 56 in a4d5090
docs/code_coverage.md
will no longer be needed. Will delete when Integrate dead link checker in linting CI #1668 is landed since that README also has broken link linting45%
:( - so will need to have some separate PRs to get it closer to 90% on an ongoing basisType of change
Please delete options that are not relevant.
Feature/Issue validation/testing
Checklist: