This bug occurs in:
Either .travis.yml or in CMakeLists.txt
Expected behavior:
One of the CI tests should be uploading a complete coverage report to codecov.
Current behavior:
One of the CI tests is uploading a coverage report to codecov that the site cannot read in any useful way.
Steps to reproduce:
Run the Xenial Travis-CI build that has ROOT v6.24.00
Under the command if [ "$UPLOAD_COVERAGE" == "true" ]; then source ~/build/villano-lab/nrCascadeSim/.travis/uploadtocodecov.sh; fi are some errors and warnings, notably: genhtml: ERROR: no valid records found in tracefile nrCascadeSim_coverage.info
Check codecov.io's entry for the associated commit.
Codecov has an error message: "There was an error processing coverage reports."
Other Information:
This is probably an error in CMakeLists.txt where the flag USE_GCOV=ON does not correctly set up coverage. However, it's possible that the .travis.yml needs to change because we have migrated to CMake.
We should probably also find a way to make the coverage upload return 1 instead of 0 if it throws errors.
Relevant Output:
Full output of the output command in Travis:
$ if [ "$UPLOAD_COVERAGE" == "true" ]; then source ~/build/villano-lab/nrCascadeSim/.travis/uploadtocodecov.sh; fi
Capturing coverage data from ./
Found gcov version: 5.4.0
Scanning ./ for .gcda files ...
geninfo: WARNING: no .gcda files found in ./ - skipping!
Finished .info-file creation
genhtml: ERROR: no valid records found in tracefile nrCascadeSim_coverage.info
Reading data file nrCascadeSim_coverage.info
gpg: Invalid option "--impor$"
(23) Failed writing body
gpgv: keyblock resource `/home/travis/.gnupg/trustedkeys.gpg': file open error
gpgv: Signature made Wed 26 Jan 2022 06:08:28 PM UTC using RSA key ID ED779869
gpgv: Can't check signature: public key not found
codecov: OK
[2022-02-01T03:00:30.575Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.1.15
[2022-02-01T03:00:30.584Z] ['info'] => Project root located at: /home/travis/build/villano-lab/nrCascadeSim
[2022-02-01T03:00:30.585Z] ['info'] -> Token found by arguments
[2022-02-01T03:00:30.594Z] ['info'] Searching for coverage files...
[2022-02-01T03:00:30.736Z] ['info'] Warning: Some files located via search were excluded from upload.
[2022-02-01T03:00:30.736Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2022-02-01T03:00:30.736Z] ['info'] => Found 1 possible coverage files:
example-usecase/nrCascadeSim_coverage.info
[2022-02-01T03:00:30.736Z] ['info'] Processing /home/travis/build/villano-lab/nrCascadeSim/example-usecase/nrCascadeSim_coverage.info...
[2022-02-01T03:00:30.746Z] ['info'] Detected Travis CI as the CI provider.
[2022-02-01T03:00:30.748Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.1.15&token=*******&branch=develop&build=854.6&build_url=&commit=22b11441c78f56f98ba8c6c4464b7e3c00173a1f&job=557809769&pr=false&service=travis&slug=villano-lab%2FnrCascadeSim&name=&tag=&flags=&parent=
[2022-02-01T03:00:31.058Z] ['info'] Uploading...
[2022-02-01T03:00:31.243Z] ['info'] {"status":"success","resultURL":"https://codecov.io/github/villano-lab/nrCascadeSim/commit/22b11441c78f56f98ba8c6c4464b7e3c00173a1f"}
The command "if [ "$UPLOAD_COVERAGE" == "true" ]; then source ~/build/villano-lab/nrCascadeSim/.travis/uploadtocodecov.sh; fi" exited with 0.
I am submitting a bug report.
This bug occurs in: Either .travis.yml or in CMakeLists.txt
Expected behavior: One of the CI tests should be uploading a complete coverage report to codecov.
Current behavior: One of the CI tests is uploading a coverage report to codecov that the site cannot read in any useful way.
Steps to reproduce:
if [ "$UPLOAD_COVERAGE" == "true" ]; then source ~/build/villano-lab/nrCascadeSim/.travis/uploadtocodecov.sh; fi
are some errors and warnings, notably:genhtml: ERROR: no valid records found in tracefile nrCascadeSim_coverage.info
Other Information: This is probably an error in CMakeLists.txt where the flag
USE_GCOV=ON
does not correctly set up coverage. However, it's possible that the .travis.yml needs to change because we have migrated to CMake.We should probably also find a way to make the coverage upload return 1 instead of 0 if it throws errors.
Relevant Output: Full output of the output command in Travis: