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