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

[BUG] Codecov failures while uploading report #3660

Open
DarshitChanpura opened this issue Nov 6, 2023 · 1 comment
Open

[BUG] Codecov failures while uploading report #3660

DarshitChanpura opened this issue Nov 6, 2023 · 1 comment
Labels
bug Something isn't working ci triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable.

Comments

@DarshitChanpura
Copy link
Member

DarshitChanpura commented Nov 6, 2023

What is the bug?
report-coverage task fails randomly while trying to upload the report.

[2023-11-06T14:42:05.859Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.4-uploader-0.7.1&token=*******&branch=dependabot%2Fgradle%2Fcommons-io-commons-io-2.15.0&build=6767078937&build_url=https%3A%2F%2Fgithub.com%2Fopensearch-project%2Fsecurity%2Factions%2Fruns%2F6767078937&commit=9438044d0d97766023ce54bcab380af57497a791&job=CI&pr=3656&service=github-actions&slug=opensearch-project%2Fsecurity&name=&tag=&flags=&parent=
[2023-11-06T14:42:05.859Z] ['verbose'] Passed token was 0 characters long
[2023-11-06T14:42:05.859Z] ['verbose'] https://codecov.io/upload/v4?package=github-action-3.1.4-uploader-0.7.1&branch=dependabot%2Fgradle%2Fcommons-io-commons-io-2.15.0&build=6767078937&build_url=https%3A%2F%2Fgithub.com%2Fopensearch-project%2Fsecurity%2Factions%2Fruns%2F6767078937&commit=9438044d0d97766023ce54bcab380af57497a791&job=CI&pr=3656&service=github-actions&slug=opensearch-project%2Fsecurity&name=&tag=&flags=&parent=
        Content-Type: 'text/plain'
        Content-Encoding: 'gzip'
        X-Reduced-Redundancy: 'false'
[2023-11-06T14:42:06.029Z] ['error'] There was an error running the uploader: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}
[2023-11-06T14:42:06.030Z] ['verbose'] The error stack is: Error: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}
    at main (/snapshot/repo/dist/src/index.js)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

How can one reproduce the bug?
Checkout this run (3rd attempt): https://github.com/opensearch-project/security/actions/runs/6767078937/job/18404584109?pr=3656
Same run passes on the next retry (4th attempt): https://github.com/opensearch-project/security/actions/runs/6767078937/job/18405063873?pr=3656

What is the expected behavior?
Report coverage should run consistently without failures.

Do you have any additional context?
Seems relevant to: codecov/codecov-action#557

@DarshitChanpura DarshitChanpura added bug Something isn't working untriaged Require the attention of the repository maintainers and may need to be prioritized ci labels Nov 6, 2023
@stephen-crawford
Copy link
Contributor

[Triage] Thanks for filing this issue @DarshitChanpura. This issue has a clear action item attached and is worth looking at.

@stephen-crawford stephen-crawford added triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable. and removed untriaged Require the attention of the repository maintainers and may need to be prioritized labels Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable.
Projects
None yet
Development

No branches or pull requests

2 participants