You probably have ever stared at hundreds of traces of integration check logs questioning which of the sixteen log information truly incorporates your bug, you aren’t alone — and Google now has knowledge to show it.
A crew of Google researchers launched Auto-Diagnose, an LLM-powered software that mechanically reads the failure logs from a damaged integration check, finds the foundation trigger, and posts a concise analysis instantly into the code evaluation the place the failure confirmed up. On a guide analysis of 71 real-world failures spanning 39 distinct groups, the software appropriately recognized the foundation trigger 90.14% of the time. It has run on 52,635 distinct failing checks throughout 224,782 executions on 91,130 code modifications authored by 22,962 distinct builders, with a ‘Not helpful’ charge of simply 5.8% on the suggestions obtained.

The issue: integration checks are a debugging tax
Integration checks confirm that a number of elements of a distributed system truly talk to one another appropriately. The checks Auto-Diagnose targets are airtight practical integration checks: checks the place a complete system beneath check (SUT) — usually a graph of speaking servers — is introduced up inside an remoted setting by a check driver, and exercised towards enterprise logic. A separate Google survey of 239 respondents discovered that 78% of integration checks at Google are practical, which is what motivated the scope.
Diagnosing integration check failures confirmed up as one of many high 5 complaints in EngSat, a Google-wide survey of 6,059 builders. A follow-up survey of 116 builders discovered that 38.4% of integration check failures take greater than an hour to diagnose, and eight.9% take greater than a day — versus 2.7% and 0% for unit checks.
The basis trigger is structural. Check driver logs often floor solely a generic symptom (a timeout, an assertion). The precise error lives someplace inside one of many SUT element logs, typically buried beneath recoverable warnings and ERROR-level traces that aren’t truly the trigger.


How Auto-Diagnose works
When an integration check fails, a pub/sub occasion triggers Auto-Diagnose. The system collects all check driver and SUT element logs at degree INFO and above — throughout knowledge facilities, processes, and threads — then joins and types them by timestamp right into a single log stream. That stream is dropped right into a immediate template together with element metadata.
The mannequin is Gemini 2.5 Flash, referred to as with temperature = 0.1 (for near-deterministic, debuggable outputs) and highp = 0.8. Gemini was not fine-tuned on Google’s integration check knowledge; that is pure immediate engineering on a general-purpose mannequin.
The immediate itself is essentially the most instructive a part of this analysis. It walks the mannequin by way of an express step-by-step protocol: scan log sections, learn element context, find the failure, summarize errors, and solely then try a conclusion. Critically, it contains laborious detrimental constraints — for instance: if the logs don’t comprise traces from the element that failed, don’t draw any conclusion.
The mannequin’s response is post-processed right into a markdown discovering with ==Conclusion==, ==Investigation Steps==, and ==Most Related Log Traces== sections, then posted as a remark in Critique, Google’s inside code evaluation system. Every cited log line is rendered as a clickable hyperlink.
Numbers from manufacturing
Auto-Diagnose averages 110,617 enter tokens and 5,962 output tokens per execution, and posts findings with a p50 latency of 56 seconds and p90 of 346 seconds — quick sufficient that builders see the analysis earlier than they’ve switched contexts.
Critique exposes three suggestions buttons on a discovering: Please repair (utilized by reviewers), Useful, and Not useful (each utilized by authors). Throughout 517 complete suggestions stories from 437 distinct builders, 436 (84.3%) had been “Please fix” from 370 reviewers — by far the dominant interplay, and an indication that reviewers are actively asking authors to behave on the diagnoses. Amongst dev-side suggestions, the helpfulness ratio (H / (H + N)) is 62.96%, and the “Not helpful” charge (N / (PF + H + N)) is 5.8% — effectively beneath Google’s 10% threshold for preserving a software stay. Throughout 370 instruments that submit findings to Critique, Auto-Diagnose ranks #14 in helpfulness, placing it within the high 3.78%.
The guide analysis additionally surfaced a helpful facet impact. Of the seven circumstances the place Auto-Diagnose failed, 4 had been as a result of check driver logs weren’t correctly saved on crash, and three had been as a result of SUT element logs weren’t saved when the element crashed — each actual infrastructure bugs, reported again to the related groups. In manufacturing, round 20 ‘extra info is required‘ diagnoses have equally helped floor infrastructure points.
Key Takeaways
- Auto-Diagnose hit 90.14% root-cause accuracy on a guide analysis of 71 real-world integration check failures spanning 39 groups at Google, addressing an issue 6,059 builders ranked amongst their high 5 complaints within the EngSat survey.
- The system runs on Gemini 2.5 Flash with no fine-tuning — simply immediate engineering. A pub/sub set off collects logs throughout knowledge facilities and processes, joins them by timestamp, and sends them to the mannequin at temperature 0.1 and highp 0.8.
- The immediate is engineered to refuse slightly than guess. Arduous detrimental constraints drive the mannequin to reply with “more information is needed” when proof is lacking — a deliberate trade-off that stops hallucinated root causes and even helped floor actual infrastructure bugs in Google’s logging pipeline.
- In manufacturing since Might 2025, Auto-Diagnose has run on 52,635 distinct failing checks throughout 224,782 executions on 91,130 code modifications from 22,962 builders, posting findings in a p50 of 56 seconds — quick sufficient that engineers see the analysis earlier than switching contexts.
Try the Pre-Print Paper right here. Additionally, be at liberty to comply with us on Twitter and don’t neglect to hitch our 130k+ ML SubReddit and Subscribe to our Publication. Wait! are you on telegram? now you may be part of us on telegram as effectively.
Must associate with us for selling your GitHub Repo OR Hugging Face Web page OR Product Launch OR Webinar and so forth.? Join with us



