PhilanthropyDataCommons / service

A project for collecting and serving public information associated with grant applications
GNU Affero General Public License v3.0
8 stars 2 forks source link

Fix CodeCov #936

Closed slifty closed 5 months ago

slifty commented 5 months ago

Codecov stopped doing coverage analysis with our CI:

[2024-04-19T15:20:13.555Z] ['info'] => Project root located at: /home/runner/work/service/service
[2024-04-19T15:20:13.556Z] ['info'] -> No token specified or token is empty
[2024-04-19T15:20:13.565Z] ['info'] Searching for coverage files...
[2024-04-19T15:20:13.623Z] ['info'] Warning: Some files located via search were excluded from upload.
[2024-04-19T15:20:13.623Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2024-04-19T15:20:13.623Z] ['info'] => Found 3 possible coverage files:
  coverage/clover.xml
  coverage/coverage-final.json
  coverage/lcov.info
[2024-04-19T15:20:13.623Z] ['info'] Processing /home/runner/work/service/service/coverage/clover.xml...
[2024-04-19T15:20:13.625Z] ['info'] Processing /home/runner/work/service/service/coverage/coverage-final.json...
[2024-04-19T15:20:13.626Z] ['info'] Processing /home/runner/work/service/service/coverage/lcov.info...
[2024-04-19T15:20:13.634Z] ['info'] Detected GitHub Actions as the CI provider.
[2024-04-19T15:20:13.866Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.6-uploader-0.7.3&token=*******&branch=932-authentication-to-proposal-get&build=8755876757&build_url=https%3A%2F%2Fgithub.com%2FPhilanthropyDataCommons%2Fservice%2Factions%2Fruns%2F8755876757%2Fjob%2F24031001905&commit=2bf5a3d7e66694f0fe4f6c1a33604f66f1d728cd&job=Test&pr=934&service=github-actions&slug=PhilanthropyDataCommons%2Fservice&name=&tag=&flags=&parent=
[2024-04-19T15:20:14.069Z] ['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')}
[2024-04-19T15:20:14.069Z] ['info'] Codecov will exit with status code 0. If you are expecting a non-zero exit code, please pass in the `-Z` flag