Rank and cut GITHUB_TOKEN calls per pull request head

Aberta
#19,233 7 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
github, github-actions, shell
Domínio
ci-cd, devops

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
Shell
Estrelas
22
Forks
2
Merge médio
2h
PRs com merge (30d)
960

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de melodic-software/claude-code-plugins

Todas as issues de melodic-software/claude-code-plugins

Issues semelhantes

Mais issues de Shell/Bash

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.