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

Disable upload of coverage report to codecov.io #16347

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

kfaraz
Copy link
Contributor

@kfaraz kfaraz commented Apr 29, 2024

Description

Build of recent PRs is getting stuck due to rate limiting of the codecov.io API. The unit test job just keeps retrying to connect.

{'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected available in 153 seconds.', code='throttled')}
{'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected available in 0 seconds.', code='throttled')}
{'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected available in 3598 seconds.', code='throttled')}
{'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected available in 3598 seconds.', code='throttled')}
{'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected available in 0 seconds.', code='throttled')}
{'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue.

Sample failing job:
https://github.com/apache/druid/actions/runs/8875278501/job/24364864254?pr=15705

Fix

In unit_tests_script.sh , disable upload of coverage report to codecov.io.

Impact

No one in the Druid community seems to be using the codecov visualization to analyse code coverage.
Most contributors look at the reports generated by jacoco itself and use that to ensure full coverage.

In the future, if we feel the need to re-enable it we may uncomment the code.

@cryptoe
Copy link
Contributor

cryptoe commented Apr 29, 2024

Since this is a development blocker we can merge this.
I think its not needed any more since the objective from this PR : #8388 is codecov should comment on github PR's which have low coverage. The feature is turned off here :

comment: off

@kfaraz
Copy link
Contributor Author

kfaraz commented Apr 29, 2024

Thanks for the confirmation and the swift review, @cryptoe !

@amaechler
Copy link
Contributor

Should we remove the coverage button from the README too?

Copy link
Member

@kgyrtkirk kgyrtkirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 on disabling it

I've tried to search for a few classes I would expect to have some test coverage DruidQuery and CoalesceLookupRule neither of them showed up...

I wonder if this thing used by anyone?

@kfaraz
Copy link
Contributor Author

kfaraz commented Apr 29, 2024

Should we remove the coverage button from the README too?

Thanks for calling this out, @amaechler ! I am merging this PR to unblock development, will remove the button in a follow up.

Thanks for the feedback, @cryptoe , @kgyrtkirk !

@kfaraz kfaraz merged commit 89ec0da into apache:master Apr 29, 2024
87 checks passed
@kfaraz kfaraz deleted the disable_codecov_upload branch April 29, 2024 15:35
@kfaraz kfaraz mentioned this pull request Apr 29, 2024
10 tasks
AmatyaAvadhanula pushed a commit to AmatyaAvadhanula/druid that referenced this pull request Apr 30, 2024
kfaraz added a commit that referenced this pull request Apr 30, 2024
…16353)

Co-authored-by: Kashif Faraz <kashif.faraz@gmail.com>
@kfaraz kfaraz added this to the 31.0.0 milestone Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants