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

2027 add exceptions when token is rate limited #310

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

adrian-codecov
Copy link
Contributor

@adrian-codecov adrian-codecov commented Aug 2, 2024

This is a followup to this pr #303 and should only be merged after 303 is merged. This adds a layer of validation to see if a token is rate limited upon the auth_information is created. This mostly adds the EntityRateLimitedException as well as a test for it.

The files that have additional changes/only ones different from 303 are

  • shared/bots/exceptions.py
  • shared/rate_limits/exceptions.py
  • tests/unit/bots/test_bots.py
  • shared/bots/init.py

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Copy link

codecov bot commented Aug 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.27%. Comparing base (0d9924e) to head (7dffa47).

Current head 7dffa47 differs from pull request most recent head cb6fe40

Please upload reports for the commit cb6fe40 to get more accurate results.

Additional details and impacted files
@@                           Coverage Diff                            @@
##           2164-add-rate-limit-fns-to-gh-api-calls     #310   +/-   ##
========================================================================
  Coverage                                    89.27%   89.27%           
========================================================================
  Files                                          324      324           
  Lines                                         9929     9929           
  Branches                                      1775     1775           
========================================================================
  Hits                                          8864     8864           
  Misses                                        1001     1001           
  Partials                                        64       64           

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

@adrian-codecov adrian-codecov changed the base branch from main to 2164-add-rate-limit-fns-to-gh-api-calls August 6, 2024 22:45
…main' of github.com:codecov/shared into 2027-add-exceptions-when-token-is-rate-limited
…codecov/shared into 2027-add-exceptions-when-token-is-rate-limited
Base automatically changed from 2164-add-rate-limit-fns-to-gh-api-calls to main August 26, 2024 16:49
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.

1 participant