计算机科学 > 软件工程
[提交于 2025年11月18日]
标题:FlakyGuard: Automatically Fixing Flaky Tests at Industry Scale
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Chengpeng Li[v1] 2025年11月18日 星期二 00:10:51 UTC