Menu

What a coding agent does with a failing test when it can't see the test's history
📰

What a coding agent does with a failing test when it can't see the test's history

DEV Community: dotnet·Adrian·7 days ago
#725eTKws
#devtodotnet#devto#dev#history#test
Long article (1378 words) — no AI summary yet.
Reading 0:00
15s threshold

In a merge request (MR) pipeline, a test fails with HTTP 401 Unauthorized from the carrier's sandbox API. The MR changes how the carrier API token is sent. I asked a coding agent to get the pipeline green, and it blamed the MR: three times out of three.

It was wrong. The carrier sandbox had started rejecting every call, and the same test was failing on main too. The agent couldn't know that. It had the code and the diff, but no record of earlier pipeline runs.

So I ran a small experiment. Does a coding agent fix a failing MR pipeline better when it can read the test's history? In 60 runs across 10 scenarios, history changed the outcome in 3 scenarios, and in no scenario did it make things worse.

A disclosure first: I'm building Xping , a test reliability tool for .NET, and the history in this experiment came from it. I built both the tool and the test. Keep that in mind, and check the limits section before you trust any number here.

The setup

The repo is a small .NET storefront with one test project.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.