Fonte: Finding Bug Inducing Commits from Failures
Preprint
Abstract
A Bug Inducing Commit (BIC) is a commit that introduces a software bug into the codebase. Knowing the relevant BIC for a given bug can provide valuable information for debugging as well as bug triaging. However, existing BIC identification techniques are either too expensive (because they require the failing tests to be executed against previous versions for bisection) or inapplicable at the debugging time (because they require post hoc artefacts such as bug reports or bug fixes). We propose Fonte, an efficient and accurate BIC identification technique that only requires test coverage. Fonte combines Fault Localisation (FL) with BIC identification and ranks commits based on the suspiciousness of the code elements that they modified. Fonte reduces the search space of BICs using failure coverage as well as a filter that detects commits that are merely style changes. Our empirical evaluation using 130 real-world BICs shows that Fonte significantly outperforms state-of-the-art BIC identification techniques based on Information Retrieval as well as neural code embedding models, achieving at least 39% higher MRR. We also report that the ranking scores produced by Fonte can be used to perform weighted bisection, further reducing the cost of BIC identification. Finally, we apply Fonte to a large-scale industry project with over 10M lines of code, and show that it can rank the actual BIC within the top five commits for 87% of the studied real batch-testing failures, and save the BIC inspection cost by 32% on average.Keywords
All Related Versions
This publication has 13 references indexed in Scilit:
- Flake Aware Culprit Finding2023
- Testing Very Large Database Management Systems: The Case of SAP HANADatenbank-Spektrum, 2022
- What Made This Test Flake? Pinpointing Classes Responsible for Test Flakiness2022
- Software Batch Testing to Save Build Test Resources and to Reduce Feedback TimeIEEE Transactions on Software Engineering, 2021
- How bugs are born: a model to identify how bugs are introduced in software componentsEmpirical Software Engineering, 2020
- Billion-Scale Similarity Search with GPUsIEEE Transactions on Big Data, 2019
- ChangeLocator: locate crash-inducing changes based on crash reportsEmpirical Software Engineering, 2017
- A Survey on Software Fault LocalizationIEEE Transactions on Software Engineering, 2016
- Localizing failure-inducing program edits based on spectrum information2011
- What Makes a Good Bug Report?IEEE Transactions on Software Engineering, 2010