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

[CI] Codecov.io failing with 404 #19952

Closed
1 of 2 tasks
devinbost opened this issue Mar 28, 2023 · 6 comments
Closed
1 of 2 tasks

[CI] Codecov.io failing with 404 #19952

devinbost opened this issue Mar 28, 2023 · 6 comments

Comments

@devinbost
Copy link
Contributor

Search before asking

  • I searched in the issues and found nothing similar.

Example failure

https://github.com/devinbost/pulsar/actions/runs/4494617987/jobs/7907322924

Exception stacktrace

[2023-03-22T22:25:28.804Z] ['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: 404 - {'detail': ErrorDetail(string='Could not find a repository, try using repo upload token', code='not_found')}
[2023-03-22T22:25:28.804Z] ['verbose'] The error stack is: Error: Error uploading to https://codecov.io/: Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Could not find a repository, try using repo upload token', code='not_found')}
at main (/snapshot/repo/dist/src/index.js)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-03-22T22:25:28.804Z] ['verbose'] End of uploader: 1651 milliseconds
. . .

[2023-03-22T22:26:31.441Z] ['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: 404 - {'detail': ErrorDetail(string='Could not find a repository, try using repo upload token', code='not_found')}
[2023-03-22T22:26:31.442Z] ['verbose'] The error stack is: Error: Error uploading to https://codecov.io/: Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Could not find a repository, try using repo upload token', code='not_found')}
at main (/snapshot/repo/dist/src/index.js)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-03-22T22:26:31.442Z] ['verbose'] End of uploader: 1564 milliseconds
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@devinbost
Copy link
Contributor Author

I'm getting this repeatedly upon multiple re-runs of the CI.

@tisonkun
Copy link
Member

This can be referred to #19947. I'm not sure if it's before or after the PR merged.

cc @lhotari

@lhotari lhotari changed the title Flaky-test: Codecov.io failing with 404 [CI] Codecov.io failing with 404 Mar 29, 2023
@lhotari
Copy link
Member

lhotari commented Mar 29, 2023

For the upload issue, Codecov now recommends to specify an upload token for the build:

Public repositories that rely on PRs via forks will find that they cannot effectively use Codecov if the token is stored as a GitHub secret. The scope of the Codecov token is only to confirm that the coverage uploaded comes from a specific repository, not to pull down source code or make any code changes.

For this reason, we recommend that teams with public repositories that rely on PRs via forks consider the security ramifications of making the Codecov token available as opposed to being in a secret.

I'll first create a ticket to ASF infra for creating the token for apache/pulsar. After the token is available, I can work on an improvement where this token is used for builds and PRs that target apache/pulsar. For builds in own forks, I'll add instructions for setting that up.

@lhotari lhotari self-assigned this Mar 29, 2023
@lhotari
Copy link
Member

lhotari commented Mar 29, 2023

I created https://issues.apache.org/jira/browse/INFRA-24399 for the creation of the Codecov upload token for apache/pulsar.

@tisonkun
Copy link
Member

tisonkun commented Apr 14, 2023

INFRA-24399 closed with:

The ASF does not have a business relationship with CodeCov, we do not pay for their services. If you want to use CodeCov, you are limited to their free offering.

Perhaps nothing we can do from our side :/

@tisonkun
Copy link
Member

Closing as Won't Fix on INFRA ticket.

If anyone has ideas to ease the case, please reopen and submit a patch.

@tisonkun tisonkun closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants