Skip to content
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

increase or avoid rate limiting for init package #1078

Open
thescientist13 opened this issue Mar 3, 2023 · 0 comments
Open

increase or avoid rate limiting for init package #1078

thescientist13 opened this issue Mar 3, 2023 · 0 comments
Labels
enhancement Improve something existing (e.g. no docs, new APIs, etc) Init question Further information is requested
Milestone

Comments

@thescientist13
Copy link
Member

Type of Change

Enhancement

Summary

As happens from time to time in our on test runs, the init package specs will fail due to rate limiting errors from GitHub.
https://github.com/ProjectEvergreen/greenwood/actions/runs/4319688372/jobs/7539138955

2504 passing (4m)
[3700](https://github.com/ProjectEvergreen/greenwood/actions/runs/4319688372/jobs/7539138955#step:7:3701)
  28 pending
[3701](https://github.com/ProjectEvergreen/greenwood/actions/runs/4319688372/jobs/7539138955#step:7:3702)
  1 failing
[3702](https://github.com/ProjectEvergreen/greenwood/actions/runs/4319688372/jobs/7539138955#step:7:3703)

[3703](https://github.com/ProjectEvergreen/greenwood/actions/runs/4319688372/jobs/7539138955#step:7:3704)
  1) Scaffold Greenwood From a (Blog) Template: 
[3704](https://github.com/ProjectEvergreen/greenwood/actions/runs/4319688372/jobs/7539138955#step:7:3705)
       default blog template
[3705](https://github.com/ProjectEvergreen/greenwood/actions/runs/4319688372/jobs/7539138955#step:7:3706)
         "before all" hook in "default blog template":
[3706](https://github.com/ProjectEvergreen/greenwood/actions/runs/4319688372/jobs/7539138955#step:7:3707)
     Error: the string "HTTPResponseError: HTTP Error Response: 403 rate limit exceeded\n    at checkStatus (file:///home/runner/work/greenwood/greenwood/packages/init/src/index.js:161:17)\n    at file:///home/runner/work/greenwood/greenwood/packages/init/src/index.js:165:67\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async getTemplates (file:///home/runner/work/greenwood/greenwood/packages/init/src/index.js:165:21)\n    at async listAndSelectTemplate (file:///home/runner/work/greenwood/greenwood/packages/init/src/index.js:186:21)\n    at async run (file:///home/runner/work/greenwood/greenwood/packages/init/src/index.js:252:7) {\n  response: Response {\n    size: 0,\n    timeout: 0,\n    [Symbol(Body internals)]: { body: [PassThrough], disturbed: false, error: null },\n    [Symbol(Response internals)]: {\n      url: 'https://api.github.com/orgs/ProjectEvergreen/repos',\n      status: 403,\n      statusText: 'rate limit exceeded',\n      headers: [Headers],\n      counter: 0\n    }\n  }\n}\n" was thrown, throw an Error :)
[3707](https://github.com/ProjectEvergreen/greenwood/actions/runs/4319688372/jobs/7539138955#step:7:3708)
      at runMicrotasks (<anonymous>)
[3708](https://github.com/ProjectEvergreen/greenwood/actions/runs/4319688372/jobs/7539138955#step:7:3709)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

Details

Not the project is that large, but suppose if enough users start running the init workflow, then they would potentially be susceptible to this as well, so would like to see what the limits are, if using a token would help, and try and just mitigate this prior to a 1.0 release.


There is a PR to adopt the GitHub "client" which was closed, which maybe could help? See #886

@thescientist13 thescientist13 added enhancement Improve something existing (e.g. no docs, new APIs, etc) question Further information is requested Init labels Mar 3, 2023
@thescientist13 thescientist13 added this to the 1.0 milestone Mar 3, 2023
@thescientist13 thescientist13 changed the title avoid rate limiting for init package increase or avoid rate limiting for init package Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve something existing (e.g. no docs, new APIs, etc) Init question Further information is requested
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant