Rank and cut GITHUB_TOKEN calls per pull request head

Offen
#19,233 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
github, github-actions, shell
Bereich
ci-cd, devops

Rechercherichtung

Start by reading the log-api-budget notices for the workflows and jobs during one full busy 5000-call hour, then calculate and rank calls per pull request head. The issue gives examples of runs 45703833390, 45740947939, and 45740947891, and references #19187, #19188, and docs/owner-decisions.md row 443. Done means publishing the ranked table and making measured cuts, then recording fewer review-lane defers per hour on a later busy day; identifying the right callers and reducing usage spans multiple jobs and needs project familiarity.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

session-owned

Context

Owner goal (2026-11-25, verbatim): "Volume should not be causing issues. Our pipeline should be able to accommodate PRs of any size across all its actions."

On 2026-11-25 the per-repository GITHUB_TOKEN budget (5000 calls per hour) was the main reason review lanes did not run: the kill-switch defer gate held both review lanes on more than 7 pull request heads, each leaving CI Status red until a re-run. Examples: run 45703833390 (1312 of 5000 left), #19167's lanes at 00:17Z (1675 left), #19229's lanes at 02:13Z (projected 0.24 of the limit left 8 min ahead; runs 45740947939, 45740947891). #19188 fixed only the defers just before a refill; the rest are real budget pressure. Every job's log-api-budget notices record its GITHUB_TOKEN calls (for example ci-status: github-token=7 ... core-by-reset=...).

Proposed work

  • Sum the log-api-budget notices per workflow and job over one busy window (one full 5000-call hour on 2026-11-25 or a later busy day) and rank the callers by calls per pull request head.
  • Cut the largest callers: conditional requests, one read shared across jobs, or fewer re-runs. Each cut is its own pull request with its measured saving.

Acceptance criteria

  • A ranked table of GITHUB_TOKEN calls per pull request head by workflow and job, from the notices, in the issue or the first PR.
  • On a later busy day, fewer review-lane defers per hour than on 2026-11-25, with the count in the closing PR.

References

  • #19187 and #19188 (near-reset defer floor, merged); architecture docs/owner-decisions.md row 443.
Vorherrschende Sprache
Shell
Sterne
22
Forks
2
Ø Merge
2 Std.
Gemergte PRs (30 T.)
960

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus melodic-software/claude-code-plugins

Alle Issues in melodic-software/claude-code-plugins

Ähnliche Issues

Weitere Issues zu Shell/Bash

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.