Codecov report stuck in processing for a PR using Codefresh

Please check the troubleshooting guide before creating a ticket.

Description

Using the python uploader in a test container on CodeFresh. The upload shows it went but seems to be stuck in processing and can’t find commit in github.

Description of the issue

Repository

A link to the repository in question (or private)

CI/CD

CodeFresh

Uploader

codecov python

Commit SHAs

Collecting reports

  • /codefresh/volume/splice/coverage.xml bytes=184673

==> Uploading

.url https://codecov.io                                                                                                        

.query commit=5523a777d6c6ebdb7db61483f6fb73691308ab82&branch=feature%2FAMLG-3087-update-codecov&token=<secret>&package=py2.1.9

Gzipping contents..                                                                                                            

Compressed contents to 12726 bytes                                                                                             

Pinging Codecov...                                                                                                             

Uploading to S3...                                                                                                             

https://codecov.io/github/cbsiamlg/splice/commit/5523a777d6c6ebdb7db61483f6fb73691308ab82

Codecov YAML

codecov:
token: $CODECOV_TOKEN
ci:
- “codefresh”
max_report_age: 24
disable_default_path_fixes: no
require_ci_to_pass: yes
notify:
after_n_builds: 2
wait_for_ci: yes

coverage:
range: “50…75”
round: down
precision: 2
status:
project:
default:
target: auto
threshold: 5%
paths:
- “video_app/**/*”
if_no_uploads: error
if_not_found: success
if_ci_failed: error

comment:
layout: “reach, diff, files, flags”
behavior: default
require_changes: true
branches:
- develop
- master
ignore:
- “tests/test_.py"
- "video_app/migrations/

- “video_app/management/"
- "model_dev/**/

- “mysql/"
- "temp_asset/**/

- “credentials//"
- "splice/
"
- "infrastructure/
/*”

Codecov Output

Detecting CI provider

Error running `['git', 'rev-parse', '--abbrev-ref', 'HEAD']`: [Errno 2] No such file or directory: 'git': 'git'                

Error running `['hg', 'branch']`: [Errno 2] No such file or directory: 'hg': 'hg'                                              

→ Got branch from git/hg

Error running `['git', 'rev-parse', 'HEAD']`: [Errno 2] No such file or directory: 'git': 'git'                                

Error running `['hg', 'id', '-i', '--debug', '|', 'tr', '-d', "'+'"]`: [Errno 2] No such file or directory: 'hg': 'hg'         

→ Got sha from git/hg

==> Preparing upload

Error running `['git', 'ls-files']`: [Errno 2] No such file or directory: 'git': 'git'                                         

Error running `['git', 'ls-files']`: [Errno 2] No such file or directory: 'git': 'git'                                         

Error running `['hg', 'locate']`: [Errno 2] No such file or directory: 'hg': 'hg'

Additional Information

The command in our test container:
codecov -t “$CODECOV_TOKEN” -b “$CF_BRANCH” --pr “$CF_PULL_REQUEST_NUMBER” --commit=“$CF_REVISION”

Hi @beatgeek, can you please provide the entirety of the Codecov output including the banner?

Hi @tom

Sure here is the output from the command running in the test container:

| |     ___   __| | ___  ___ _____   __                                                                                        
| |    / _ \ / _  |/ _ \/ __/ _ \ \ / /                                                                                        
| |___| (_) | (_| |  __/ (_| (_) \ V /                                                                                         
 \_____\___/ \____|\___|\___\___/ \_/                                                                                          
                                v2.1.9                                                                                         

==> Detecting CI provider
Error running ['git', 'rev-parse', '--abbrev-ref', 'HEAD']: [Errno 2] No such file or directory: ‘git’: ‘git’
Error running ['hg', 'branch']: [Errno 2] No such file or directory: ‘hg’: ‘hg’
→ Got branch from git/hg
Error running ['git', 'rev-parse', 'HEAD']: [Errno 2] No such file or directory: ‘git’: ‘git’
Error running ['hg', 'id', '-i', '--debug', '|', 'tr', '-d', "'+'"]: [Errno 2] No such file or directory: ‘hg’: ‘hg’
→ Got sha from git/hg
==> Preparing upload
Error running ['git', 'ls-files']: [Errno 2] No such file or directory: ‘git’: ‘git’
Error running ['git', 'ls-files']: [Errno 2] No such file or directory: ‘git’: ‘git’
Error running ['hg', 'locate']: [Errno 2] No such file or directory: ‘hg’: ‘hg’
Error running ['hg', 'locate']: [Errno 2] No such file or directory: ‘hg’: ‘hg’
==> Processing gcov (disable by -X gcov)
==> Collecting reports
+ /codefresh/volume/splice/coverage.xml bytes=184673
==> Uploading
.url https://codecov.io
.query commit=5523a777d6c6ebdb7db61483f6fb73691308ab82&branch=feature%2FAMLG-3087-update-codecov&token=&package=py2.1.9
Gzipping contents…
Compressed contents to 12726 bytes
Pinging Codecov…
Uploading to S3…
Codecov

@beatgeek, did you do a rebase over this commit?

Hi @tom - here you go!

| |     ___   __| | ___  ___ _____   __                                                                                        
| |    / _ \ / _  |/ _ \/ __/ _ \ \ / /                                                                                        
| |___| (_) | (_| |  __/ (_| (_) \ V /                                                                                         
 \_____\___/ \____|\___|\___\___/ \_/                                                                                          
                                v2.1.9                                                                                         

==> Detecting CI provider
Error running ['git', 'rev-parse', '--abbrev-ref', 'HEAD']: [Errno 2] No such file or directory: ‘git’: ‘git’
Error running ['hg', 'branch']: [Errno 2] No such file or directory: ‘hg’: ‘hg’
→ Got branch from git/hg
Error running ['git', 'rev-parse', 'HEAD']: [Errno 2] No such file or directory: ‘git’: ‘git’
Error running ['hg', 'id', '-i', '--debug', '|', 'tr', '-d', "'+'"]: [Errno 2] No such file or directory: ‘hg’: ‘hg’
→ Got sha from git/hg
==> Preparing upload
Error running ['git', 'ls-files']: [Errno 2] No such file or directory: ‘git’: ‘git’
Error running ['git', 'ls-files']: [Errno 2] No such file or directory: ‘git’: ‘git’
Error running ['hg', 'locate']: [Errno 2] No such file or directory: ‘hg’: ‘hg’
Error running ['hg', 'locate']: [Errno 2] No such file or directory: ‘hg’: ‘hg’
==> Processing gcov (disable by -X gcov)
==> Collecting reports
+ /codefresh/volume/splice/coverage.xml bytes=184673
==> Uploading
.url https://codecov.io
.query commit=5523a777d6c6ebdb7db61483f6fb73691308ab82&branch=feature%2FAMLG-3087-update-codecov&token=&package=py2.1.9
Gzipping contents…
Compressed contents to 12726 bytes
Pinging Codecov…
Uploading to S3…
https://codecov.io/github/cbsiamlg/splice/commit/5523a777d6c6ebdb7db61483f6fb73691308ab82

I did not. It’s the last commit in this PR. My merge with develop prior does show coverage.

@tom any ideas - have I set something up incorrectly?

I see my merge from develop into this PR branch was detected and reported on: a day ago

feature/AMLG-3087-update-codecov a40c96e

The one that is pending is when Codefresh is uploading the report from it’s test run which corresponds to the last commit in my PR. Should I switch to using the bash uploader?

@beatgeek we made some updates on our end with processing reports. I also noticed that the past few commits are coming through fine on Codecov. Is this still an issue?

Yes I see them coming in now. :checkered_flag:

1 Like