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
Hitting GH rate-limit when generating changelog over very large amount of commits #1422
Comments
Any chance I could see the repo to play around with? |
wow thats a lot of requests |
Also if I could get a fuller log that might help |
Was actually able to recreate locally. Don't need anything from you other than hope 😉 |
We do create a lot of similar requests in |
Just to be sure: do you use a single Octokit instance across all these requests? |
Pretty sure we are only creating 1. That happens here https://github.com/intuit/auto/blob/master/packages/core/src/git.ts#L123 which should only be initialized once at startup https://github.com/intuit/auto/blob/master/packages/core/src/auto.ts#L1643 I can check though Verfied: only created once |
To test this issue on auto: yarn
yarn build
yarn auto changelog --from v1.0.0 -d |
I think this is related to octokit/plugin-throttling.js#108 but we only have 1 instance of octokit running so we shouldn't need to cluster |
do you do any GraphQL requests? Can you confirm that you see the "went over the abuse limits" logs occur at a rate of roughly 1 per 3 seconds? |
Ah that might be it. we use @octokit/graphql but I saw today that you can do it straight though octokit. will try that too |
Yes, that way it shares the same request settings & request life cycle hooks |
🙏 |
Okay running now. Got an hour on my rate limit wait left though 😢 |
@hipstersmoothie you can use our github instance if you're hitting this - we are seeing the same thing |
Can you link me to the build log? |
I have sent you the build log, as this is on a closed repo. |
@vincentbriglia I'm pretty sure that i've fixed the problem in your logs in #1424 Could you install the canary version? It's all under a different scope so you'll have to replace all the package names: yarn add @auto-canary/auto@9.49.2-canary.1424.17767.0
yarn add @auto-canary/all-contributors@9.49.2-canary.1424.17767.0
yarn add @auto-canary/conventional-commits@9.49.2-canary.1424.17767.0
yarn add @auto-canary/first-time-contributor@9.49.2-canary.1424.17767.0
yarn add @auto-canary/released@9.49.2-canary.1424.17767.0 @dariye If you could try to test too I would appreciate it! |
Tried it out with
still an issue with the github runner GITHUB_TOKEN trying with a personal token now (I have seen some discrepancies before) |
didn't work with a personal token either. |
I gave you access to the private repo @hipstersmoothie - branch from next branch |
confirmed that that fixed the issue I was having @hipstersmoothie - have a nice weekend ! |
however @hipstersmoothie this change now stopped publishing and/or correctly calculating semver releases. |
I think This is the PR that implemented it #1086 Would you prefer for the conventional commit plugin to not do this? (eg: don't skip for doc/chore/etc) |
I'll test it today and get back to you. |
@hipstersmoothie this is still an issue when generating a changelog. So everything seemed to work when I had the --no-changelog flag. However, I took it off and we just try to use |
@hipstersmoothie I added a little more context ☝️ |
@hipstersmoothie thanks a lot for looking into this. I think the recent releases have fixed this. I'll go ahead and close this. |
Describe the bug
The
auto shipit
command somehow manages to exceed GH's API rate limit when trying to generate a changelog post release. (See screenshots)To Reproduce
Run
auto shipit
To have this error, you need to have a repository that has no releases but has many many many prs and commits, so essentially high velocity codebase.
Expected behavior
A new version is released with a changelog and release.
Screenshots
Environment information:
Additional context
I was able to get around this by passing the
--no-changelog
flag.I traced the error to this line of code
auto/packages/core/src/release.ts
Line 484 in d419b17
The text was updated successfully, but these errors were encountered: