Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Labels
Description
Summary
The codecov upload action at the end of CI sometimes fails, which leads to codecov incorrectly flagging some PRs as causing decreases in coverage (e.g. it claims that#24465 decreased the coverage of test_animation.py, which is certainly not the case).
Looking at the log for the "Upload code coverage" step ofhttps://github.com/matplotlib/matplotlib/actions/runs/3474512698/jobs/5807760694 one sees
[2022-11-15T22:26:32.813Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.1-uploader-0.3.2&token=*******&branch=ob&build=3474512698&build_url=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Factions%2Fruns%2F3474512698&commit=9364728a427d7ad72a38fc2b4fbe6ff9cb6db6c7&job=Tests&pr=24465&service=github-actions&slug=matplotlib%2Fmatplotlib&name=&tag=&flags=&parent=42[2022-11-15T22:26:33.125Z] ['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='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}
Proposed fix
Try uploading with a token to see if that improves the robustness. Seehttps://docs.codecov.com/docs/codecov-uploader#upload-token for docs -- even that states that tokens are not required, perhaps they can help...