AfterRed: a free, local-first tool for working out whether a CI failure is yours or one that keeps coming back
I'm a student, and I've been building an open-source tool for a problem I kept hitting: CI goes red, and I can't tell whether my change broke it or it's the test that fails every few days anyway. To see how common the second case is, I took the last 25 failed GitHub Actions runs from each of 8 big open-source projects (Vite, Next.js, Prisma, Astro, Node and others). In about 6 out of 10 failed…
In this story, a student has created a free, local-first tool called "AfterRed" to determine if a Continuous Integration (CI) failure is caused by their recent changes or if it's a recurring issue. To gauge the prevalence of recurring CI failures, the student analyzed the last 25 failed GitHub Actions runs from eight popular open-source projects, including Vite, Next.js, Prisma, Astro, and Node.
In approximately 60% of these failed runs, the error had already occurred in an earlier commit. The student developed "afterred-check", a command-line interface (CLI), to address this issue. Users can input a repository, and the tool will scan the most recent failed runs, identify the primary error in each job's log, and group together failures that are the same issue resurfacing.
The development of AfterRed follows certain design principles, such as being local-first with no account, server, or telemetry. The tool operates with read-only permissions, accessing logs from GitHub and storing them locally without sharing any data. Users can view the results, which are based on straightforward rules and clearly indicate the evidence supporting each finding.
The project is released under the Apache-2.0 license, with no plans for a paid tier. The student is currently working on a desktop application that will build upon the CLI functionality of AfterRed. The student encourages feedback on frustrating CI failures and invites users to share their experiences via the issue form in the GitHub repository or in the comments section.
The author of AfterRed is currently a student, and the project is still in its early stages. The student appreciates any support in making the repository more visible, such as giving it a star on GitHub, which helps reach a broader audience and makes it easier for others to find the solution when their builds fail.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to
More from Dev.to on urgent.news
Report a problem with this story
Get the day's news by email. Daily, weekly or monthly. Sign up