# Unusable report using codecov-action@v3, bash uploader works well

**URL:** <https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223>\
**Category:** Bug Fixes\
**Tags:** github\
**Created:** [March 23, 2023, 8:52am UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223 "2023-03-23T08:52:47Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![dluki](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dluki](https://community.codecov.com/u/dluki)\
**Post date:** [March 23, 2023, 8:52am UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/1 "2023-03-23T08:52:47Z")

</div>

## Before submitting a topic, please confirm the following

I have searched for similar issues before creating this topic.  
 I have verified that my repository is using the [Codecov GitHub app](https://github.com/apps/codecov), if using GitHub  
 I have [validated](https://docs.codecov.com/docs/codecov-yaml#validate-your-repository-yaml) my `codecov.yaml` configuration file.  
 I have filled out the below sections to the best of my ability.  
 I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.

### Description

“ **Unusable report** ” using codecov-action@v3. Code coverage equals 0. Fixing file paths does not help (or does not work?). The bash uploader works well.

### CI/CD URL

> **[Code coverage done right.](https://app.codecov.io/github/ldorau/rpma/commit/043da06bd20568b234b6d39585d4bb2a08812acd)**
>
> Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

### Codecov Output

The full output of running the uploader is **too long** (An error occurred: Body is limited to 32000 characters; you entered 85107). It can be viewed at [https://github.com/ldorau/rpma/actions/runs/4498091834/jobs/7914323186](https://github.com/ldorau/rpma/actions/runs/4498091834/jobs/7914323186) at the “Upload coverage to Codecov” step.

### Expected Results

Usable report using codecov-action@v3. Code coverage should be the same like in the case of the bash uploader on the main branch ([Codecov](https://app.codecov.io/github/ldorau/rpma)).

### Actual Results

Unusable report using codecov-action@v3.

### Additional Information

1. The branch with the codecov-action@v3 uploader:

- GH repo: [GitHub - ldorau/rpma at test-new-COVERAGE](https://github.com/ldorau/rpma/tree/test-new-COVERAGE)
- codecov report: [Codecov](https://app.codecov.io/github/ldorau/rpma/tree/test-new-COVERAGE)
- latest commit: [Codecov](https://app.codecov.io/github/ldorau/rpma/commit/043da06bd20568b234b6d39585d4bb2a08812acd)

1. The “main” branch with the bash uploader:

- GH repo: [GitHub - ldorau/rpma: Remote Persistent Memory Access](https://github.com/ldorau/rpma)
- codecov report: [Codecov](https://app.codecov.io/github/ldorau/rpma)

---

<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:** [March 23, 2023, 9:46pm UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/2 "2023-03-23T21:46:06Z")

</div>

@dluki, I’ll take a look, but the first thing I noticed is that your coverage reports are pretty empty. Let me know if that rings any bells.

* * *

On the commit page,  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/a/a27a59da12e4056c76e8ba03a98a8f5163e07e9a.png)

and look at the coverage reports after the list of files.

---

<div class="post-metadata">

**Author:** ![dluki](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dluki](https://community.codecov.com/u/dluki)\
**Post date:** [March 23, 2023, 10:22pm UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/3 "2023-03-23T22:22:00Z")

</div>

Thanks for your reply!  
Yes, I know, but I do not know why they are empty…

There is a part of Codecov output:

```auto
File '/rpma/src/conn_cfg.c'
Lines executed:100.00% of 104
No branches
No calls
Creating '#rpma#src#conn_cfg.c.gcov'

File '/rpma/src/conn_req.c'
Lines executed:100.00% of 232
No branches
No calls
Creating '#rpma#src#conn_req.c.gcov'

```

100% of lines are executed, but there are: “No branches” and “No calls” - is it OK?  
By the way, the relative paths of the above files inside of the git repo are:

- src/conn\_cfg.c (instead of ‘/rpma/src/conn\_cfg.c’) and
- src/conn\_req.c (instead of ‘/rpma/src/conn\_req.c’).

So `/rpma/` could be removed, but fixing paths using the `codecov.yml` file:

```auto
fixes:
  - "/home/runner/work/rpma/rpma/::"
  - "/rpma/::"
  - "rpma/::"

```

does not fix that …

---

<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:** [March 26, 2023, 1:11am UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/4 "2023-03-26T01:11:18Z")

</div>

@dluki, hmm, I’d like to compare the Codecov outputs fully. Would you be able to link a URL pointing to the Codecov upload when using the bash uploader?

---

<div class="post-metadata">

**Author:** ![dluki](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dluki](https://community.codecov.com/u/dluki)\
**Post date:** [March 27, 2023, 6:10am UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/5 "2023-03-27T06:10:19Z")

</div>

@tom This is the last Codecov upload when using the bash uploader:  
[https://app.codecov.io/github/pmem/rpma/commit/8d8f24c3ae92fd6d5be6d97ac626282e7c706498](https://app.codecov.io/github/pmem/rpma/commit/8d8f24c3ae92fd6d5be6d97ac626282e7c706498)

and the last using the codecov-action@v3 uploader:

> **[Code coverage done right.](https://app.codecov.io/github/ldorau/rpma/commit/043da06bd20568b234b6d39585d4bb2a08812acd)**
>
> Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

---

<div class="post-metadata">

**Author:** ![dluki](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dluki](https://community.codecov.com/u/dluki)\
**Post date:** [March 27, 2023, 6:59am UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/6 "2023-03-27T06:59:08Z")

</div>

@tom When `codecov.yml` contains only:

```auto
fixes:
  - "rpma/::"

```

the result is the same:

> **[Code coverage done right.](https://app.codecov.io/github/ldorau/rpma/commit/b72d495f33f58debca75718788545c59f512dcc1)**
>
> Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

```auto
rpma/src/conn.c
rpma/src/conn.h
rpma/src/conn_cfg.c
rpma/src/conn_cfg.h
rpma/src/conn_req.c
rpma/src/conn_req.h
rpma/src/cq.c

```

---

<div class="post-metadata">

**Author:** ![dluki](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dluki](https://community.codecov.com/u/dluki)\
**Post date:** [April 5, 2023, 8:33am UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/7 "2023-04-05T08:33:08Z")

</div>

@tom This is the last Codecov upload when using the bash uploader:

> **[Code coverage done right.](https://app.codecov.io/github/pmem/rpma/commit/8d8f24c3ae92fd6d5be6d97ac626282e7c706498)**
>
> Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

---

<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:** [April 11, 2023, 8:11pm UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/8 "2023-04-11T20:11:54Z")

</div>

@dluki sorry for the delay here. I had an idea and was working on a fix. Could you try running the action again, I just released a new version of it.

---

<div class="post-metadata">

**Author:** ![dluki](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dluki](https://community.codecov.com/u/dluki)\
**Post date:** [April 12, 2023, 9:45am UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/9 "2023-04-12T09:45:51Z")

</div>

@tom I have re-run the last build and it detects only one (not a source) file now:  
[2023-04-12T09:18:49.367Z] [‘info’] =\> Found 1 possible coverage files: rpma/.github/workflows/coverage.yml

See:

> <https://github.com/ldorau/rpma/actions/runs/4677035149/jobs/8284071280>

> **[Code coverage done right.](https://app.codecov.io/github/ldorau/rpma/commit/0689c0d7a4df5e5e4525f7720bd096d9de7bc8ee)**
>
> Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

---

<div class="post-metadata">

**Author:** ![dluki](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dluki](https://community.codecov.com/u/dluki)\
**Post date:** [April 14, 2023, 1:50pm UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/10 "2023-04-14T13:50:22Z")

</div>

@tom see the last build:

> <https://github.com/pmem/rpma/actions/runs/4700484835/jobs/8335228467>

> **[Code coverage done right.](https://app.codecov.io/github/pmem/rpma/commit/2660e6b71d8e65ef407fecd0e76fc18930048ab1)**
>
> Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

---

<div class="post-metadata">

**Author:** ![dluki](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dluki](https://community.codecov.com/u/dluki)\
**Post date:** [April 17, 2023, 7:41am UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/11 "2023-04-17T07:41:28Z")

</div>

Hi @tom, do you have any ideas what can be wrong here?

---

<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:** [April 21, 2023, 3:08am UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/12 "2023-04-21T03:08:21Z")

</div>

@dluki it looks like you were using a bunch of different args with the bash uploader [here](https://github.com/ldorau/rpma/commit/2660e6b71d8e65ef407fecd0e76fc18930048ab1#diff-6582bcec20455a526e7dcd5e7baff42f58b40c8a48fad29b29844410a136a8e1L70)

Specifically, setting `gcovexe`

```bash
	clang_used=$($CMAKE -LA -N . | grep CMAKE_C_COMPILER | grep clang | wc -c)
	if [[$clang_used > 0]]; then
		gcovexe="llvm-cov gcov"
	else
		gcovexe="gcov"
	fi

```

I suspect maybe you need to add to the Action

```auto
  gcov_executable: llvm-cov gcov

```

but that is my best guess.

---

<div class="post-metadata">

**Author:** ![dluki](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dluki](https://community.codecov.com/u/dluki)\
**Post date:** [April 21, 2023, 12:33pm UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/13 "2023-04-21T12:33:27Z")

</div>

@tom The result is following:

> <https://github.com/ldorau/rpma/actions/runs/4764870940/jobs/8469967910>

```auto
[2023-04-21T12:31:21.822Z] ['verbose'] coveragepy is not installed
[2023-04-21T12:31:21.822Z] ['info'] Searching for coverage files...
[2023-04-21T12:31:22.036Z] ['info'] Warning: Some files located via search were excluded from upload.
[2023-04-21T12:31:22.036Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2023-04-21T12:31:22.037Z] ['verbose'] Preparing to clean the following coverage paths: .github/workflows/coverage.yml
[2023-04-21T12:31:22.038Z] ['info'] => Found 1 possible coverage files:
  .github/workflows/coverage.yml
[2023-04-21T12:31:22.038Z] ['verbose'] End of network processing
[2023-04-21T12:31:22.038Z] ['info'] Processing /home/runner/work/rpma/rpma/.github/workflows/coverage.yml...
[2023-04-21T12:31:22.041Z] ['error'] There was an error running the uploader: undefined is not a function
[2023-04-21T12:31:22.042Z] ['verbose'] The error stack is: TypeError: undefined is not a function
    at main (/snapshot/repo/dist/src/index.js)
[2023-04-21T12:31:22.042Z] ['verbose'] End of uploader: 781 milliseconds
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255

```

---

<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:** [April 21, 2023, 3:42pm UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/14 "2023-04-21T15:42:37Z")

</div>

@dluki can you remove the `working-directory` argument?

---

<div class="post-metadata">

**Author:** ![dluki](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dluki](https://community.codecov.com/u/dluki)\
**Post date:** [April 21, 2023, 4:26pm UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/15 "2023-04-21T16:26:09Z")

</div>

@tom Removed: [test: new COVERAGE · ldorau/rpma@85d6e42 · GitHub](https://github.com/ldorau/rpma/commit/85d6e4231796b15784f01a1c5bc88774468e10f1#diff-a2115d277b5ca5a2f09a999e53440839cf332b94da177f3d1766334555b0f7c6)

The build: [test: new COVERAGE · ldorau/rpma@85d6e42 · GitHub](https://github.com/ldorau/rpma/actions/runs/4766860771/jobs/8474412004)

```auto
Lines executed:70.62% of 13085
[2023-04-21T16:24:42.055Z] ['verbose'] coveragepy is not installed
[2023-04-21T16:24:42.056Z] ['info'] Searching for coverage files...
[2023-04-21T16:24:42.192Z] ['info'] Warning: Some files located via search were excluded from upload.
[2023-04-21T16:24:42.193Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2023-04-21T16:24:42.193Z] ['verbose'] Preparing to clean the following coverage paths: .github/workflows/coverage.yml
[2023-04-21T16:24:42.193Z] ['info'] => Found 1 possible coverage files:
  .github/workflows/coverage.yml
[2023-04-21T16:24:42.193Z] ['verbose'] End of network processing
[2023-04-21T16:24:42.193Z] ['info'] Processing /home/runner/work/rpma/rpma/.github/workflows/coverage.yml...
[2023-04-21T16:24:42.194Z] ['error'] There was an error running the uploader: undefined is not a function
[2023-04-21T16:24:42.195Z] ['verbose'] The error stack is: TypeError: undefined is not a function
    at main (/snapshot/repo/dist/src/index.js)
[2023-04-21T16:24:42.195Z] ['verbose'] End of uploader: 541 milliseconds
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255

```

---

<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:** [April 21, 2023, 4:30pm UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/16 "2023-04-21T16:30:06Z")

</div>

@dluki sorry, I meant `root_dir: /home/runner/work/rpma/rpma/` as well

---

<div class="post-metadata">

**Author:** ![dluki](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dluki](https://community.codecov.com/u/dluki)\
**Post date:** [April 21, 2023, 4:49pm UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/17 "2023-04-21T16:49:11Z")

</div>

@tom Removed too: [test: new COVERAGE · ldorau/rpma@2037d00 · GitHub](https://github.com/ldorau/rpma/commit/2037d00308165bf6e1d4fccae6b379dc92b3bbba#diff-a2115d277b5ca5a2f09a999e53440839cf332b94da177f3d1766334555b0f7c6)

The build: [test: new COVERAGE · ldorau/rpma@2037d00 · GitHub](https://github.com/ldorau/rpma/actions/runs/4767033820/jobs/8474795668)

```auto
Lines executed:70.62% of 13085
[2023-04-21T16:48:32.788Z] ['verbose'] coveragepy is not installed
[2023-04-21T16:48:32.788Z] ['info'] Searching for coverage files...
[2023-04-21T16:48:32.932Z] ['info'] Warning: Some files located via search were excluded from upload.
[2023-04-21T16:48:32.932Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2023-04-21T16:48:32.932Z] ['verbose'] Preparing to clean the following coverage paths: .github/workflows/coverage.yml
[2023-04-21T16:48:32.933Z] ['info'] => Found 1 possible coverage files:
  .github/workflows/coverage.yml
[2023-04-21T16:48:32.933Z] ['verbose'] End of network processing
[2023-04-21T16:48:32.933Z] ['info'] Processing /home/runner/work/rpma/rpma/.github/workflows/coverage.yml...
[2023-04-21T16:48:32.934Z] ['error'] There was an error running the uploader: undefined is not a function
[2023-04-21T16:48:32.935Z] ['verbose'] The error stack is: TypeError: undefined is not a function
    at main (/snapshot/repo/dist/src/index.js)
[2023-04-21T16:48:32.935Z] ['verbose'] End of uploader: 575 milliseconds
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255

```

---

<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:** [April 21, 2023, 5:00pm UTC](https://community.codecov.com/t/unusable-report-using-codecov-action-v3-bash-uploader-works-well/4223/18 "2023-04-21T17:00:23Z")

</div>

@dluki this is really strange…

I’m going to be offline until May 1st, the best thing I can recommend is that your coverage reports are not getting collected.

I wonder if 1. you are in the wrong directory, 2. the coverage reports are not being created, or 3. the coverage reports are being excluded via [this list](https://github.com/codecov/uploader/blob/main/src/helpers/files.ts#L47).
