Just-in-Time Flaky Test Detection via Abstracted Failure Symptom Matching
Gabin An, Juyeon Yoon, Thomas Bach, Jingun Hong, Shin Yoo

TL;DR
This paper presents a novel approach to detect flaky tests in CI pipelines by matching failure symptoms like error messages and stack traces, reducing reruns and speeding up feedback to developers.
Contribution
It introduces a symptom abstraction and matching method for flaky test detection, achieving high precision and significant resource savings in an industrial setting.
Findings
Achieved at least 96% precision in flaky failure detection.
Saved approximately 58% of machine time compared to rerunning tests.
Effective symptom abstraction improves detection accuracy.
Abstract
We report our experience of using failure symptoms, such as error messages or stack traces, to identify flaky test failures in a Continuous Integration (CI) pipeline for a large industrial software system, SAP HANA. Although failure symptoms are commonly used to identify similar failures, they have not previously been employed to detect flaky test failures. Our hypothesis is that flaky failures will exhibit symptoms distinct from those of non-flaky failures. Consequently, we can identify recurring flaky failures, without rerunning the tests, by matching the failure symptoms to those of historical flaky runs. This can significantly reduce the need for test reruns, ultimately resulting in faster delivery of test results to developers. To facilitate the process of matching flaky failures across different execution instances, we abstract newer test failure symptoms before matching them to…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware System Performance and Reliability · Software Testing and Debugging Techniques · Software Engineering Research
