Lune

ASE2025顶会

FlakyGuard: Automatically Fixing Flaky Tests at Industry Scale

Chengpeng Li, Farnaz Behrang, August Shi, Peng Liu

摘要

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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Domain-Specific Fixes for Flaky Tests with Wrong Assumptions on Underdetermined Specifications 引用了 A study on the lifecycle of flaky tests
  • Preempting Flaky Tests via Non-Idempotent-Outcome Tests 引用了 Domain-Specific Fixes for Flaky Tests with Wrong Assumptions on Underdetermined Specifications
  • Preempting Flaky Tests via Non-Idempotent-Outcome Tests 引用了 Repairing Order-Dependent Flaky Tests via Test Generation
  • Repairing Order-Dependent Flaky Tests via Test Generation 引用了 Preempting Flaky Tests via Non-Idempotent-Outcome Tests
  • Preempting Flaky Tests via Non-Idempotent-Outcome Tests 引用了 A study on the lifecycle of flaky tests
  • Repairing Order-Dependent Flaky Tests via Test Generation 引用了 Domain-Specific Fixes for Flaky Tests with Wrong Assumptions on Underdetermined Specifications
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper13

  1. A study on the lifecycle of flaky testsWing Lam, Kivanç Muslu, Hitesh Sajnani, Suresh ThummalapentaICSE 2020 · 107 次引用
  2. AutoCodeRover: Autonomous Program ImprovementYuntong Zhang, Haifeng Ruan, Zhiyu Fan, Abhik RoychoudhuryISSTA 2024 · 96 次引用
  3. Domain-Specific Fixes for Flaky Tests with Wrong Assumptions on Underdetermined SpecificationsPeilun Zhang, Yanjie Jiang, Anjiang Wei, Victoria Stodden 等ICSE 2021 · 26 次引用
  4. Repairing Order-Dependent Flaky Tests via Test GenerationChengpeng Li, Chenguang Zhu, Wenxi Wang, August ShiICSE 2022 · 22 次引用
  5. Preempting Flaky Tests via Non-Idempotent-Outcome TestsAnjiang Wei, Pu Yi, Zhengxi Li, Tao Xie 等ICSE 2022 · 20 次引用

相关 Paper

  1. Neurosymbolic Repair of Test FlakinessYang Chen, Reyhaneh JabbarvandISSTA 2024 · 8 次引用
  2. NIODebugger: A Novel Approach to Repair Non-Idempotent-Outcome Tests with LLM-Based AgentKaiyao KeICSE 2025 · 3 次引用
  3. Dockerfile Flakiness: Characterization and RepairTaha Shabani, Noor Nashid, Parsa Alian, Ali MesbahICSE 2025 · 2 次引用
  4. Understanding and Improving Flaky Test ClassificationShanto Rahman, Saikat Dutta, August ShiOOPSLA 2025 · 5 次引用
  5. Context Matters: Improving the Practical Reliability of LLM-Based Unit Test Generation (Experience Paper)Junjie Chen, Ziqi Wang, Lin Yang, Chen Yang 等ISSTA 2026
黄昏的海面,两侧是细线勾勒的悬崖