GNS-Science / solvis

NSHM opensha inversion solution analysis python module
GNU Affero General Public License v3.0
1 stars 1 forks source link

Fix: codedev workflow failing #24

Closed chrisdicaprio closed 3 months ago

chrisdicaprio commented 11 months ago

The run-tests.ymlwokflow is failing when submitting coverage report:

[2023-11-27T19:06:00.937Z] ['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-27T19:06:00.937Z] ['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)
[2023-11-27T19:06:00.937Z] ['verbose'] End of uploader: 552 milliseconds
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255

The fix may be to get a Codecov upload token: https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954 https://docs.codecov.com/docs/codecov-uploader#upload-token

chrisbc commented 11 months ago

Did some digging ....it looks like that's a known issue - intermittent fails with codecov due to API trottling. The fix is to add an API token to the config. I'll probably need to fluff about getting this working, so maybe we can park until I return. I see your solvis release was sucessful

https://github.com/codecov/codecov-action/issues/557#issuecomment-1216749652

chrisbc commented 3 months ago

udpated to latest codecvo script using CODECOV_TOKEN secret