FlakyGuard: Automatically Fixing Flaky Tests at Industry Scale
Not on the map. Why?
Abstract (arXiv)
Flaky tests that non-deterministically pass or fail waste developer time and slow release cycles. While large language models (LLMs) show promise for automatically repairing flaky tests, existing approaches like FlakyDoctor fail in industrial settings due to the context problem: providing either too little context (missing critical production code) or too much context (overwhelming the LLM with irrelevant information). We present FlakyGuard, which addresses this problem by treating code as a graph structure and using selective graph exploration to find only the most relevant context. Evaluation on real-world flaky tests from industrial repositories shows that FlakyGuard repairs 47.6 % of reproducible flaky tests with 51.8 % of the fixes accepted by developers. Besides it outperforms state-of-the-art approaches by at least 22 % in repair success rate. Developer surveys confirm that 100 % find FlakyGuard's root cause explanations useful.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 10 of its 52 references that are in the map. First posted on arXiv 18 Nov 2025.
Builds on
10 of 52 references.
References · 10
- 2017Attention Is All You Needcited by 59,932
- 2023GPT-4 Technical Reportcited by 18,132
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2023An Empirical Study of the Non-determinism of ChatGPT in Code Generationcited by 134
- 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
- 2024GRAG: Graph Retrieval-Augmented Generationcited by 77
- 2021Flakify: A Black-Box, Language Model-based Predictor for Flaky Testscited by 11
- 2023FlakyFix: Using Large Language Models for Predicting Flaky Test Fix Categories and Test Code Repaircited by 6
- 2025Detecting and Evaluating Order-Dependent Flaky Tests in JavaScriptcited by 2
Built on by
Not cited yet.