intuit / auto

Generate releases based on semantic version labels on pull requests.
https://intuit.github.io/auto/
MIT License
2.28k stars 205 forks source link

Github abuse rate limit error #2458

Open restfulhead opened 7 months ago

restfulhead commented 7 months ago

For repos with a lot of commits/pull-requests, the release process fails with:

✖  error     Went over abuse rate limit GET /repos/{owner}/{repo}/releases/latest, retrying in 1m.
✖  error     Went over abuse rate limit GET /repos/{owner}/{repo}/issues/{issue_number}, retrying in 1m.
✖  error     Went over abuse rate limit GET /repos/{owner}/{repo}/issues/{issue_number}, retrying in 1m.
✖  error     Went over abuse rate limit GET /repos/{owner}/{repo}/issues/{issue_number}, retrying in 1m. 

Expected behavior

Release process should not break.

Environment information:

v11.1.6

Additional context

This seems to be a secondary rate limit error. I don't see any prior log messages like Request quota exhausted....

octokit/plugin-throttling has a fallbackSecondaryRateRetryAfter configuration option. Perhaps that could be exposed also in the auto configuration so that I could increase it?

Alternatively we could upgrade @octokit/plugin-throttling to >=v5.2.3, because the rate limit was increased from 5 to 60.

Update: The upgrade seems to be the way to go, because not only was the rate limit increased, also the implementation was improved.

hipstersmoothie commented 5 months ago

I will def buy you a coffee if you land that PR!

VictorPascualV commented 4 months ago

Our team is also blocked by that issue, we'd love an update on its progress 🙏

We already helped by fixing some failing tests that should speed up the expedition of this change.

nick-infinitegiving commented 1 month ago

Our team is impacted by this as well. Any updates on the issue? -Thx

JesusTheHun commented 1 day ago

I've noticed that when this error surfaces, it doesn't exit with status code 1, so the job is marked as successful !

See this job on one of my repo : https://github.com/JesusTheHun/storybook-addon-remix-react-router/actions/runs/12053798314/job/33610310120#step:7:53