Description
I am using ignore keyword to exclude the test folders from the code coverage analysis, however, the test folders are being analyzed.
I already checked this topic Cannot get "Ignore" in codecov.yml to work
My codecov.yml file is in the project root:
in which I excluded the test folders and other folders:
ignore:
- "rclc_examples/**/*"
- "rclc/test/**/*"
- "rclc_lifecycle/test/**/*"
- "rclc_parameter/test/**/*"
However, the test folders are still being evaluated:
Commit SHAs
Please include the commit SHA(s)
Repository
CI/CD or Build URL
Please provide which CI/CD you are using or a link to the build where coverage is being uploaded.
Uploader
Github Action
Codecov Output
/usr/bin/docker exec 537d6b6817177497f0a76b834655d4c0b4799bcc1fa57679fcaf468f9289a25c sh -c βcat /etc/*release | grep ^IDβ
/usr/bin/bash codecov.sh -n -F -Q github-action-v1.5.2 -f ros_ws/lcov/total_coverage.info -C 86c8567e49bf079ba506ab65288be030e633d715
/ | | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / ` |/ _ / / _ \ \ / /
| || () | (| | __/ (| () \ V /
______/ _,|_|____/ _/
Bash-1.0.3
==> git version 2.25.1 found
==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
==> GitHub Actions detected.
Env vars used:
β GITHUB_ACTIONS: true
β GITHUB_HEAD_REF: feature/test-codecov
β GITHUB_REF: refs/pull/155/merge
β GITHUB_REPOSITORY: ros2/rclc
β GITHUB_RUN_ID: 1052009519
β GITHUB_SHA: 9783721178e6d35dd4e0fddb5480b26d7396d9d2
β GITHUB_WORKFLOW: CI RCLC Rolling
project root: .
Yaml found at: ./codecov.yml
β Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
+ ros_ws/lcov/total_coverage.info bytes=224809
==> Appending adjustments
Fixing Reports
+ Found adjustments
==> Gzipping contents
76K /tmp/codecov.GFLcG4.gz
==> Uploading reports
url: https://codecov.io
query: branch=feature%2Ftest-codecov&commit=86c8567e49bf079ba506ab65288be030e633d715&build=1052009519&build_url=http%3A%2F%2Fgithub.com%2Fros2%2Frclc%2Factions%2Fruns%2F1052009519&name=&tag=&slug=ros2%2Frclc&service=github-actions&flags=&pr=155&job=CI%20RCLC%20Rolling&cmd_args=n,F,Q,f,C
β Pinging Codecov
https://codecov.io/upload/v4?package=github-action-v1.5.2-1.0.3&token=secret&branch=feature%2Ftest-codecov&commit=86c8567e49bf079ba506ab65288be030e633d715&build=1052009519&build_url=http%3A%2F%2Fgithub.com%2Fros2%2Frclc%2Factions%2Fruns%2F1052009519&name=&tag=&slug=ros2%2Frclc&service=github-actions&flags=&pr=155&job=CI%20RCLC%20Rolling&cmd_args=n,F,Q,f,C
β Uploading to
https://storage.googleapis.com/codecov/v4/raw/2021-07-21/C6C23113481C9B760499FA325B3952C1/86c8567e49bf079ba506ab65288be030e633d715/e58ab07d-d5b7-4679-84d6-4355917f97e3.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20210721%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210721T093801Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=b56dc3088b113c2c96e35da7e406f9211ada416e8837693b94bb7e4b54855aca
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:β:-- --:β:-- --:β:-- 0
100 75481 0 0 100 75481 0 361k --:β:-- --:β:-- --:β:-- 361k
100 75481 0 0 100 75481 0 356k --:β:-- --:β:-- --:β:-- 354k
β Reports have been successfully queued for processing at Code coverage done right.
Expected Results
test folders are not included in the analysis
Actual Results
test folders are included in the analysis
for example:
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.