Limit and/or Cache API requests to avoid: 403 - API rate limit exceeded for installation ID ___
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Start with the jekyll-github-metadata gem's GitHub Metadata generation and the verbose build output showing list_repos, releases, and contributors calls. Reproduce the GitHub Actions deployment with Jekyll 4.3.2 and GITHUB_TOKEN, then inspect how these requests are made. Done means deployments avoid unnecessary requests and complete without exceeding the installation rate limit.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I just switched to using Jekyll 4.3.2 and tried to deploy a static site using this theme, which lists all current GitHub repositories on the generated static site page. To do this, it uses jekyll-github-metadata gem (version 2.16.0) to gather all repositories for my GitHub user.
Apparently, this results in a lot of API requests (for my user, over ~486!) and quickly hits the rate limit when using GITHUB_TOKEN in a GitHub Actions workflow.
Would it be possible to cache or limit API requests further so static site deployments will complete successfully in GitHub Actions?
For example: The jekyll build --verbose output shows each repo is queried for both contributors and releases, but the template doesn't even need this information
Logging at level: debug
Jekyll Version: 4.3.2
Configuration file: /mnt/terabyte/src/sites/trinitronx.github.io/_config.yml
Configuration file: /mnt/terabyte/src/sites/trinitronx.github.io/_config_dev.yml
Requiring: jekyll-github-metadata
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
GitHub Metadata: Initializing...
Source: /mnt/terabyte/src/sites/trinitronx.github.io
Destination: /mnt/terabyte/src/sites/trinitronx.github.io/_site
Incremental build: enabled
Generating...
Reading: /_layouts/default.html
EntryFilter: excluded /LICENSE.neumorphism
EntryFilter: excluded /README.md
EntryFilter: excluded /docs
EntryFilter: excluded /package.json
EntryFilter: excluded /node_modules
EntryFilter: excluded /.jekyll-cache
EntryFilter: excluded /.github
EntryFilter: excluded /.ruby-version
EntryFilter: excluded /Gemfile
EntryFilter: excluded /yarn.lock
EntryFilter: excluded /.ruby-gemset
EntryFilter: excluded /Gemfile.lock
EntryFilter: excluded /.gitignore
EntryFilter: excluded /gulpfile.js
Reading: index.html
Reading: _data/projects.yml
Reading: _data/skills-frameworks.yml
Reading: _data/skills-languages.yml
Reading: _data/skills-tools.yml
Reading: _data/timeline.yml
Rendering: index.html
Pre-Render Hooks: index.html
Rendering Markup: index.html
Post-Convert Hooks: index.html
Rendering Layout: index.html
GitHub Metadata: Generating for trinitronx/trinitronx.github.io
GitHub Metadata: Calling @client.list_repos("trinitronx", {:type=>"public", :accept=>"application/vnd.github.mercy-preview+json"})
GitHub Metadata: Calling @client.releases("trinitronx/action-doctl")
GitHub Metadata: Calling @client.contributors("trinitronx/action-doctl")
GitHub Metadata: Calling @client.releases("trinitronx/ansible")
GitHub Metadata: Calling @client.contributors("trinitronx/ansible")
GitHub Metadata: Calling @client.releases("trinitronx/ansible-examples")
GitHub Metadata: Calling @client.contributors("trinitronx/ansible-examples")
[... SNIP ...]
[... TOTAL number of releases + contributors API log lines = 486 ...]
[... SNIP ...]
GitHub Metadata: Calling @client.releases("trinitronx/zengge-lightcontrol")
GitHub Metadata: Calling @client.contributors("trinitronx/zengge-lightcontrol")
Writing: /mnt/terabyte/src/sites/trinitronx.github.io/_site/index.html
Writing Metadata: .jekyll-metadata
done in 177.699 seconds.
Auto-regeneration: disabled. Use --watch to enable.
[18:31:02] Finished 'jekyll' after 2.97 min
- Vorherrschende Sprache
- Ruby
- Sterne
- 309
- Forks
- 159
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus jekyll/github-metadata
-
jekyll-github-metadata calls Pages API for private repos with Pages disabled, causing fatal 403Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 58/100
jekyll/github-metadata#302 ·
-
PageOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 10/100
jekyll/github-metadata#294 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
jekyll/github-metadata#290 · 1 Kommentar ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
jekyll/github-metadata#264 · 1 Kommentar · 3 Reaktionen ·
-
pinned
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 28/100
jekyll/github-metadata#130 · 5 Kommentare · 6 Reaktionen ·
Alle Issues in jekyll/github-metadata
Ähnliche Issues
-
instrumentation-sidekiq
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
open-telemetry/opentelemetry-ruby-contrib#2735 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
SecureRandom.alphanumeric can silently return an empty or wrong-length secret instead of raisingOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
ruby/securerandom#92 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
we-promise/sure#5902 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
avo-hq/avo#5065 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag