Skip to content

Address GH Rate Limits for dynamic image building #6512

@jmunroe

Description

@jmunroe

Context

In our dynamic image building, one of the first steps is to clone the repo with the steps

Waiting for build to start...
Picked Git content provider.
Cloning into '/tmp/repo2docker***

During the Project Pythia Cookoff 2025, we had 50+ participants each selecting 'Build Your Own Image' from a their own personal fork. We hit a limitation due to GitHub rate limiting.

From the GitHub docs (https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api) we learned that unauthenticated GitHub API is limited to 60 request / hour. Authenticated users are are limited to 5000/hr.

With 50+ users, we hit an error message saying

Rate limit exceeded. Try again in 3600 seconds.

What we need to do

Since the rate limits for for GitHub apps is 5000 requests /hr, it is proposed to modify the dynamic image building so that a 2i2c managed GitHub app is used to do the pull for dynamic image building.

Definition of Done

  • The feature/service is technically complete
  • The feature/service been tested with one or more users (if applicable)
  • The feature/service been deployed to a production cluster
  • The feature/service has been shown to be replicably deployable
  • The feature/service is well documented, and the documentation is accessible for the target user base
  • The feature/service has been added to our product menu (if applicable).
  • Lessons learned have been documented
  • The feature's availability has been communicated to Sales
  • The feature has been communicated to our communities

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions