Sort failed CI runs and repair flaky tests
A QA engineer used OpenClaw to read failed builds, label the cause, alert teammates, and reduce test flakiness.
- What they did
- They set up OpenClaw to watch GitHub Actions failures, then inspect the logs and test output for each run. The agent decides whether the problem looks like a flaky test, a true defect, or an environment issue, then sends its findings to GitHub and Slack and creates issues when needed. They also added a second agent for self-healing locators that explores alternate selector strategies and recommends fixes when tests break.
- How it went
- The average diagnosis time fell from 45 minutes to 6 minutes. Flakiness dropped from 8% to 0.8%. In one case, the self-healing agent tried to force a test to fit the observed output instead of repairing the locator, and code review stopped it.
- Tips
- Use a confidence threshold before any automatic merge or code change is allowed. Keep the input tight: when they narrowed the agent to the most relevant 500-1000 tokens, monthly token spend fell from nearly $4,000 to $400.
Try it yourself with OpenClaw
Check failed GitHub Actions runs for [repo] from the last [7 days]. Read only the most relevant logs and test output, then sort each failure into one of three buckets: flaky test, real bug, or environment problem. Send a summary to [Slack channel] and open a GitHub issue for each real bug. For flaky tests, suggest likely locator or timing fixes, but stop and ask for my approval before editing code, changing assertions, posting anything, opening issues, or merging. Do not take any irreversible action without my explicit confirmation.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Use an overnight agent to code and test while you sleep
OpenClaw can keep working after hours, then hand you a morning recap of code changes and experiment results.
Coordinate Terraform and GitOps work with OpenClaw
A developer used multiple OpenClaw agents to handle infrastructure, coding, and GitOps tasks while directing the work in Telegram.
Track down broken builds and draft the fix
OpenClaw was used inside OpenAI to diagnose failing builds, link them to incidents, and sometimes prepare and merge repairs.
Have an agent turn GitHub issues into overnight PRs
A cron-driven OpenClaw agent picks one ready GitHub issue, makes the change, tests it, opens a PR, and updates the issue label.
Reuse charset-aware decoding for fetched pages
A contributor fixed OpenClaw’s page-decoding step so Shift_JIS pages no longer turned into replacement characters.
Track GitHub PR activity and send only important alerts
OpenClaw checked 26 pull requests on a schedule, delivered updates to the author, and revealed a long-broken legacy script.