# Codecov stopped working after switching from bash uploader to codecov uploader

**URL:** <https://community.codecov.com/t/codecov-stopped-working-after-switching-from-bash-uploader-to-codecov-uploader/3209>\
**Category:** Bug Fixes\
**Created:** [September 17, 2021, 12:09am UTC](https://community.codecov.com/t/codecov-stopped-working-after-switching-from-bash-uploader-to-codecov-uploader/3209 "2021-09-17T00:09:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drptbl](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/drptbl/32/2090_2.png) [@drptbl](https://community.codecov.com/u/drptbl)\
**Post date:** [September 17, 2021, 12:09am UTC](https://community.codecov.com/t/codecov-stopped-working-after-switching-from-bash-uploader-to-codecov-uploader/3209/1 "2021-09-17T00:09:13Z")

</div>

_Please search for similar issues before creating a ticket._  
All fields below are required.

### Description

Codecov stopped working after switching from bash uploader to codecov uploader. =

### Commit SHAs

Take a look at PR:

> <https://github.com/Synthetixio/synthetix/pull/1510>
>
> \*\*Changes:\*\*
> \- updated docker containers to use latest node version (14.17.6) a…nd npm (7.23.0)
> \- use \[codecov uploader\](https://docs.codecov.com/docs/codecov-uploader) instead of bash script which is deprecated
> \- added \`job-audit\` before \`job-prepare\` with two additional steps:
> - \`npm audit\` which will fail the whole workflow only if there is critical vulnerability detected in dependencies (\`npm install\` will never be triggered in this case increasing security)
> - \[\`lockfile-lint\`\](https://www.npmjs.com/package/lockfile-lint) which makes sure that lockfile is up to date and has no malicious stuff inside
> \- updated base runner ubuntu image to use the latest
> \- improved caching of node dependencies
> \- updated codechecks dependency
> \- increased timeout for integration tests
> \- fixed codecov github checks which were missing in PRs
> 
> 
> \*\*New workflow:\*\*
> \<img width="1420" alt="Screenshot 2021-09-16 at 17 19 00" src="https://user-images.githubusercontent.com/8177587/133639182-fdb3bf3f-c0a8-4845-bd37-c2503d37188e.png"\>
> 
> 
> \_side note:\_
> \`job-fork-tests\` is also failing on \`develop\` branch, so it's not related to my changes.

### Repository

> **[GitHub - Synthetixio/synthetix: Synthetix Solidity smart contracts](https://github.com/Synthetixio/synthetix)**
>
> Synthetix Solidity smart contracts

### CI/CD or Build URL

[https://app.circleci.com/pipelines/github/Synthetixio/synthetix/8777/workflows/7d5355a4-bcef-4c7b-ac40-70dcd68eecb5/jobs/87052](https://app.circleci.com/pipelines/github/Synthetixio/synthetix/8777/workflows/7d5355a4-bcef-4c7b-ac40-70dcd68eecb5/jobs/87052)

### Uploader

codecov uploader, `codecov -Z -v -t $CODECOV_TOKEN`

### Codecov Output

```auto
#!/bin/bash -eo pipefail
cp -R /tmp/coverage/coverage-*.json .
codecov -Z -v -t $CODECOV_TOKEN

[2021-09-16T23:48:03.632Z] ['info'] 
     _____ _
    / ____ | | |
   | | _____ | | ______  _______
   | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |__/ (_| (_) \ V /
    \ _____\___ / \ __,_|\___ |\ ___\___ / \_/

  Codecov report uploader 0.1.0
[2021-09-16T23:48:03.638Z] ['info'] => Project root located at: /root/repo
[2021-09-16T23:48:03.639Z] ['info'] -> Token found by arguments
[2021-09-16T23:48:03.639Z] ['verbose'] Start of network processing...
[2021-09-16T23:48:03.639Z] ['verbose'] Searching for files in /root/repo
[2021-09-16T23:48:03.653Z] ['info'] Searching for coverage files...
[2021-09-16T23:48:03.666Z] ['info'] => Found 8 possible coverage files:
  coverage-0.json
  coverage-1.json
  coverage-2.json
  coverage-3.json
  coverage-4.json
  coverage-5.json
  coverage-6.json
  coverage-7.json
[2021-09-16T23:48:03.666Z] ['verbose'] End of network processing
[2021-09-16T23:48:03.666Z] ['info'] Processing /root/repo/coverage-0.json...
[2021-09-16T23:48:03.668Z] ['info'] Processing /root/repo/coverage-1.json...
[2021-09-16T23:48:03.669Z] ['info'] Processing /root/repo/coverage-2.json...
[2021-09-16T23:48:03.670Z] ['info'] Processing /root/repo/coverage-3.json...
[2021-09-16T23:48:03.671Z] ['info'] Processing /root/repo/coverage-4.json...
[2021-09-16T23:48:03.672Z] ['info'] Processing /root/repo/coverage-5.json...
[2021-09-16T23:48:03.673Z] ['info'] Processing /root/repo/coverage-6.json...
[2021-09-16T23:48:03.674Z] ['info'] Processing /root/repo/coverage-7.json...
[2021-09-16T23:48:03.738Z] ['info'] Detected CircleCI as the CI provider.
[2021-09-16T23:48:03.738Z] ['verbose'] -> Using the following env variables:
[2021-09-16T23:48:03.738Z] ['verbose'] CI: true
[2021-09-16T23:48:03.738Z] ['verbose'] CIRCLECI: true
[2021-09-16T23:48:03.739Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.1.0&token= ******* &branch=ci-improvements&build=87052&build_url=&commit=e46eca7c62d43ee66c63c8127cbebee3efb8273d&job=0&pr=&service=circleci&slug=Synthetixio/synthetix&name=&tag=&flags=&parent=
[2021-09-16T23:48:03.739Z] ['verbose'] Passed token was 36 characters long
[2021-09-16T23:48:03.739Z] ['verbose'] https://codecov.io/upload/v4?package=uploader-0.1.0&branch=ci-improvements&build=87052&build_url=&commit=e46eca7c62d43ee66c63c8127cbebee3efb8273d&job=0&pr=&service=circleci&slug=Synthetixio/synthetix&name=&tag=&flags=&parent=
        Content-Type: 'text/plain'
        Content-Encoding: 'gzip'
        X-Reduced-Redundancy: 'false'
[2021-09-16T23:48:04.174Z] ['verbose'] Returned upload url: https://codecov.io/github/Synthetixio/synthetix/commit/e46eca7c62d43ee66c63c8127cbebee3efb8273d
https://storage.googleapis.com/codecov/v4/raw/2021-09-16/C8DF28B81F114D84FE06059897392E8D/e46eca7c62d43ee66c63c8127cbebee3efb8273d/8535bef5-0c5e-403b-8f31-b2045ca3d4e1.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20210916%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210916T234804Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=68b481fbc8050fcbe42a1bc97d9a0944e08b92a0c267476d5d120b6d28c9cb97
[2021-09-16T23:48:04.174Z] ['verbose'] https://storage.googleapis.com/codecov/v4/raw/2021-09-16/C8DF28B81F114D84FE06059897392E8D/e46eca7c62d43ee66c63c8127cbebee3efb8273d/8535bef5-0c5e-403b-8f31-b2045ca3d4e1.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20210916%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210916T234804Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=68b481fbc8050fcbe42a1bc97d9a0944e08b92a0c267476d5d120b6d28c9cb97
        Content-Type: 'text/plain'
        Content-Encoding: 'gzip'
[2021-09-16T23:48:04.174Z] ['info'] Uploading...
[2021-09-16T23:48:04.386Z] ['info'] {"status":"success","resultURL":"https://codecov.io/github/Synthetixio/synthetix/commit/e46eca7c62d43ee66c63c8127cbebee3efb8273d"}
CircleCI received exit code 0

```

### Expected Results

- Status checks to exist inside PR
- Message to be sent to the PR

### Actual Results

- Status checks are missing inside PR
- Message with coverage is not sent to the PR

### Additional Information

Codecov stopped working after switching from bash uploader to codecov uploader (codecov uploader PR hasn’t been merged yet to develop, it’s on feature branch but codecov stopped working on the whole repository)

---

<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 20, 2021, 1:58pm UTC](https://community.codecov.com/t/codecov-stopped-working-after-switching-from-bash-uploader-to-codecov-uploader/3209/2 "2021-09-20T13:58:29Z")

</div>

@drptbl by [default](https://docs.codecov.com/docs/codecov-yaml#default-yaml), Codecov does not report status checks or PR comments if CI fails. You can change this behavior by adding

```auto
codecov:
  require_ci_to_pass: false

```

---

<div class="post-metadata">

**Author:** ![drptbl](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/drptbl/32/2090_2.png) [@drptbl](https://community.codecov.com/u/drptbl)\
**Post date:** [September 20, 2021, 7:29pm UTC](https://community.codecov.com/t/codecov-stopped-working-after-switching-from-bash-uploader-to-codecov-uploader/3209/3 "2021-09-20T19:29:43Z")

</div>

Thanks Tom! It solved my issues. I must have missed this one, sorry.

Cheers,  
Jakub.
