Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codecov-action@v1 finds jacoco.xml, @v2, @v3 do not #863

Closed
davidmoten opened this issue Oct 29, 2022 · 2 comments
Closed

codecov-action@v1 finds jacoco.xml, @v2, @v3 do not #863

davidmoten opened this issue Oct 29, 2022 · 2 comments

Comments

@davidmoten
Copy link

When I followed directions to upgrade my ci.yml for Node 16 I changed the version of codecov-action to v3 and codecov no longer found the file jacoco.xml. Reverting to v1 things work again. Can this problem be fixed please.

ci.yml with @V3: https://github.com/davidmoten/reels/blob/3984117fc994335cca3cce6f28aaacb53314695d/.github/workflows/ci.yml

Log:

Run codecov/codecov-action@v3
==> linux OS detected
https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
==> SHASUM file signed by key id [8](https://github.com/davidmoten/reels/actions/runs/3349839868/jobs/5550208186#step:5:9)06bb28aed77[9](https://github.com/davidmoten/reels/actions/runs/3349839868/jobs/5550208186#step:5:10)869
==> Uploader SHASUM verified (20f9c9d78483fce977b6cc39e231a734a23bcd36f4d536bb7355222fb88d02bc  codecov)
==> Running version latest
==> Running version v0.3.2
/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov -n codecov -Q github-action-3.1.1 -f ./**/target/site/jacoco/jacoco.xml
[2022-[10](https://github.com/davidmoten/reels/actions/runs/3349839868/jobs/5550208186#step:5:11)-29T03:16:59.3[15](https://github.com/davidmoten/reels/actions/runs/3349839868/jobs/5550208186#step:5:16)Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.3.2
[2022-10-29T03:[16](https://github.com/davidmoten/reels/actions/runs/3349839868/jobs/5550208186#step:5:17):59.324Z] ['info'] => Project root located at: /home/runner/work/reels/reels
[[20](https://github.com/davidmoten/reels/actions/runs/3349839868/jobs/5550208186#step:5:21)[22](https://github.com/davidmoten/reels/actions/runs/3349839868/jobs/5550208186#step:5:23)-10-29T03:16:59.3[25](https://github.com/davidmoten/reels/actions/runs/3349839868/jobs/5550208186#step:5:26)Z] ['info'] -> No token specified or token is empty
[2022-10-29T03:16:59.331Z] ['info'] Searching for coverage files...
[2022-10-29T03:16:59.398Z] ['error'] None of the following appear to exist as files: ./**/target/site/jacoco/jacoco.xml
[2022-10-29T03:16:59.398Z] ['error'] There was an error running the uploader: Error while cleaning paths. No paths matched existing files!

When I change the file to use v2 I get the same behaviour. When I revert to v1 it succeeds:

Run codecov/codecov-action@v1
/usr/bin/bash codecov.sh -n codecov -F  -Q github-action-v1.5.2 -f ./**/target/site/jacoco/jacoco.xml

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


==> git version 2.3[8](https://github.com/davidmoten/reels/actions/runs/3350625462/jobs/5551546761#step:5:9).1 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](https://github.com/davidmoten/reels/actions/runs/3350625462/jobs/5551546761#step:5:10).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.
    Env vars used:
      -> GITHUB_ACTIONS:    true
      -> GITHUB_HEAD_REF:   
      -> GITHUB_REF:        refs/heads/master
      -> GITHUB_REPOSITORY: davidmoten/reels
      -> GITHUB_RUN_ID:     3350625462
      -> GITHUB_SHA:        e836a791dd60b64160079e6f32ee50bb66ff52af
      -> GITHUB_WORKFLOW:   ci
    project root: .
    Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy not found
==> Searching for coverage reports in:
    + .
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./target/site/jacoco/jacoco.xml bytes=232151
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    -> No adjustments found
==> Gzipping contents
        16K	/tmp/codecov.Z4p6Oq.gz
==> Uploading reports
    url: https://codecov.io
    query: 
...
    -> Reports have been successfully queued for processing at https://app.codecov.io/github/davidmoten/reels/commit/e836a791dd60b64[16](https://github.com/davidmoten/reels/actions/runs/3350625462/jobs/5551546761#step:5:17)0079e6f[32](https://github.com/davidmoten/reels/actions/runs/3350625462/jobs/5551546761#step:5:33)ee[50](https://github.com/davidmoten/reels/actions/runs/3350625462/jobs/5551546761#step:5:51)bb66ff[52](https://github.com/davidmoten/reels/actions/runs/3350625462/jobs/5551546761#step:5:53)af
@ssbarnea
Copy link

ssbarnea commented Dec 1, 2022

Duplicate of #770

@thomasrockhu-codecov
Copy link
Contributor

Closing in favor of #770

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants