Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

get_job_logs with failed_only misses failed jobs after the first 30 jobs of a run

Aperta Adatta ai principianti
#3,428 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

@jayhemnani9910 ci sta già lavorando.

Dal 6/10/2026.

  • #3430 di @jayhemnani9910 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
74/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Leggi handleFailedJobLogs in pkg/github/actions.go, dove ListWorkflowJobs viene chiamato una volta senza per_page; cambialo per richiedere per_page=100 e seguire NextPage fino all'ultima pagina, in modo che total_jobs rifletta il numero totale di job della run anziché la lunghezza della pagina. Aggiungi un test di regressione in pkg/github che copra una run con più di una pagina di job in cui i fallimenti si trovano oltre i primi 30 (l'issue cita la run 31008458461 in python/cpython come esempio reale). Per considerarsi completato, una run con 45 job e fallimenti dopo il job 30 deve restituire quei job falliti e total_jobs: 45.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

get_job_logs with failed_only: true lists the run's jobs with a single ListWorkflowJobs call and no per_page, so it only sees the API's default first page of 30 jobs. In a run with more jobs (a typical matrix build), a failure in job 31 or later is not found, and the tool answers "No failed jobs found in this workflow run". total_jobs in the result is also the page length (30), not the run's job count.

Affected version

v1.14.0 and main at 71ef8266 (handleFailedJobLogs in pkg/github/actions.go).

Steps to reproduce the behavior
  1. Run github-mcp-server stdio --read-only --toolsets=actions with a token.
  2. Call get_job_logs with {"owner":"python","repo":"cpython","run_id":31008458461,"failed_only":true}. That run has 45 jobs; its 2 failed jobs ("Docs / Check for removed HTML IDs / Check for removed HTML IDs" and "All required checks pass") are both after the first 30.
Expected vs actual behavior

Expected: logs (or log URLs) for the 2 failed jobs, with total_jobs: 45.

Actual (v1.14.0):

{"failed_jobs":0,"message":"No failed jobs found in this workflow run","run_id":31008458461,"total_jobs":30}

Only the first page of jobs is requested.

Logs

N/A

I have a small fix with a regression test ready and can open a PR: list the jobs with per_page=100 and follow NextPage until the last page.

Lingua principale
Go
Stelle
33.4k
Fork
5.1k
Merge medio
3g 1h
PR unite (30g)
35

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/github-mcp-server

Tutte le issue di github/github-mcp-server

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.