-
Notifications
You must be signed in to change notification settings - Fork 28
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
fix: handle rate limit error in get pr info fn #433
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #433 +/- ##
==========================================
- Coverage 96.05% 96.04% -0.02%
==========================================
Files 643 643
Lines 17080 17070 -10
==========================================
- Hits 16407 16395 -12
- Misses 673 675 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
@@ Coverage Diff @@
## main #433 +/- ##
=======================================
Coverage 96.05% 96.06%
=======================================
Files 643 643
Lines 17080 17093 +13
=======================================
+ Hits 16407 16420 +13
Misses 673 673
Flags with carried forward coverage won't be shown. Click here to find out more.
|
c8fce43
to
533b914
Compare
efcd98d
to
cfd65ad
Compare
We want to handle receiving a 429 or 403 status code response from gh that is related to hitting the gh rate limit. now we do that when we try to get PR info while trying to auth with tokenless we will return a `exceptions.Throttled` which corresponds to a 429 status code
Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
Co-authored-by: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com>
cfd65ad
to
9e0e8c4
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
We want to handle receiving a 429 or 403
status code response from gh that is related
to hitting the gh rate limit.
now we do that when we try to get PR info while
trying to auth with tokenless
we will return a
exceptions.Throttled
whichcorresponds to a 429 status code
Links to relevant tickets
codecov/engineering-team#1247
What does this PR do?
TorngitRateLimitError
inget_pull_request_info
get_pull_request_info
to test it can handle receiving a 429 status code