# Error Processing Coverage Report

**URL:** <https://community.codecov.com/t/error-processing-coverage-report/1875>\
**Category:** Support\
**Created:** [August 13, 2020, 10:00am UTC](https://community.codecov.com/t/error-processing-coverage-report/1875 "2020-08-13T10:00:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [August 13, 2020, 10:00am UTC](https://community.codecov.com/t/error-processing-coverage-report/1875/1 "2020-08-13T10:00:09Z")

</div>

### Description

Given the [following XML coverage report](https://jenkinsci.saltstack.com/job/pr-amazon2-py3-slow/job/master/380/artifact/artifacts/coverage/salt.xml), produced in the [following CI build](https://jenkinsci.saltstack.com/job/pr-amazon2-py3-slow/job/master/380/), for which the codecov bash script reported [this](https://codecov.io/github/saltstack/salt/commit/4684a0b585772e05df57c047d673e44229360774) as the URL to see the report.

Why is it failing to process the report?

### Repository

> **[GitHub - saltstack/salt: Software to automate the management and...](https://github.com/saltstack/salt)**
>
> Software to automate the management and configuration of infrastructure and applications at scale.

### CI/CD

Jenkins

### Uploader

The bash uploader.

### Commit SHAs

> <https://github.com/saltstack/salt/commit/4684a0b585772e05df57c047d673e44229360774>

### Codecov YAML

> <https://github.com/saltstack/salt/blob/4684a0b585772e05df57c047d673e44229360774/.codecov.yml>

```yaml
codecov:
  ci:
    - jenkinsci.saltstack.com
    - github.com

  max_report_age: 24 # The age you want coverage reports to expire at, or if you
                               # want to disable this check. Expired reports will not be processed by codecov.
  require_ci_to_pass: yes # Less spammy. Only notify on passing builds.

ignore:
  - ^*.py$ # python files at the repo root, ie, setup.py
  - doc/.* # ignore any code under doc/
  - salt/ext/.* # ignore any code under salt/ext

coverage:
  round: up
  range: 70..100
  precision: 2

  notify: {}
  status: false

flags:
  salt:
    paths:
      - salt/
    carryforward: true # https://docs.codecov.io/docs/carryforward-flags
  tests:
    paths:
      - tests/
    carryforward: true

# Disable Comments
comment: off

```

### Codecov Output

```auto
09:26:35 [Pipeline] {
09:26:36 [Pipeline] sh
09:26:36 + '[' -f artifacts/coverage/salt.xml ']'
09:26:36 + curl -L https://codecov.io/bash
09:26:36 ++ pwd
09:26:36 + /bin/bash -s -- -R /var/jenkins/workspace/pr-amazon2-py3-slow_master -n amazon-2-py3-runtests-zeromq-salt -f artifacts/coverage/salt.xml -F amazon2,py3,runtests,zeromq,salt
09:26:36 % Total % Received % Xferd Average Speed Time Time Time Current
09:26:36 Dload Upload Total Spent Left Speed
09:26:36  
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
09:26:36 _____ _
09:26:36 / ____ | | |
09:26:36 | | _____ | | ______  _______
09:26:36 | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
09:26:36 | |___| (_) | (_| |__/ (_| (_) \ V /
09:26:36 \ _____\___ / \ __,_|\___ |\ ___\___ / \_/
09:26:36 Bash-20200728-9fb7d93
09:26:36  
09:26:36  
09:26:36 ==> Jenkins CI detected.
09:26:36 project root: /var/jenkins/workspace/pr-amazon2-py3-slow_master
09:26:36 --> token set from env
09:26:36 Yaml found at: .codecov.yml
09:26:36  
100 51819 100 51819 0 0 104k 0 --:--:-- --:--:-- --:--:-- 104k
09:26:36 -> Found 1 reports
09:26:36 ==> Detecting git/mercurial file structure
09:26:36 ==> Reading reports
09:26:36 + artifacts/coverage/salt.xml bytes=14169480
09:26:36 ==> Appending adjustments
09:26:36 https://docs.codecov.io/docs/fixing-reports
09:26:36 + Found adjustments
09:26:36 ==> Gzipping contents
09:26:37 ==> Uploading reports
09:26:37 url: https://codecov.io
09:26:37 query: branch=master&commit=4684a0b585772e05df57c047d673e44229360774&build=380&build_url=https%3A%2F%2Fjenkinsci.saltstack.com%2Fjob%2Fpr-amazon2-py3-slow%2Fjob%2Fmaster%2F380%2F&name=amazon-2-py3-runtests-zeromq-salt&tag=&slug=saltstack%2Fsalt&service=jenkins&flags=amazon2,py3,runtests,zeromq,amazon2,py3,runtests,zeromq,salt&pr=&job=&cmd_args=R,n,f,F
09:26:37 -> Pinging Codecov
09:26:37 https://codecov.io/upload/v4?package=bash-20200728-9fb7d93&token=secret&branch=master&commit=4684a0b585772e05df57c047d673e44229360774&build=380&build_url=https%3A%2F%2Fjenkinsci.saltstack.com%2Fjob%2Fpr-amazon2-py3-slow%2Fjob%2Fmaster%2F380%2F&name=amazon-2-py3-runtests-zeromq-salt&tag=&slug=saltstack%2Fsalt&service=jenkins&flags=amazon2,py3,runtests,zeromq,amazon2,py3,runtests,zeromq,salt&pr=&job=&cmd_args=R,n,f,F
09:26:38 -> Uploading to
09:26:38 https://storage.googleapis.com/codecov/v4/raw/2020-08-13/94890F20B2A4896414641D1E2DACE6ED/4684a0b585772e05df57c047d673e44229360774/710d6648-8705-4127-8449-a58b73dc4d91.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20200813%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20200813T082638Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=c0f55b5ae5dbec53eceaf239726ca6c76b79b65d6b6f05c21c3a2b275c7ef853
09:26:38 % Total % Received % Xferd Average Speed Time Time Time Current
09:26:38 Dload Upload Total Spent Left Speed
09:26:38  
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1060k 0 0 100 1060k 0 3501k --:--:-- --:--:-- --:--:-- 3501k
09:26:38 -> View reports at https://codecov.io/github/saltstack/salt/commit/4684a0b585772e05df57c047d673e44229360774
09:26:38 [Pipeline] }

```

### Additional Information

Let me know what else you need.

---

<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:** [August 17, 2020, 10:26pm UTC](https://community.codecov.com/t/error-processing-coverage-report/1875/2 "2020-08-17T22:26:21Z")

</div>

Hi @s0undt3ch, the success from the script is just that the coverage report successfully uploaded to our servers. However, we were unable to process that report. I’ve forwarded this to the product team to take a look.

---

<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:** [August 17, 2020, 10:36pm UTC](https://community.codecov.com/t/error-processing-coverage-report/1875/3 "2020-08-17T22:36:26Z")

</div>

Actually, I’m seeing something really strange [here](https://codecov.io/gh/saltstack/salt/commits)

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/2/2913af125c429ccfb4599b2a78d18bd1ca6fc53b.png)

I’m trying to source out these commits, but I’m having a hard time, mostly because the commit SHAs shown don’t match up to any commits on GitHub. Would you be able to help find a Jenkins build URL that would match one of these commits SHAs?

---

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [August 18, 2020, 6:48am UTC](https://community.codecov.com/t/error-processing-coverage-report/1875/4 "2020-08-18T06:48:58Z")

</div>

Since we’ve struggled, and still do, with codecov to report data to us, we disabled uploading coverage reports from pull requests.  
These days we only upload coverage data on branch and nightly builds.  
Maybe that’s it?  
Although, the logic to upload on PRs, if we missed disabling it on PRs somewhere is the same, so they should have been properly identified.

I’ll try to see where that’s coming from…

Is there a size limit on the reports we upload?

---

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [August 18, 2020, 11:40am UTC](https://community.codecov.com/t/error-processing-coverage-report/1875/5 "2020-08-18T11:40:52Z")

</div>

About those commits which cannot be found, that was from an internal Jenkins instance which is now disabled from uploading coverage reports.

---

<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:** [August 19, 2020, 3:30am UTC](https://community.codecov.com/t/error-processing-coverage-report/1875/6 "2020-08-19T03:30:04Z")

</div>

> These days we only upload coverage data on branch and nightly builds.  
> Maybe that’s it?

That is probably related, but I’m not totally sure. It depends on if coverage is uploaded after a PR is merged into a branch.

> Is there a size limit on the reports we upload?

There isn’t strictly, but I don’t think your uploads are overly large (\< 10MB). Correct me if I’m wrong here.

> About those commits which cannot be found, that was from an internal Jenkins instance which is now disabled from uploading coverage reports.

Ok, that makes sense. As I mentioned, this is a weird scenario, I’ve messaged the product team.

---

<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:** [August 26, 2020, 7:56pm UTC](https://community.codecov.com/t/error-processing-coverage-report/1875/8 "2020-08-26T19:56:51Z")

</div>

@s0undt3ch, I was taking a look at your repo and noticed you had been getting most of your commits through. Is this still an issue? And if not, I was curious what might have changed.

---

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [August 27, 2020, 6:39am UTC](https://community.codecov.com/t/error-processing-coverage-report/1875/9 "2020-08-27T06:39:53Z")

</div>

Something indeed change, but it wasn’t on our part.

On [this](https://codecov.io/gh/saltstack/salt/commit/10df62c58262341d87eb5b0b65fc19f017e9272b/build) commit we have uploaded reports, though, almost all are not accounted for, only 4, for the builds which have the fewer tests and are thus way faster. It was like this before we started getting errors.

On [this](https://codecov.io/gh/saltstack/salt/commit/bc6df7408e719df3290b5f2954c8f12b877a7850/build) we have way more builds getting reported, but their names have CF, which makes me think they are carry forward information?  
So, on this last commit, is all information carry forward information?  
Which builds were actually uploaded from the CI build?

So, yeah, we seem to be getting more data, specially more aligned to what the expected coverage is, but now I’m just lost at what actual data gets uploaded and what data was carried forward…

---

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [September 2, 2020, 9:17am UTC](https://community.codecov.com/t/error-processing-coverage-report/1875/10 "2020-09-02T09:17:43Z")

</div>

Are there any updates?

---

<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 4, 2020, 4:30pm UTC](https://community.codecov.com/t/error-processing-coverage-report/1875/11 "2020-09-04T16:30:46Z")

</div>

@s0undt3ch, sorry this is my mistake. I wasn’t able to pull our logs down from those commits, do you have a more recent instance of this happening?

The CF does denote carryforward, but I’m not sure why there are so many builds. We don’t typically display builds unless there is an upload event from the CI/CD.
