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

add rate limit error handling to TokenlessGithubActionsHandler #525

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

nora-codecov
Copy link
Contributor

Purpose/Motivation

Better errors for users

Links to relevant tickets

codecov/engineering-team#1547

What does this PR do?

Hitting the rate limit for tokenless upload is a special case, adds special handling for this special case, and makes the upload failure more clear to the end user.

@nora-codecov nora-codecov requested a review from a team as a code owner April 26, 2024 02:31
repo_name=self.upload_params.get("repo"),
time_diff=now - finish_time_with_buffer,
),
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed this because it looked like the exact same warning was being logged twice, seems like an accident.

@codecov-notifications
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found ☺️

📢 Thoughts on this report? Let us know!

Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.45%. Comparing base (9570180) to head (ad5bc70).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #525   +/-   ##
=======================================
  Coverage   91.45%   91.45%           
=======================================
  Files         599      599           
  Lines       16211    16222   +11     
=======================================
+ Hits        14825    14836   +11     
  Misses       1386     1386           
Flag Coverage Δ
unit 91.45% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.45% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
upload/tokenless/github_actions.py 98.27% <100.00%> (+0.40%) ⬆️

Impacted file tree graph

Copy link

codecov bot commented Apr 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.77%. Comparing base (9570180) to head (ad5bc70).

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #525     +/-   ##
=======================================
+ Coverage   95.76   95.77   +0.01     
=======================================
  Files        774     774             
  Lines      17067   17078     +11     
=======================================
+ Hits       16344   16355     +11     
  Misses       723     723             
Flag Coverage Δ
unit 91.45% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.45% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nora-codecov nora-codecov added this pull request to the merge queue Apr 26, 2024
Merged via the queue into main with commit 4209b7b Apr 26, 2024
19 checks passed
@nora-codecov nora-codecov deleted the nora/1547 branch April 26, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants