Skip to content

Codecov action fails #1425

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

Closed
amrit110 opened this issue May 13, 2024 · 11 comments
Closed

Codecov action fails #1425

amrit110 opened this issue May 13, 2024 · 11 comments
Assignees

Comments

@amrit110
Copy link

amrit110 commented May 13, 2024

Codecov action fails with the following error:

Screen Shot 2024-05-13 at 12 38 37 PM

@thomasrockhu-codecov
Copy link
Contributor

Hi @amrit110 you'll notice the line above states the Codecov token is not found. Please add it

@amrit110
Copy link
Author

Hi @thomasrockhu-codecov , the codecov token is added to the secrets of the repo. This workflow was working fine, but runs into this error occasionally. Has started occurring around 3 weeks ago.

@thomasrockhu-codecov
Copy link
Contributor

@amrit110 can you point me to a CI link of it failing? Would like to investigate more closely

@thomasrockhu-codecov thomasrockhu-codecov self-assigned this May 21, 2024
@amrit110
Copy link
Author

@larseggert
Copy link

larseggert commented May 22, 2024

I have the same issue. With 4.4.1, uploads from macos-14 runners always fail, ubuntu-latest and windows-latest succeed:

There is a CODECOV_TOKEN set on the repo.

@thomasrockhu-codecov, am happy to help debug this.

@thomasrockhu-codecov
Copy link
Contributor

thomasrockhu-codecov commented May 22, 2024

@larseggert I'm not sure about your issue. I have a build running macos-14 here and it seems to be fine. I'll need some more time to dig into your situation. If you don't mind, can you open a separate issue for this as it seems unrelated.

@thomasrockhu-codecov
Copy link
Contributor

@amrit110 you are wrapping the Action with

uses: Wandalen/[email protected]

I can't guarantee that that action has access to your secrets and thus, may not be able to forward that to the Codecov action. You may need to run the codecov action as an un-embedded step

@amrit110
Copy link
Author

@thomasrockhu-codecov don't think that is an issue. i downgraded to codecov/[email protected] and it works fine here -> https://github.com/VectorInstitute/aieng-template/actions/runs/9177568164/job/25235470704

@thomasrockhu-codecov
Copy link
Contributor

@amrit110 can you run both versions with verbose mode on? I am really not confident that the token is passed in either case

@amrit110
Copy link
Author

Hi @thomasrockhu-codecov , here is v4.0.0 with verbose on - https://github.com/VectorInstitute/aieng-template/actions/runs/9208979410/job/25332418474?pr=25.
Here is v4.4.1 with verbose on - https://github.com/VectorInstitute/aieng-template/actions/runs/9209005705/job/25332507268?pr=26.
Strangely it worked fine now. Not sure whats going on, and why it failed before.

@thomasrockhu-codecov
Copy link
Contributor

@amrit110 I think we had a bug on our CLI that probably fixed the issue. I'm going to close for now, but let me know if you are still experiencing the issue.

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