ci-doctor: compiled workflow has no `actions` toolset, so it can't read failed job logs
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Anfängerfreundlichkeit
- 88/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- github-actions, yaml
- Bereich
- ai-infra-agents, ci-cd
Rechercherichtung
Beginne mit workflows/ci-doctor.md und prüfe, wie die GitHub-Toolsets konfiguriert sind; das Issue nennt das aktuelle Toolset der Lock-Datei und eine vorgeschlagene YAML-Änderung. Bestätige, dass der kompilierte Workflow das actions-Toolset enthält und der Agent fehlgeschlagene Job-Logs abrufen kann. Erledigt, wenn der kompilierte Workflow diese Tools bereitstellt und dabei die Standard-Toolsets beibehält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
workflows/ci-doctor.md asks the agent to "inspect the workflow run and list its jobs" and "retrieve logs for failed jobs", but the workflow doesn't enable the GitHub actions toolset, so it has no tool that can do either.
Repro
- Compile the current
workflows/ci-doctor.md(578e0e0) with gh-aw v1.2.2. - The lock file sets
GITHUB_TOOLSETS: "context,repos,issues,pull_requests", which is the default set with noactions. permissions: actions: readis set, but that grants the job token permission; it doesn't add the MCP tools.ghinside the sandbox isn't authenticated, and the workflow has no pre-step that downloads the logs.
What we saw
In an evaluation replaying 15 real CI failures on a private repo (same model and config for every run, apart from this change):
| Stock ci-doctor | With toolsets: [default, actions] |
|
|---|---|---|
| Runs that ended with no diagnosis | 4 of 15 | 0 of 15 |
| Correct root cause | 8 of 15 | 11 of 15 |
Without the toolset, the agent reported missing tools in missing_tools ("no tool can list GitHub Actions workflow jobs or fetch job logs") and either stopped or worked from whatever it could find in the checkout. With the toolset, every run called get_job_logs.
Suggested fix
tools:
github:
toolsets: [default, actions]
default keeps the current toolsets. I'm happy to open a PR if that's useful.
- Vorherrschende Sprache
- Python
- Sterne
- 1.1k
- Forks
- 163
- 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 githubnext/agentics
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
githubnext/agentics#402 ·
-
agentic-workflows automated documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 1/100
githubnext/agentics#419 ·
-
FrontendOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 1/100
githubnext/agentics#418 ·
-
[aw] Detection RunsOffenagentic-workflows
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 8/100
githubnext/agentics#415 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
githubnext/agentics#412 ·
Alle Issues in githubnext/agentics
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
bad-antics/lateralus-lang#1489 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 69/100
anderspitman/awesome-tunneling#330 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
scikit-hep/coffea#1668 ·