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 uploads are failing #851

Closed
zslayton opened this issue Nov 7, 2024 · 3 comments · Fixed by #852 or #853
Closed

CodeCov uploads are failing #851

zslayton opened this issue Nov 7, 2024 · 3 comments · Fixed by #852 or #853
Labels
bug Something isn't working

Comments

@zslayton
Copy link
Contributor

zslayton commented Nov 7, 2024

The repo's code coverage statistics haven't been updated in a while.

It appears that the upload fails on the first CI Action attempt, then reports success (while quietly failing) on the second attempt because it couldn't find the upload from the first commit to compare it to.

Here's an example of a failure.

image

The suggested fix is to "upload with the Codecov repository upload token to resolve issue":

[2024-10-30T19:59:23.227Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 429 - {"message":"Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 962s."}

@zslayton zslayton added the bug Something isn't working label Nov 7, 2024
@zslayton
Copy link
Contributor Author

zslayton commented Nov 8, 2024

Unfortunately, it looks like adding the token was necessary but not sufficient to get this working.
The upload now succeeds:

image

...but the provided report URL gives a 404:

image

@zslayton zslayton reopened this Nov 8, 2024
@zslayton
Copy link
Contributor Author

zslayton commented Nov 8, 2024

Another part of the problem: the repo was moved to a new organization in the last couple of years (amzn -> amazon-ion), which is why the upload resulted in a 404--the resulting URL was no longer valid. Regenerating the CODECOV_TOKEN seems to have gotten this back in sync.

Example upload URL that works.

Now for the next (and hopefully final?) mystery:

image

@zslayton
Copy link
Contributor Author

zslayton commented Nov 8, 2024

It looks like this complaining because the parent commit's codecov upload had failed, so there was no basis for comparison. Now that the CODECOV_TOKEN has been corrected, I was able to re-run the codecov action for the parent PR and everything seems to be working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant