Flake Aware Culprit Finding
Authors:
- 1 April 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 362-373
Abstract
When a change introduces a bug into a large software repository, there is often a delay between when the change is committed and when bug is detected. This is true even when the bug causes an existing test to fail! These delays are caused by resource constraints which prevent the organization from running all of the tests on every change. Due to the delay, a Continuous Integration system needs to locate buggy commits. Locating them is complicated by flaky tests that pass and fail non-deterministically. The flaky tests introduce noise into the CI system requiring costly reruns to determine if a failure was caused by a bad code change or caused by non-deterministic test behavior. This paper presents an algorithm, Flake Aware Culprit Finding, that locates buggy commits more accurately than a traditional bisection search. The algorithm is based on Bayesian inference and noisy binary search, utilizing prior information about which changes are most likely to contain the bug. A large scale empirical study was conducted at Google on 13,000+ test breakages. The study evaluates the accuracy and cost of the new algorithm versus a traditional deflaked bisection search.Keywords
This publication has 51 references indexed in Scilit:
- Empirically Detecting False Test Alarms Using Association Rules2015
- The Art of Testing Less without Sacrificing Quality2015
- Fault-localization techniques for software systemsACM SIGSOFT Software Engineering Notes, 2014
- Extended comprehensive study of association measures for fault localizationJournal of Software: Evolution and Process, 2013
- A systematic review on regression test selection techniquesInformation and Software Technology, 2010
- Which is the correct statistical test to use?British Journal of Oral and Maxillofacial Surgery, 2008
- When do changes induce fixes?ACM SIGSOFT Software Engineering Notes, 2005
- Searching games with errors—fifty years of coping with liarsTheoretical Computer Science, 2002
- A formal model of program dependences and its implications for software testing, debugging, and maintenanceIEEE Transactions on Software Engineering, 1990
- Sequential transmission using noiseless feedbackIEEE Transactions on Information Theory, 1963