Semaphore Uncut · Semaphore
Flaky test data is now accessible through the sem-ai API, and this week also brings a skill that uses that data to fix the tests automatically. Flaky test data is now generally available through the API. You can query your flakiest tests programmatically, sorted by number of disruptions, with failure timestamps and logs included. Find it on github. A new sem-ai skill can identify and fix flaky tests end-to-end. The agent pulls the highest-disruption tests, gathers failure context, determines the root cause, and writes a fix. It then verifies the result, first by running tests locally, and if that’s not possible, by spinning up Semaphore test boxes to run the test across multiple machines in parallel. Running the test repeatedly across machines is especially important for flaky tests, since a single passing run isn’t enough to confirm a fix. Benchmarking on a real open source project with Claude Opus on high effort showed a cost of $1 to $1.50 per fix. Four existing skills were improved with additional examples. Agents were occasionally not following skill instructions due to a lack of examples. Adding concrete examples improves adherence and makes sem-ai’s output more consistent across runs. What’s Coming User and organization management will be added to the API in an upcoming release. The team is also continuing to refine skills and commands based on usage patterns. * Try sem-ai * Try Semaphore Cloud * All product news Till the next time, Pete Miloravac https://semaphore.io This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit semaphoreio.substack.com
0:00SPEAKER_00Hey everyone, Pete here.
0:02SPEAKER_00Big week for Sem AI.
0:04We shipped two things that work together to close the loop on
0:07flaky tests.
0:09First,
0:10flaky test data is now available through the API,
0:13and it's generally available today.
0:15SPEAKER_00You can pull your flakiest tests programmatically,
0:18SPEAKER_00sorted by disruption count,
0:20SPEAKER_00with failure metadata and logs attached.
0:23SPEAKER_00The docs are updated, so go check it out.
0:26Second,
0:27we built a skill on top of that API that actually fixes the
0:30flakes.
0:31SPEAKER_00The agent picks the worst offenders,