apache / celix

Apache Celix is a framework for C and C++14 to develop dynamic modular software applications using component and in-process service-oriented programming.
https://celix.apache.org/
Apache License 2.0
158 stars 84 forks source link

Codecov report uploader throttled #747

Closed PengZheng closed 1 month ago

PengZheng commented 1 month ago

I found all recent coverage reports failed to be uploaded:

[2024-05-24T03:23:57.885Z] ['info'] Detected GitHub Actions as the CI provider.
[2024-05-24T03:23:58.006Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.6-uploader-0.7.3&token=*******&branch=master&build=9218112953&build_url=https%3A%2F%2Fgithub.com%2Fapache%2Fcelix%2Factions%2Fruns%2F9218112953%2Fjob%2F25361141947&commit=e4df2aa47fccb39c4cf0694435ef5cb9009dc6d5&job=Celix+Coverage&pr=&service=github-actions&slug=apache%2Fcelix&name=codecov-celix&tag=&flags=&parent=
[2024-05-24T03:23:58.197Z] ['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: 429 - {'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 1495s.', code='throttled')}
[2024-05-24T03:23:58.198Z] ['info'] Codecov will exit with status code 0. If you are expecting a non-zero exit code, please pass in the `-Z` flag

Any thoughts on how to deal with it? @rlenferink @pnoltes

pnoltes commented 1 month ago

Token-less codecov uploads is not supported anymore and we should add a token: https://issues.apache.org/jira/browse/INFRA-25778

I think we can copy/paste the change done at Apache NIFI: https://github.com/apache/nifi/commit/5f9f5247d6dbb8f2206f46e49cd5f5c7ff17af37

pnoltes commented 1 month ago

I created a INFRA ticket to create a GitHub codecov token secret: https://issues.apache.org/jira/browse/INFRA-25836