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

failed to download codecov cli on updating to codecov-action v5 #1706

Open
caic99 opened this issue Nov 28, 2024 · 8 comments · May be fixed by codecov/wrapper#45
Open

failed to download codecov cli on updating to codecov-action v5 #1706

caic99 opened this issue Nov 28, 2024 · 8 comments · May be fixed by codecov/wrapper#45
Assignees
Labels
high High Priority Issues (to be fixed within 2 sprints)

Comments

@caic99
Copy link

caic99 commented Nov 28, 2024

The dependabot PR triggers updating codecov-action from v4 to v5, but the result can not be submitted.
Please see the erroneous action run on submitting coverage report using codecov-action v5. I've set the verbose flag, but the information is not enough to locate the problem.

@thomasrockhu-codecov thomasrockhu-codecov self-assigned this Dec 2, 2024
@thomasrockhu-codecov thomasrockhu-codecov added the high High Priority Issues (to be fixed within 2 sprints) label Dec 5, 2024
@thomasrockhu-codecov
Copy link
Contributor

@caic99 are you able to try again, we've since released a few versions that I think will fix this issue

@thomasrockhu-codecov
Copy link
Contributor

@caic99 closing for now, let me know if this is still a problem

@caic99
Copy link
Author

caic99 commented Jan 14, 2025

Hi @thomasrockhu-codecov ,
Thank you for your effort and sorry for my late reply.
Unfortunately it still doesn't work (see log here).

==> Running Action version 5.1.2
Wrapper-0.0.31

@thomasrockhu-codecov
Copy link
Contributor

@caic99 sorry I have never seen this before, can you set verbose: true? I have no idea why the curl failed the way it did

@caic99
Copy link
Author

caic99 commented Jan 20, 2025

Hi @thomasrockhu-codecov ,
I've already set verbose: true.
I'm not sure if you can see the detailed log, so I'm attaching it here.

==> Detected linux
 -> Downloading https://cli.codecov.io/latest/linux/codecov
==> Finishing downloading linux:latest
      Version: 
 
==> Bypassing validation as requested by user
chmod: cannot access './codecov': No such file or directory
 -> Token of length 36 detected
==> Running upload-coverage
      ./codecov --verbose upload-coverage -t <redacted> --fail-on-error --git-service github --gcov-executable gcov
/__w/_actions/codecov/codecov-action/v5/dist/codecov.sh: line 210: ./codecov: No such file or directory
==> Failed to upload coverage
    Exiting...

@caic99
Copy link
Author

caic99 commented Jan 20, 2025

I create an image for testing and manually run /~https://github.com/codecov/codecov-action/blob/main/dist/codecov.sh with bash -x option. The curl -Os https://cli.codecov.io/latest/linux/codecov command failed silently with curl: (77) error setting certificate file: /etc/ssl/certs/ca-certificates.crt. After apt install -y ca-certificates the problem is solved.

I would suggest avoid -s option for curl, or somehow catch the return code of curl.

@caic99
Copy link
Author

caic99 commented Jan 20, 2025

And, I've encountered and bypassed the issues in #1731 .

@thomasrockhu-codecov thomasrockhu-codecov linked a pull request Jan 22, 2025 that will close this issue
@thomasrockhu-codecov
Copy link
Contributor

Got it, is it working for you now @caic99? I have a PR here which should help the first case. As for curl and jq, jq has been removed, but I don't think that will be possible with curl. I need to update our docs to note that as a requirement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high High Priority Issues (to be fixed within 2 sprints)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants