# Code coverage report is not correct on some flags and badges shows nothing

**URL:** <https://community.codecov.com/t/code-coverage-report-is-not-correct-on-some-flags-and-badges-shows-nothing/3857>\
**Category:** Support\
**Created:** [September 9, 2022, 3:20pm UTC](https://community.codecov.com/t/code-coverage-report-is-not-correct-on-some-flags-and-badges-shows-nothing/3857 "2022-09-09T15:20:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wayonb](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/wayonb/32/2302_2.png) [@Wayonb](https://community.codecov.com/u/Wayonb)\
**Post date:** [September 9, 2022, 3:20pm UTC](https://community.codecov.com/t/code-coverage-report-is-not-correct-on-some-flags-and-badges-shows-nothing/3857/1 "2022-09-09T15:20:30Z")

</div>

### Description

We have monorepo with flags enable for each project. One of the badge for `client-catapult` shows nothing - [https://codecov.io/gh/symbol/symbol/branch/dev/graph/badge.svg?token=SSYYBMK0M7&flag=client-catapult](https://codecov.io/gh/symbol/symbol/branch/dev/graph/badge.svg?token=SSYYBMK0M7&flag=client-catapult)

If i check the flags report here it does have information - [Codecov](https://app.codecov.io/gh/symbol/symbol/flags)

### CI/CD URL

[https://jenkins.symboldev.com/job/Symbol/job/server-pipelines/job/catapult-client-build-catapult-project/4877/console](https://jenkins.symboldev.com/job/Symbol/job/server-pipelines/job/catapult-client-build-catapult-project/4877/console)

### Codecov Output

Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.

```auto
20:47:52 + curl -Os https://uploader.codecov.io/v0.1.20/linux/codecov
20:47:53 + chmod +x codecov
20:47:53 + ./codecov --verbose --nonZero --rootDir . --flags client-catapult -X gcov --file client_coverage.info
20:47:54 [2022-09-09T00:47:54.077Z] ['verbose'] Start of uploader: 1662684474077...
20:47:54 [2022-09-09T00:47:54.080Z] ['info'] 
20:47:54 _____ _
20:47:54 / ____ | | |
20:47:54 | | _____ | | ______  _______
20:47:54 | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
20:47:54 | |___| (_) | (_| |__/ (_| (_) \ V /
20:47:54 \ _____\___ / \ __,_|\___ |\ ___\___ / \_/
20:47:54  
20:47:54 Codecov report uploader 0.1.20
20:47:54 [2022-09-09T00:47:54.080Z] ['info'] => Project root located at: .
20:47:54 [2022-09-09T00:47:54.080Z] ['info'] -> Token found by environment variables
20:47:54 [2022-09-09T00:47:54.081Z] ['verbose'] Start of network processing...
20:47:54 [2022-09-09T00:47:54.081Z] ['verbose'] Searching for files in .
20:47:55 [2022-09-09T00:47:54.841Z] ['info'] Searching for coverage files...
20:47:55 [2022-09-09T00:47:55.122Z] ['info'] Warning: Some files passed via the -f flag would normally be excluded from search.
20:47:55 [2022-09-09T00:47:55.123Z] ['info'] If Codecov encounters issues processing your reports, please review https://docs.codecov.com/docs/supported-report-formats
20:47:55 [2022-09-09T00:47:55.123Z] ['verbose'] Preparing to clean the following coverage paths: client_coverage.info,catapult-src/client_coverage.info
20:47:55 [2022-09-09T00:47:55.123Z] ['info'] => Found 1 possible coverage files:
20:47:55 catapult-src/client_coverage.info
20:47:55 [2022-09-09T00:47:55.123Z] ['verbose'] End of network processing
20:47:55 [2022-09-09T00:47:55.123Z] ['info'] Processing catapult-src/client_coverage.info...
20:47:55 [2022-09-09T00:47:55.270Z] ['info'] Detected Jenkins CI as the CI provider.
20:47:55 [2022-09-09T00:47:55.270Z] ['verbose'] -> Using the following env variables:
20:47:55 [2022-09-09T00:47:55.270Z] ['verbose'] BRANCH_NAME: undefined
20:47:55 [2022-09-09T00:47:55.270Z] ['verbose'] BUILD_NUMBER: 4877
20:47:55 [2022-09-09T00:47:55.270Z] ['verbose'] BUILD_URL: https://jenkins.symboldev.com/job/Symbol/job/server-pipelines/job/catapult-client-build-catapult-project/4877/
20:47:55 [2022-09-09T00:47:55.270Z] ['verbose'] CHANGE_ID: undefined
20:47:55 [2022-09-09T00:47:55.270Z] ['verbose'] GIT_BRANCH: fix/log_failed_stage
20:47:55 [2022-09-09T00:47:55.270Z] ['verbose'] GIT_COMMIT: 98bfd5a57168e5effd4e548cd9035e57d82f6bce
20:47:55 [2022-09-09T00:47:55.270Z] ['verbose'] JENKINS_URL: https://jenkins.symboldev.com/
20:47:55 [2022-09-09T00:47:55.270Z] ['verbose'] ghprbActualCommit: undefined
20:47:55 [2022-09-09T00:47:55.270Z] ['verbose'] ghprbPullId: undefined
20:47:55 [2022-09-09T00:47:55.270Z] ['verbose'] ghprbSourceBranch: undefined
20:47:55 [2022-09-09T00:47:55.278Z] ['verbose'] Using the following upload parameters:
20:47:55 [2022-09-09T00:47:55.278Z] ['verbose'] branch
20:47:55 [2022-09-09T00:47:55.278Z] ['verbose'] build
20:47:55 [2022-09-09T00:47:55.278Z] ['verbose'] buildURL
20:47:55 [2022-09-09T00:47:55.278Z] ['verbose'] commit
20:47:55 [2022-09-09T00:47:55.278Z] ['verbose'] job
20:47:55 [2022-09-09T00:47:55.278Z] ['verbose'] pr
20:47:55 [2022-09-09T00:47:55.278Z] ['verbose'] service
20:47:55 [2022-09-09T00:47:55.278Z] ['verbose'] slug
20:47:55 [2022-09-09T00:47:55.278Z] ['verbose'] name
20:47:55 [2022-09-09T00:47:55.278Z] ['verbose'] tag
20:47:55 [2022-09-09T00:47:55.278Z] ['verbose'] flags
20:47:55 [2022-09-09T00:47:55.278Z] ['verbose'] parent
20:47:55 [2022-09-09T00:47:55.280Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.1.20&token= ******* &branch=fix%2Flog_failed_stage&build=4877&build_url=https%3A%2F%2Fjenkins.symboldev.com%2Fjob%2FSymbol%2Fjob%2Fserver-pipelines%2Fjob%2Fcatapult-client-build-catapult-project%2F4877%2F&commit=98bfd5a57168e5effd4e548cd9035e57d82f6bce&job=&pr=&service=jenkins&slug=&name=&tag=&flags=client-catapult&parent=
20:47:55 [2022-09-09T00:47:55.280Z] ['verbose'] Passed token was 36 characters long
20:47:55 [2022-09-09T00:47:55.280Z] ['verbose'] https://codecov.io/upload/v4?package=uploader-0.1.20&branch=fix%2Flog_failed_stage&build=4877&build_url=https%3A%2F%2Fjenkins.symboldev.com%2Fjob%2FSymbol%2Fjob%2Fserver-pipelines%2Fjob%2Fcatapult-client-build-catapult-project%2F4877%2F&commit=98bfd5a57168e5effd4e548cd9035e57d82f6bce&job=&pr=&service=jenkins&slug=&name=&tag=&flags=client-catapult&parent=
20:47:55 Content-Type: 'text/plain'
20:47:55 Content-Encoding: 'gzip'
20:47:55 X-Reduced-Redundancy: 'false'
20:47:55 [2022-09-09T00:47:55.611Z] ['info'] https://codecov.io/github/symbol/symbol/commit/98bfd5a57168e5effd4e548cd9035e57d82f6bce
20:47:55 https://storage.googleapis.com/codecov/v4/raw/2022-09-09/5906131E70BB6F6A9D0E465027DAF0E8/98bfd5a57168e5effd4e548cd9035e57d82f6bce/b50551ff-3946-4424-b7b0-69519fca46fc.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20220909%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220909T004755Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=42359b50feda5114920fb1fc73bdae50f9f4ddf48ae24c7653b78ba8b7f49a44
20:47:55 [2022-09-09T00:47:55.612Z] ['verbose'] Returned upload url: https://storage.googleapis.com/codecov/v4/raw/2022-09-09/5906131E70BB6F6A9D0E465027DAF0E8/98bfd5a57168e5effd4e548cd9035e57d82f6bce/b50551ff-3946-4424-b7b0-69519fca46fc.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20220909%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220909T004755Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=42359b50feda5114920fb1fc73bdae50f9f4ddf48ae24c7653b78ba8b7f49a44
20:47:55 [2022-09-09T00:47:55.612Z] ['info'] Uploading...
20:47:55 [2022-09-09T00:47:55.820Z] ['info'] {"status":"success","resultURL":"https://codecov.io/github/symbol/symbol/commit/98bfd5a57168e5effd4e548cd9035e57d82f6bce"}
20:47:55 [2022-09-09T00:47:55.820Z] ['verbose'] End of uploader: 1743 milliseconds

```

### Expected Results

The badge to show the correct code coverage percentage since the information is correct here - [Codecov](https://app.codecov.io/gh/symbol/symbol/tree/dev/client/catapult)

### Actual Results

The badge shows nothing - [https://codecov.io/gh/symbol/symbol/branch/dev/graph/badge.svg?token=SSYYBMK0M7&flag=client-catapult](https://codecov.io/gh/symbol/symbol/branch/dev/graph/badge.svg?token=SSYYBMK0M7&flag=client-catapult)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [September 16, 2022, 2:47pm UTC](https://community.codecov.com/t/code-coverage-report-is-not-correct-on-some-flags-and-badges-shows-nothing/3857/2 "2022-09-16T14:47:44Z")

</div>

@Wayonb ahhh that would be because `flag` badges are not supported. I would recommend adding a suggestion on our [feedback section](https://app.codecov.io/gh/feedback)

---

<div class="post-metadata">

**Author:** ![Wayonb](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/wayonb/32/2302_2.png) [@Wayonb](https://community.codecov.com/u/Wayonb)\
**Post date:** [September 16, 2022, 3:00pm UTC](https://community.codecov.com/t/code-coverage-report-is-not-correct-on-some-flags-and-badges-shows-nothing/3857/3 "2022-09-16T15:00:00Z")

</div>

Hi @tom, haha really? We have been using them for couple of months now. They seems to work except for the cpp project which mostly works.

Below are a few badge links which shows the correct info. Or were we luckly? 😂  
[https://codecov.io/gh/symbol/symbol/branch/dev/graph/badge.svg?token=SSYYBMK0M7&flag=client-rest](https://codecov.io/gh/symbol/symbol/branch/dev/graph/badge.svg?token=SSYYBMK0M7&flag=client-rest)  
[https://codecov.io/gh/symbol/symbol/branch/dev/graph/badge.svg?token=SSYYBMK0M7&flag=sdk-python](https://codecov.io/gh/symbol/symbol/branch/dev/graph/badge.svg?token=SSYYBMK0M7&flag=sdk-python)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [September 16, 2022, 4:20pm UTC](https://community.codecov.com/t/code-coverage-report-is-not-correct-on-some-flags-and-badges-shows-nothing/3857/4 "2022-09-16T16:20:44Z")

</div>

😂 wut… I do not know how that is working. I had gotten a reply back from product that it wasn’t a thing yet, so maybe it’s work in progress that I’m not aware of.

---

<div class="post-metadata">

**Author:** ![Wayonb](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/wayonb/32/2302_2.png) [@Wayonb](https://community.codecov.com/u/Wayonb)\
**Post date:** [September 16, 2022, 5:44pm UTC](https://community.codecov.com/t/code-coverage-report-is-not-correct-on-some-flags-and-badges-shows-nothing/3857/5 "2022-09-16T17:44:29Z")

</div>

ok. Thanks. I created feedback [Codecov](https://app.codecov.io/gh/feedback/p/add-flags-and-badges-support)
