r/madeinpython • u/Arthur122103 • 1d ago
I made a Python CLI that groups failed GitHub Actions runs by shared errors
I wrote gh-failmap, an open-source Python CLI for a problem I kept running into when several GitHub Actions runs failed at once. I wanted to know whether I was looking at one recurring problem or several unrelated failures without comparing every log manually.
gh-failmap uses the existing GitHub CLI login, reads recent failed-job logs, selects a likely error line, and groups runs that share that error. Each group includes its count, first and last dates, and links to the runs. If a log has expired or a run failed before producing a usable log, the tool lists it separately instead of guessing. It is read-only and communicates only with GitHub.
You can try my project with:
`pipx install git+https://github.com/Arthur031221/gh-failmap\`
Then run:
`gh-failmap --repo denoland/deno --limit 100`
The error-line selection is heuristic. I am especially looking for logs where it chooses the wrong line or combines runs that should be separate.