Java Project Showing Coverage, but Packages/Paths Not Parsing in Codecov Report

JaCoCo coverage reports are being uploaded to Codecov (though the numbers presented there do not exactly match a locally generated JaCoCo report, they’re always lower), but the the packaging doesn’t look like it’s being mapped quite right.

The sunburst looks very wrong for a project with >75% coverage:
Screen Shot 2021-08-19 at 3 33 40 PM

Then, at the bottom of the Overview page, the top-level package is listed correctly with its associated coverage, but if you click in to “src/main”, no sub-packages or files are mapped or able to be traversed.

Commit SHAs

Any of them, but here’s one: c1721d962e3d8642aeebb70406659912a9b2e7c8

Repository

CI/CD or Build URL

GitHub Actions, the build is through Gradle and JaCoCo

Uploader

GitHub Actions using codecov/codecov-action@v1

Codecov Output

2021-08-19T09:09:36.4961966Z ##[group]Run codecov/codecov-action@v1
2021-08-19T09:09:36.4962572Z with:
2021-08-19T09:09:36.4963298Z file: ./build/reports/jacoco/report.xml
2021-08-19T09:09:36.4964074Z env:
2021-08-19T09:09:36.4964626Z JAVA_HOME: /opt/hostedtoolcache/Java_Adopt_jdk/11.0.11-9/x64
2021-08-19T09:09:36.4965194Z ##[endgroup]
2021-08-19T09:09:36.5601134Z [command]/usr/bin/bash codecov.sh -n -F -Q github-action-v1.5.2 -f ./build/reports/jacoco/report.xml
2021-08-19T09:09:36.5683101Z
2021-08-19T09:09:36.5684083Z _____ _
2021-08-19T09:09:36.5684764Z / | | |
2021-08-19T09:09:36.5685455Z | | ___ __| | ___ ___ _____ __
2021-08-19T09:09:36.5686049Z | | / _ \ / ` |/ _ / / _ \ \ / /
2021-08-19T09:09:36.5686761Z | |
| (
) | (
| | __/ (
| (
) \ V /
2021-08-19T09:09:36.5687488Z ______/ _,|_|____/ _/
2021-08-19T09:09:36.5688625Z Bash-1.0.3
2021-08-19T09:09:36.5689225Z
2021-08-19T09:09:36.5691590Z
2021-08-19T09:09:36.5704016Z e[0;36m==>e[0m git version 2.32.0 found
2021-08-19T09:09:36.5823559Z e[0;36m==>e[0m 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
2021-08-19T09:09:36.5825117Z Release-Date: 2020-01-08
2021-08-19T09:09:36.5826133Z Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
2021-08-19T09:09:36.5827826Z Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
2021-08-19T09:09:36.5829127Z e[0;90m==>e[0m GitHub Actions detected.
2021-08-19T09:09:36.5829736Z Env vars used:
2021-08-19T09:09:36.5830505Z → GITHUB_ACTIONS: true
2021-08-19T09:09:36.5831303Z → GITHUB_HEAD_REF:
2021-08-19T09:09:36.5832119Z → GITHUB_REF: refs/heads/main
2021-08-19T09:09:36.5833083Z → GITHUB_REPOSITORY: alexdlaird/java-ngrok
2021-08-19T09:09:36.5833982Z → GITHUB_RUN_ID: 1146348290
2021-08-19T09:09:36.5835010Z → GITHUB_SHA: c1721d962e3d8642aeebb70406659912a9b2e7c8
2021-08-19T09:09:36.5835993Z → GITHUB_WORKFLOW: CI/CD
2021-08-19T09:09:36.6018414Z e[0;90mproject root:e[0m .
2021-08-19T09:09:36.6084101Z e[0;32mYaml not found, that’s ok! Learn more ate[0m e[0;36mhttp://docs.codecov.io/docs/codecov-yamle[0m
2021-08-19T09:09:36.6433851Z e[0;90m->e[0m Found 1 reports
2021-08-19T09:09:36.6435068Z e[0;90m==>e[0m Detecting git/mercurial file structure
2021-08-19T09:09:36.6515631Z e[0;90m==>e[0m Reading reports
2021-08-19T09:09:36.6572700Z e[0;32m+e[0m ./build/reports/jacoco/report.xml e[0;90mbytes=124563e[0m
2021-08-19T09:09:36.6605145Z e[0;90m==>e[0m Appending adjustments
2021-08-19T09:09:36.6606793Z e[0;36mhttps://docs.codecov.io/docs/fixing-reportse[0m
2021-08-19T09:09:36.6703416Z e[0;90m->e[0m No adjustments found
2021-08-19T09:09:36.6709165Z e[0;90m==>e[0m Gzipping contents
2021-08-19T09:09:36.7034724Z 12K /tmp/codecov.CL56Bp.gz
2021-08-19T09:09:36.7055003Z e[0;90m==>e[0m Uploading reports
2021-08-19T09:09:36.7056194Z e[0;90murl:e[0m https://codecov.io
2021-08-19T09:09:36.7058696Z e[0;90mquery:e[0m branch=main&commit=c1721d962e3d8642aeebb70406659912a9b2e7c8&build=1146348290&build_url=http%3A%2F%2Fgithub.com%2Falexdlaird%2Fjava-ngrok%2Factions%2Fruns%2F1146348290&name=&tag=&slug=alexdlaird%2Fjava-ngrok&service=github-actions&flags=&pr=&job=CI%2FCD&cmd_args=n,F,Q,f
2021-08-19T09:09:36.7092830Z e[0;90m->e[0m Pinging Codecov
2021-08-19T09:09:36.7095734Z https://codecov.io/upload/v4?package=github-action-v1.5.2-1.0.3&token=secret&branch=main&commit=c1721d962e3d8642aeebb70406659912a9b2e7c8&build=1146348290&build_url=http%3A%2F%2Fgithub.com%2Falexdlaird%2Fjava-ngrok%2Factions%2Fruns%2F1146348290&name=&tag=&slug=alexdlaird%2Fjava-ngrok&service=github-actions&flags=&pr=&job=CI%2FCD&cmd_args=n,F,Q,f
2021-08-19T09:09:37.1700994Z e[0;90m->e[0m Uploading to
2021-08-19T09:09:37.1705756Z https://storage.googleapis.com/codecov/v4/raw/2021-08-19/C2BE289577D42473C1158CDE071B906C/c1721d962e3d8642aeebb70406659912a9b2e7c8/6e048b62-c19e-4b64-b081-0df78ce6760a.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20210819%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210819T090937Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=ee73a69a3a4c4175deb8e3fad046a3f9b8710732f661fbc8ecd67fd0ff122c5a
2021-08-19T09:09:37.1782353Z % Total % Received % Xferd Average Speed Time Time Time Current
2021-08-19T09:09:37.1783426Z Dload Upload Total Spent Left Speed
2021-08-19T09:09:37.1784064Z
2021-08-19T09:09:37.1814981Z 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
2021-08-19T09:09:37.4158282Z 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
2021-08-19T09:09:37.4159098Z 100 9061 0 0 100 9061 0 38232 --:–:-- --:–:-- --:–:-- 38071
2021-08-19T09:09:37.4214678Z e[0;32m->e[0m Reports have been successfully queued for processing at e[0;36mhttps://codecov.io/github/alexdlaird/java-ngrok/commit/c1721d962e3d8642aeebb70406659912a9b2e7c8e[0m

Hi @alexdlaird, the reason for the red is that by default, Codecov’s range is 70…100 for colors where 70 and lower represents deep red and 100 is green. You can change that setting in your codecov.yml file.

We pushed a fix for the src/main issue, are you still experiencing it?

Yes, you can still see it if you navigate to the Overview page linked above: Codecov

@alexdlaird got it, we just deployed a fix for this. Let me know if you’re running into issues.