"Error Processing Reports" error for a simple example project (that has worked in the past)

Description

I teach an introductory Software Development Methods & Tools course. I have a trivial java project in a that I have also used in past semesters (simple java project w/ github, travis, and codecov). However, it is not working this semester and I have so far been unable to resolve it.

It looks as if everything runs fine and uploads in the build log.

However, then the error, “There was an error processing coverage reports” shows up.

Thanks in advance to any tips/guidance that anyone may have.

Commit SHAs

0a595c9654432db7d2b0ddbe9ab460416a8606ad

Repository

A link to the repository in question
https://github.com/CS3250/ducksim

CI/CD or Build URL

Uploader

Bash uploader being used follow (with token even though it is not needed)
$ bash <(curl -s https://codecov.io/bash) -t 6de8decf-bf7d-414d-b5a6-f5375e974d2f

Codecov Output

  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/

                              Bash-20210309-2b87ace
==> git version 2.27.0 found
==> curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets 
==> Travis CI detected.
    project root: .
    Yaml found at: codecov.yml
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy not found
==> Searching for coverage reports in:
    + .
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Appending build variables
    + TRAVIS_OS_NAME
    + oraclejdk11
==> Reading reports
    + ./build/reports/jacoco/report.xml bytes=275
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    -> No adjustments found
==> Gzipping contents
        4.0K	/tmp/codecov.ztn4fw.gz
==> Uploading reports
    url: https://codecov.io
    query: branch=fix_blue_duck_quack&commit=0a595c9654432db7d2b0ddbe9ab460416a8606ad&build=81.1&build_url=&name=&tag=&slug=CS3250%2Fducksim&service=travis&flags=&pr=19&job=494364104&cmd_args=t
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-20210309-2b87ace&token=secret&branch=fix_blue_duck_quack&commit=0a595c9654432db7d2b0ddbe9ab460416a8606ad&build=81.1&build_url=&name=&tag=&slug=CS3250%2Fducksim&service=travis&flags=&pr=19&job=494364104&cmd_args=t
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2021-03-29/02109B7E7C6C938666AEBC45121DD34A/0a595c9654432db7d2b0ddbe9ab460416a8606ad/e43ba0d6-842e-44d4-a528-c1e7807f5dd3.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20210329%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210329T000656Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=eb09c67e2bb0602e63a2d70efe3a84fc5b330c16a05d036f825b0406ee2da697
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   432    0     0  100   432      0   2343 --:--:-- --:--:-- --:--:--  2347
    -> Reports have been successfully queued for processing at https://codecov.io/github/CS3250/ducksim/commit/0a595c9654432db7d2b0ddbe9ab460416a8606ad
Done. Your build exited with 0.

Expected Results

Report should be available/visible on codecov.io. The local version of the report is shown here:

Actual Results

The error, “There was an error processing coverage reports” appears on codecov.io when clicking on the URL from the build log.

@sgeinitz, looking at the raw report uploaded to Codecov

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><!DOCTYPE report PUBLIC "-//JACOCO//DTD Report 1.1//EN" "report.dtd"><report name="ducksim"><sessioninfo id="travis-job-6a57798a-62fb-4254-8636-acf323733871-1385bae2" start="1616976403398" dump="1616976405070"/></report><<<<<< EOF

is the entire file. We see this as an empty file, as there is no information to parse here. I would guess there is an issue with the way those tools are pulling coverage.

Thank you for the quick reply. It seems that jacoco was creating html reports but not the necessary xml reports. This seems to be a somewhat common problem with jacoco.

I was able to resolve it by modifying the build configuration file slightly.

1 Like