Rank and cut GITHUB_TOKEN calls per pull request head

Open
#19,233 7 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
github, github-actions, shell
Domain
ci-cd, devops

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Shell
Stars
22
Forks
2
Avg merge
2h
Merged PRs (30d)
960

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from melodic-software/claude-code-plugins

All issues in melodic-software/claude-code-plugins

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.