How I use an AI agent to triage openQA failures, and where it was wrong
TL;DR: For the last few months I've used an AI coding agent as a second pair of hands on openQA failures: pulling job history, reading logs, replaying test logic, cloning verification runs. It's fast at the tedious parts. It's also wrong, with full confidence, often enough that I don't accept a root cause from it without a log line, a reproducer or a count. Below is what it does well and five times it was wrong.
What I use it for
Statistics instead of anecdotes. One failed job tells you very little. The useful question is "what do all the failures have in common?". The agent queries the openQA API for months of history and groups the results by version, architecture, worker or timing. That's how the s390x IPsec flake turned into a number: the client failed in 3.7% of the runs that had the network to itself, and in 35.8% of the runs that overlapped with another one (#27415). The same approach covered six months of lynis results, 2,670 jobs, before I touched that code.
Replaying test logic offline. Before changing how the lynis checks parse their reports, the agent stubbed out the openQA test API and ran the old and new code on 1,534 real report sections. The old code matched openQA on 1,533 of them. So I knew what the change would do before the first verification run (#27514).
Verification runs. A change to a security test has to be checked on several SLE versions and architectures. The agent clones one job per combination and collects the results.
Reading upstream code across versions. For example, ssh-keyscan changed its behaviour more than once between OpenSSH 8.0 and 10.x. The upstream commit message for one of those changes says the banner goes to stderr. It goes to stdout. Checking the code at each tag settled it (#27307).
Where it was wrong
1. "tee hides the exit status." In a review the agent flagged a
command | tee log as a bug: without pipefail, the pipeline returns tee's
status. Correct in general, wrong here. The openQA test setup enables
set -o pipefail for the serial shell. A second agent, asked to verify the
finding, showed that.
2. The wrong bucket. A group of Common Criteria test failures timed out on a simple probe. The agent filed them under a known serial console problem and called them "aarch64 only". When I had it group every failure by version instead, both claims fell apart: the failures were on two older service packs only, on both architectures, and never on the newer ones. Different problem entirely.
3. A silent "no". The agent told me I could only file bugs in public Bugzilla products. The real reason: Bugzilla ignores an API key sent as an HTTP header, without any error. Every call it thought was authenticated was anonymous. It took one test with a deliberately wrong key to see that.
4. A green run that tested nothing. To tell verification runs apart, the
agent added a suffix to the job's TEST name. That suite picks its modules
by TEST, so the module under test was silently unscheduled, and the run came
back green. Now I check that the module actually ran before calling a
verification run good.
5. Blaming the test. A staging test failed because a package could not be installed. The agent wrote it up as a test problem. It was a real regression in the staged package: a dependency it used to provide had gone missing. The maintainers fixed it in the next staging round.
None of these were exotic. They all have the same shape: a plausible story that fit the first piece of evidence, delivered with no doubt in its voice.
Rules I work by now
- The agent proposes, the evidence decides. A root cause needs a log line, a reproducer or a population count.
- Group all failures before believing any single one.
- Verification runs cover every supported version and architecture, and I check that the module under test ran.
- Nothing goes out under my name without me reading it: bug reports, comments, pull requests.
Is it faster?
For logs, yes. Going through the logs of a few dozen jobs and lining them up used to cost me a few hours of debugging. Parsing and correlating them now takes a few minutes, plus the time to check the result by hand on a couple of jobs.
Finding the actual root cause is a different story. The agent can suggest a cause in seconds, but I still have to prove it with a reproducer or a verification run, and that takes as long as it always did. Because the agent is sometimes confidently wrong, that check is now the most important step.