A candid engineering narrative exploring how AI-assisted test generation scaled a test suite from 48 to 412 files in 18 days, quadrupled CI costs, and introduced subtle failures that missed a production billing bug affecting 114 business customers.
On a Wednesday morning in October, at 3:14 AM, Akhil was notified of the issue in version 2.18.4 of the billing service. Subscription upgrades were returning errors, and 29 related support requests had already been logged in Zendesk.
How controls increased
In May, the team had 48 checks written by its people. They took about four minutes to complete. Within 18 days, the number had grown to 412, as new checks were created from issues logged in Jira and from screenshots.
One of these checks had been created four months earlier with the help of an artificial intelligence tool. It had been checked by three engineers, including Akhil. But it didn't detect that the upgrade had failed. So, before the problematic version was released, all 412 checks showed success.
By August, the team was starting to see problems with the quality of the checks. By September, the monthly bill for the GitHub Actions service, which performed the checks, had jumped from $890 to $4.180. A full round of checks took 19 minutes and 42 seconds, even with 12 tasks running simultaneously. According to Akhil, on a typical afternoon, 30 to 40 checks were showing instability.
The team held 30 checks
After reviewing all 412 controls, the team did a major purge and deleted 382. They kept 30: the 22 from the original group of 48 and another eight that had started out with the help of artificial intelligence but had been extensively rewritten by a human.
↳
READ ALSO
HACKS.GR / RELATED
AI Unlocked
The same artificial intelligence model behaves differently depending on the computer
↗
The team also created an automated change checker that completes in 14 seconds. If it detects specific patterns that could cause problems, it stops the process before the rest of the checks begin. In the first week, it stopped three change proposals. Two of them were Akhil’s own.
By November, the team had added four checks for critical billing and user identification functions, bringing the total to 34.
Less time and lower cost
By November, the time for a round of checks had dropped from 19 minutes and 42 seconds to 4 minutes and 18 seconds. The monthly bill for computing resources went down from $4.180 to $890.
The frequency of check failures decreased from approximately 8,5% to 0,4% per run. Most of the remaining failures were due, according to the report, to temporary network issues in the test environment. Over the next 90 days, no billing or checkout errors were recorded that reached the service used by customers.
The team hasn't stopped using AI tools to build controls. Akhil says he still uses them for initial templates and simple data examples.
>Stay connected with Hacks.gr
Set us as a preferred source on Google and find us on social media.
Preferred source
↗
end of article
Top comments (0)