Repository navigation
Add Code Coverage and codecov.io integration - #2928
Conversation
- add missing make lcov-report
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## master #2928 +/- ##
=========================================
Coverage ? 37.41%
=========================================
Files ? 14
Lines ? 4175
Branches ? 0
=========================================
Hits ? 1562
Misses ? 2613
Partials ? 0 ☔ View full report in Codecov by Sentry. |
|
@ggerganov Beside that, I think we good to go, nothing else we need to enable as far as I know (gonna make sure after merge along the way). |
* update .gitignore * makefile: add coverage support (lcov, gcovr) * add code-coverage workflow * update code coverage workflow * wun on ubuntu 20.04 * use gcc-8 * check why the job hang * add env vars * add LLAMA_CODE_COVERAGE=1 again * - add CODECOV_TOKEN - add missing make lcov-report * install lcov * update make file -pb flag * remove unused GGML_NITER from workflows * wrap coverage output files in COV_TARGETS
* update .gitignore * makefile: add coverage support (lcov, gcovr) * add code-coverage workflow * update code coverage workflow * wun on ubuntu 20.04 * use gcc-8 * check why the job hang * add env vars * add LLAMA_CODE_COVERAGE=1 again * - add CODECOV_TOKEN - add missing make lcov-report * install lcov * update make file -pb flag * remove unused GGML_NITER from workflows * wrap coverage output files in COV_TARGETS
* update .gitignore * makefile: add coverage support (lcov, gcovr) * add code-coverage workflow * update code coverage workflow * wun on ubuntu 20.04 * use gcc-8 * check why the job hang * add env vars * add LLAMA_CODE_COVERAGE=1 again * - add CODECOV_TOKEN - add missing make lcov-report * install lcov * update make file -pb flag * remove unused GGML_NITER from workflows * wrap coverage output files in COV_TARGETS
* update .gitignore * makefile: add coverage support (lcov, gcovr) * add code-coverage workflow * update code coverage workflow * wun on ubuntu 20.04 * use gcc-8 * check why the job hang * add env vars * add LLAMA_CODE_COVERAGE=1 again * - add CODECOV_TOKEN - add missing make lcov-report * install lcov * update make file -pb flag * remove unused GGML_NITER from workflows * wrap coverage output files in COV_TARGETS
* update .gitignore * makefile: add coverage support (lcov, gcovr) * add code-coverage workflow * update code coverage workflow * wun on ubuntu 20.04 * use gcc-8 * check why the job hang * add env vars * add LLAMA_CODE_COVERAGE=1 again * - add CODECOV_TOKEN - add missing make lcov-report * install lcov * update make file -pb flag * remove unused GGML_NITER from workflows * wrap coverage output files in COV_TARGETS

This PR add code coverage utilize
lcov,gcovandgcovr, based on the project tests and publish the result to codecov.io.I think the project rapidly evolved and it might be a good way to track the tests coverage.
Example of my llama.cpp fork on codecov.
code-coverage.ymlworkflowcoverage,lcov-report,gcovr-reportto makefileLLAMA_CODE_COVERAGEHow to use locally:
make lcov-reportgenerate the report files.make gcovr-reportgenerategcovr-report/coverage.htmlwhich can be opened locally (example gcovr-report.zip).Those commands are independents.
Dependencies:
lcov-report -
apt install lcovgcovr-report -
pip install gcovr@ggerganov
If you find it useful, you might need to login to codecov.io and setup the repo and theCODECOV_TOKENsecret.Seems like you already have one.
We can also have a code coverage badge afterwards 😁