-
Notifications
You must be signed in to change notification settings - Fork 12
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
Recheck pr-for-updates workflow #27
Comments
Github documentation states that there is a global rate limit, which is fairly high:
And also there are many unspecified secondary rate limits for certain actions: And according to logs, we are hitting some unknown limit for PR creation.
Here is the github documentation about dealing with secondary rate limits: I think the reason we hit the limit is that we update our repositories in parallel:
The way to handle rate limit errors is just to retry:
In the repo of the action we use to create PRs there is an issue about retrying PR creation and a branch for testing: But it doesn't use github guidelines to determine retry timings. |
Creating a PR is POST request in Github Rest API. Github Documentation recommends doing this type of requests with one second wait between each request. To make our workflows run sequentially with one second waiting between each two workflows we need:
Currently there are no functionality in Github to queue workflows using default Github runners for workflows. There are some discussions about this feature but it looks like there are no plans to it yet. |
Description
Some repositories very often get the error -
403: Forbidden, You have exceeded a secondary rate limit and have been temporarily blocked from content creation. Please retry your request again later.
https://github.com/networkservicemesh/deployments-k8s/actions/runs/5014568818/jobs/8988977238
https://github.com/networkservicemesh/sdk-sriov/actions/runs/5014807396/jobs/8989537883
Most likely, the github token is used incorrectly
The text was updated successfully, but these errors were encountered: