Repository navigation
Closed
Labels
P1: will dopriority 7-9[Epic]this label is used to mark issues as epicsin discoveryThe design, product, and specifications require refinement
Milestone
Description
Problem to Solve
When users hit a rate limit error in GH they don't necessarily know that it is happening and their Codecov experience is degraded because of it - we need to surface the errors and possible solutions when this issue is encountered.
Proposed Solution
When Codecov encounters a GitHub rate limit error
- Update PR comment to show a message - "Unable to calculate coverage because GitHub rate limit has been exceeded. Please ensure the Codecov App (https://github.com/apps/codecov) is set up on this repo "
- On the UI --> Commits tab, show a message in the "Coverage" and "Patch" columns - "Unable to calculate coverage because GitHub rate limit has been exceeded. Please ensure the Codecov App (https://github.com/apps/codecov) is set up on this repo"
- On the pulls tab, show a message in the "coverage on Head", "patch" and "change from base" columns - "Unable to calculate coverage because GitHub rate limit has been exceeded. Please ensure the Codecov App (https://github.com/apps/codecov) is set up on this repo"
### Platform
- [ ] https://github.com/codecov/engineering-team/issues/1418
- [ ] https://github.com/codecov/engineering-team/issues/1968
- [ ] https://github.com/codecov/engineering-team/issues/1977
- [ ] https://github.com/codecov/engineering-team/issues/1969
- [ ] https://github.com/codecov/engineering-team/issues/2017
- [ ] https://github.com/codecov/engineering-team/issues/2027
- [ ] https://github.com/codecov/engineering-team/issues/2164
### Applications
- [ ] https://github.com/codecov/engineering-team/issues/2103
- [ ] https://github.com/codecov/engineering-team/issues/2107
- [ ] https://github.com/codecov/engineering-team/issues/2110
Metadata
Metadata
Assignees
Labels
P1: will dopriority 7-9[Epic]this label is used to mark issues as epicsin discoveryThe design, product, and specifications require refinement
Type
Projects
- StatusShow more project fieldsDone


Activity
codecovdesign commentedon Feb 21, 2024
WIP: designs
rohan-at-sentry commentedon Feb 22, 2024
@codecovdesign here are the answers
The only path forward is to ensure orgs have the Github bot set and are uploading using the token. Technically they can retry, but the rate limit is typically set for an hour (worst case they have to wait 60 min) so it's probably not worth letting them know to retry.
With shelter rolling out gradually, there's a scenario where we would end up showing the comment after rate is available again for everyone affected. But that is probably medium term.
PR comments would almost never show up when rate limited today
Checks - can sometimes show up if the admin has set up Codecov check as
required.I think for a first pass, showing the message in the UI and check should be sufficient. (the design is a good approximation of how we want the experience to be)
rohan-at-sentry commentedon Feb 22, 2024
Eventually, with shelter available for 100% of orgs , I wonder if we will have an opportunity to say something like "We had trouble receiving this report due to GH rate limit, we will get it eventually"
codecovdesign commentedon Feb 29, 2024
related reported issue of ux, in scenario not logged in:
no feedback appears to user and/or incorrect that "no files to show" vs likely rate limit issue

codecovdesign commentedon Mar 7, 2024
review with @adrian-codecov 3/7
first principles
action items
codecovdesign commentedon Apr 4, 2024
sync w/ @adrian-codecov @RulaKhaled
Adal3n3 commentedon Jun 8, 2024
Making a note here: When codecov-comments bot hits a rate limit, instead of telling human go to the doc, we should tell them "Please ensure the Codecov App is set up on this repo" or "Please install Codecov App"
codecovdesign commentedon Jul 10, 2024
@codecovdesign todo: add repo rate limit scenario