Skip to content

[BUG] uploads fail since cli upgraded to v10.3.0 #1801

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

Open
atlasrealm opened this issue Mar 25, 2025 · 8 comments
Open

[BUG] uploads fail since cli upgraded to v10.3.0 #1801

atlasrealm opened this issue Mar 25, 2025 · 8 comments
Assignees
Labels
bug Something isn't working codecov/codecov-action high High Priority Issues (to be fixed within 2 sprints)

Comments

@atlasrealm
Copy link

atlasrealm commented Mar 25, 2025

Describe the bug

We are using the github action v.5.4.0 for codecov and saw all our uploads breaking since yesterday. After a lot of searching I saw that the cli version had changed from v10.2.1 to v10.3.0. We did not change any configuration on our side:

Image

The problem seems related to the data format of our uploaded file, which is now all of a sudden containing a few extra lines before <<<<< network:

/home/runner/work/company-name/codecov.SHA256SUM.sig
/home/runner/work/company-name/junit-backend.xml
/home/runner/work/company-name/lcov.info
/home/runner/work/company-name/coverage-backend.xml
/home/runner/work/company-name/coverage-functional.xml
/home/runner/work/company-name/codecov
/home/runner/work/company-name/codecov.SHA256SUM
/home/runner/work/company-name/junit-frontend.xml
/home/runner/work/company-name/junit-functional.xml
<<<<<< network

# path=/home/runner/work/company-name/coverage-functional.xml
<?xml version="1.0" ?>

These lines are only present since yesterday, and all uploads that have the lines fail.

Could you please help me? Thanks.

EDIT: We've changed the cli version back to v10.2.1 and everything works again.

@atlasrealm atlasrealm added the bug Something isn't working label Mar 25, 2025
@make-github-pseudonymous-again
Copy link

make-github-pseudonymous-again commented Mar 26, 2025

@atlasrealm Do you by any chance happen to upload coverage data from a GHA job that does not have the covered sources checked out?

@atlasrealm
Copy link
Author

@atlasrealm Do you by any chance happen to upload coverage data from a GHA job that has not the covered sources checked out?

yes, we use artifacts so we don't need to checkout the actual sources

@make-github-pseudonymous-again
Copy link

make-github-pseudonymous-again commented Mar 27, 2025

Try checking out the sources as the first step of the job that does the upload.

@mfrr1118
Copy link

We started experiencing this recently as well with no changes on our end. Been going back and forth with Codecov's support team and they were not able to acknowledge the issue or diagnose the root cause.

Adding a checkout step worked for us. Thanks

@make-github-pseudonymous-again

captain flies away

@glen-84
Copy link

glen-84 commented Mar 31, 2025

@thomasrockhu-codecov PTAL (see also #1799).

@thomasrockhu-codecov
Copy link
Contributor

@make-github-pseudonymous-again, thanks for that tip, that is generally the situation

@atlasrealm @mfrr1118 @glen-84 please try running again with latest, hopefully 10.4.0 fixes the problem

@thomasrockhu-codecov thomasrockhu-codecov self-assigned this Apr 8, 2025
@thomasrockhu-codecov thomasrockhu-codecov added the high High Priority Issues (to be fixed within 2 sprints) label Apr 8, 2025
christianvogt added a commit to christianvogt/odh-dashboard that referenced this issue May 5, 2025
openshift-merge-bot bot pushed a commit to opendatahub-io/odh-dashboard that referenced this issue May 6, 2025
* work around codecov action bug 1801

codecov-action bug: codecov/codecov-action#1801

* fix linter error

---------

Co-authored-by: Anthony Coughlin <[email protected]>
mtalvi pushed a commit to mtalvi/odh-dashboard that referenced this issue May 15, 2025
* work around codecov action bug 1801

codecov-action bug: codecov/codecov-action#1801

* fix linter error

---------

Co-authored-by: Anthony Coughlin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working codecov/codecov-action high High Priority Issues (to be fixed within 2 sprints)
Projects
None yet
Development

No branches or pull requests

5 participants