# There was an error processing coverage reports via Github Actions

**URL:** <https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511>\
**Category:** Support\
**Tags:** ruby, github\
**Created:** [January 27, 2021, 10:37pm UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511 "2021-01-27T22:37:35Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![pioz](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/pioz/32/1515_2.png) [@pioz](https://community.codecov.com/u/pioz)\
**Post date:** [January 27, 2021, 10:37pm UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/1 "2021-01-27T22:37:36Z")

</div>

I’m trying to upload coverage report to codecov via github actions.  
Here my github action:

```auto
- name: Run tests
  run: bundle exec rake test
- name: Upload coverage report to Codecov
  uses: codecov/codecov-action@v1
  with:
    file: ./coverage/.resultset.json

```

I have a `codecov.yml` file in the root of my project like this:

```auto
fixes:
  - '/home/runner/work/chess/chess/::'

```

The report seems to be uploaded correctly to Codecov but when I open the Codecov report page I see the message “There was an error processing coverage reports.”

I attach here some screenshots:

 ![screnshot1](https://imgur.com/lXNZV8h.png)

Any idea to solve this?

---

<div class="post-metadata">

**Author:** ![pioz](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/pioz/32/1515_2.png) [@pioz](https://community.codecov.com/u/pioz)\
**Post date:** [January 27, 2021, 10:38pm UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/2 "2021-01-27T22:38:13Z")

</div>

![screnshot1](https://imgur.com/u1xzNvb.png)

---

<div class="post-metadata">

**Author:** ![pioz](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/pioz/32/1515_2.png) [@pioz](https://community.codecov.com/u/pioz)\
**Post date:** [January 27, 2021, 10:39pm UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/3 "2021-01-27T22:39:39Z")

</div>

![screnshot1](https://imgur.com/TLFv8eB.png)

---

<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:** [January 27, 2021, 10:55pm UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/4 "2021-01-27T22:55:36Z")

</div>

@pioz, can you please link to the PR and Codecov link?

---

<div class="post-metadata">

**Author:** ![pioz](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/pioz/32/1515_2.png) [@pioz](https://community.codecov.com/u/pioz)\
**Post date:** [January 27, 2021, 11:29pm UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/5 "2021-01-27T23:29:00Z")

</div>

Here the codecov link [Code coverage done right.](https://codecov.io/github/pioz/chess/commit/baa3986aaa95460d9614eef0f1c6dca6843cca2a)

I’ve no PR cause is a direct push on master:  
[https://github.com/pioz/chess/runs/1780632653?check\_suite\_focus=true](https://github.com/pioz/chess/runs/1780632653?check_suite_focus=true)

---

<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:** [January 27, 2021, 11:47pm UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/6 "2021-01-27T23:47:17Z")

</div>

@pioz, I’m not seeing a `codecov.yml` file

Change: [Use simplecov, support from Ruby 2.5 · pioz/chess@baa3986 · GitHub](https://github.com/pioz/chess/commit/baa3986aaa95460d9614eef0f1c6dca6843cca2a)  
Current master: [GitHub - pioz/chess: A fast chess library that use bitboards to play chess with Ruby](https://github.com/pioz/chess)

Did I miss something here?

---

<div class="post-metadata">

**Author:** ![pioz](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/pioz/32/1515_2.png) [@pioz](https://community.codecov.com/u/pioz)\
**Post date:** [January 27, 2021, 11:49pm UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/7 "2021-01-27T23:49:32Z")

</div>

Oh, yes… I have removed because it had no effect.

---

<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:** [January 27, 2021, 11:51pm UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/8 "2021-01-27T23:51:25Z")

</div>

Can you link to the commit with the file?

---

<div class="post-metadata">

**Author:** ![pioz](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/pioz/32/1515_2.png) [@pioz](https://community.codecov.com/u/pioz)\
**Post date:** [January 27, 2021, 11:54pm UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/9 "2021-01-27T23:54:58Z")

</div>

I dont think is a problem with the paths. Here complete log of the action:

```auto
==> git version 2.30.0 found
==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
==> GitHub Actions detected.
    project root: .
    Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./coverage/.resultset.json bytes=12893
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    + Found adjustments
==> Gzipping contents
        8.0K	/tmp/codecov.72OlJZ.gz
==> Uploading reports
    url: https://codecov.io
    query: branch=master&commit=baa3986aaa95460d9614eef0f1c6dca6843cca2a&build=516440007&build_url=http%3A%2F%2Fgithub.com%2Fpioz%2Fchess%2Factions%2Fruns%2F516440007&name=&tag=&slug=pioz%2Fchess&service=github-actions&flags=&pr=&job=Ruby&cmd_args=n,F,Q,f
-> Pinging Codecov
https://codecov.io/upload/v4?package=github-action-20210115-cec3c92&token=secret&branch=master&commit=baa3986aaa95460d9614eef0f1c6dca6843cca2a&build=516440007&build_url=http%3A%2F%2Fgithub.com%2Fpioz%2Fchess%2Factions%2Fruns%2F516440007&name=&tag=&slug=pioz%2Fchess&service=github-actions&flags=&pr=&job=Ruby&cmd_args=n,F,Q,f
-> Uploading to
https://storage.googleapis.com/codecov/v4/raw/2021-01-27/98BFC3C23F672DE4BC9E4576851F92C1/baa3986aaa95460d9614eef0f1c6dca6843cca2a/d0e7ddb5-28eb-4da2-bc3a-082616f087d3.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20210127%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210127T232025Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=266353e3fa6963091b78373e8429e0d4c4455f126f9ea54da1e41bc6bbd152d6
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed

  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 5761 0 0 100 5761 0 27433 --:--:-- --:--:-- --:--:-- 27433
    -> View reports at https://codecov.io/github/pioz/chess/commit/baa3986aaa95460d9614eef0f1c6dca6843cca2a

```

As you can see the file was uploaded correctly.

Anyway, I’ve just added the file: [Add codecov.yml · pioz/chess@8a76736 · GitHub](https://github.com/pioz/chess/commit/8a767366193692d4c8629dab67d44e6c998ccbef)

---

<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:** [January 28, 2021, 12:03am UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/10 "2021-01-28T00:03:35Z")

</div>

@pioz, it looks like it’s picking up `resultset.json` which is not really a [stable file](https://github.com/codeclimate/test-reporter/issues/413). Can you try using the [Codecov Ruby formatter](https://github.com/codecov/codecov-ruby/blob/master/lib/codecov/formatter.rb#L9) or the [SimpleCov Cobertura formatter](https://github.com/dashingrocket/simplecov-cobertura)

---

<div class="post-metadata">

**Author:** ![pioz](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/pioz/32/1515_2.png) [@pioz](https://community.codecov.com/u/pioz)\
**Post date:** [January 28, 2021, 12:39am UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/11 "2021-01-28T00:39:14Z")

</div>

I cannot use [GitHub - codecov/codecov-ruby: Ruby uploader for Codecov](https://github.com/codecov/codecov-ruby) cause when I run the test, it upload also the report, see [Split formatter and uploader · Issue #32 · codecov/codecov-ruby · GitHub](https://github.com/codecov/codecov-ruby/issues/32) and it is a pity.

It works with [SimpleCov Cobertura formatter](https://github.com/dashingrocket/simplecov-cobertura).

**But it would be great if codecov supported the default simplecov `./coverage/.resultset.json` file!** No need extra dependencies.

---

<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:** [January 28, 2021, 12:49am UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/12 "2021-01-28T00:49:30Z")

</div>

@pioz, hmm… the formatter has been split from the uploader. You can use `Codecov::SimpleCov::Formatter`.

---

<div class="post-metadata">

**Author:** ![pioz](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/pioz/32/1515_2.png) [@pioz](https://community.codecov.com/u/pioz)\
**Post date:** [January 28, 2021, 12:51am UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/13 "2021-01-28T00:51:45Z")

</div>

> <https://github.com/codecov/codecov-ruby/blob/b04f1d1dfcf729e01bca4a71800446c76faa4b04/lib/codecov.rb#L15>

The upload method is always called, I think.

---

<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:** [January 28, 2021, 12:51am UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/14 "2021-01-28T00:51:51Z")

</div>

@pioz, however, I see your point. We’ll work to remove more dependencies.

---

<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:** [January 28, 2021, 12:53am UTC](https://community.codecov.com/t/there-was-an-error-processing-coverage-reports-via-github-actions/2511/15 "2021-01-28T00:53:13Z")

</div>

@pioz, that’s `SimpleCov::Formatter::Codecov`, which continues to provide backwards compatibility. To see just the formatter, you can see us deploy it on the [bash uploader](https://github.com/codecov/codecov-bash/blob/master/.simplecov#L4) and [here](https://github.com/codecov/codecov-bash/blob/master/.circleci/config.yml#L33).
