LLM-Based Automated Diagnosis Of Integration Test Failures At Google
This paper introduces Auto-Diagnose, an LLM-powered tool integrated into Google's code review system that effectively analyzes complex integration test logs to identify root causes with 90.14% accuracy, significantly reducing developer effort and receiving positive adoption feedback across tens of thousands of test failures.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are a chef running a massive, high-tech restaurant. You have a team of cooks (the software components) working together to prepare complex dishes (the software features).
The Problem: The "Noise" in the Kitchen
Sometimes, a dish comes out wrong. Maybe the soup is cold, or the steak is burnt. In the old days, when a dish failed, the head chef (the developer) would have to walk into the kitchen and look at thousands of handwritten notes left by every single cook, the dishwasher, the delivery driver, and the waiter.
These notes are the logs.
- There are too many of them (thousands of lines).
- They are written in messy, different handwriting (unstructured formats).
- Most of the notes say "I washed a plate" or "I opened the fridge" (routine noise), but buried deep inside is one tiny note that says, "The stove broke at 2:03 PM" (the actual error).
Finding that one tiny note in a mountain of paper takes hours. It's frustrating, exhausting, and slows down the whole restaurant. At Google, developers were spending hours every day just trying to find this "needle in a haystack."
The Solution: The Super-Intelligent Sous-Chef (Auto-Diagnose)
The Google team built a new tool called Auto-Diagnose. Think of it as a super-intelligent, hyper-fast Sous-Chef who has read every single manual in the world and can read thousands of pages of notes in a split second.
Here is how it works:
- The Alarm: When a dish fails, the kitchen sends a giant stack of notes to the Sous-Chef.
- The Scan: The Sous-Chef (powered by a Large Language Model, or LLM) doesn't just read; it understands. It instantly ignores the "I opened the fridge" notes and zooms in on the "Stove broke" note.
- The Report: Instead of handing the chef a stack of paper, the Sous-Chef writes a short, clear sticky note: "The steak is burnt because the stove in Station 3 overheated at 2:03 PM. Check the logs from the stove."
- The Delivery: This note is instantly pasted right onto the chef's computer screen where they are working, so they don't even have to leave their seat to fix it.
How Well Did It Work?
The team tested this new Sous-Chef on 71 real kitchen disasters.
- Accuracy: It figured out the real cause of the problem 90% of the time. That's like a detective solving 9 out of 10 mysteries correctly.
- Speed: It did the work in about a minute, whereas a human might take an hour or more.
- Popularity: When they rolled it out to the whole company, developers loved it. Out of hundreds of tools that give feedback to coders, this one was ranked in the top 4% for being helpful.
The Catch (and the Future)
Even a super-smart AI isn't perfect. Sometimes, the kitchen didn't write down the notes correctly (a bug in the logging system), so the AI couldn't find the answer. In those rare cases, it honestly said, "I can't solve this yet; I need more information."
However, developers are getting used to this AI. They are so happy with it that they are starting to ask, "Okay, you found the broken stove... can you fix it for me?" The team is now working on making the AI not just a detective, but a mechanic that can actually repair the code.
The Bottom Line
This paper shows that AI is amazing at reading messy, confusing text and finding the one thing that matters. By putting this AI directly into the developers' daily workflow, Google saved them hours of frustration, proving that sometimes, you just need a smart assistant to help you find the needle in the haystack.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.