Skip to content

GitHub rate limit issues running GitHub Actions pipelines #206

Open
@flelli

Description

The build process runs thousands of tests and some of them (integration and functional tests) run actual operations against GitHub using the test user. Integration tests only send a few requests, while functional ones hit hard on the rate limit.

Because of the rate limits in GitHub, some of these operations fail. However, retrying the failed jobs (after a short while) succeeds.
Parallelization has been prevented in the pipeline configuration for functional tests in order to limit the number of failed jobs to re-run in case the limit is reached. Nonetheless, this is not enough and jobs still fail.

The current limit is 5.000 requests per user/hour and there is no way to overcome it. The limit seems to be reset after 30 minutes. This tool can be used to interpret the x-ratelimit-reset.

Limits can be inspected by running:

$ curl -i https://api.github.com/users/octocat
> HTTP/2 200
> x-ratelimit-limit: 60
> x-ratelimit-remaining: 56
> x-ratelimit-used: 4
> x-ratelimit-reset: 1372700873

and when monitoring these numbers it becomes very clear thar when the x-ratelimit-remaining goes down to 0 the tests start failing.

Be careful as querying the above API also counts against the rate limit so do not uset it continuously or the limit will never reset.

Metadata

Assignees

Labels

state::on holdThe issue is on holdtechnical debt::runningTechnical debt that is still owedtype::defectA defect like a generic flaw, software bug, a documentation mismatch and so ontype::taskShort term actionable activity.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions