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

repo_checks cannot be dry-run without getting rate limited #514

Open
kdmccormick opened this issue May 14, 2024 · 2 comments
Open

repo_checks cannot be dry-run without getting rate limited #514

kdmccormick opened this issue May 14, 2024 · 2 comments

Comments

@kdmccormick
Copy link
Member

It's not critical, since we can run one check at a time, but it would be nice to be able to dry-run the entire repo_checks suite to see what needs fixing. Unfortunately, somewhere around edx-ora2, I'm getting

{
  "message": "API rate limit exceeded for user ID .... If you reach out to GitHub Support for help, please include the request ID .... and timestamp 2024-05-14 20:48:20 UTC.",
  "documentation_url": "https://docs.github.com/rest/overview/rate-limits-for-the-rest-api"
}

Either we have too many repos, or too many checks, or we need to make repo_checks more efficient, or we need to pay GitHub more money, or some combination of all of the above.

@sarina
Copy link
Contributor

sarina commented Jul 8, 2024

Yes, this happened to me doing openedx/axim-engineering#1182 -

I hit the rate limit trying to do this. I don't know what repos I missed because it's not pulling the repos in alphabetical order. I got to MongoDBProxy. Looks like I got 184 repos.

20240708-repo-checksB.txt

A decent option would be to catch the rate limit exceeded and print out the repos that it didn't get to. Am I supposed to run the repo checks per repo one-by-one for the quarterly task?

@sarina
Copy link
Contributor

sarina commented Jul 8, 2024

One thing we could consider is just having on-call focus on the last 3 months of new repos (such as, https://github.com/orgs/openedx/repositories?q=created%3A%3E2024-03-31 for my current rotation)

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

No branches or pull requests

2 participants