Fonte: Finding Bug Inducing Commits from Failures

Gabin An, Jingun Hong, Naryeong Kim, Shin Yoo
12/13/2022
cs.SE

Official code: coinse/fonte (14 stars, MIT, last commit 2024-03-13).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

coinse/fonteOfficial100%
MIT

Artifact of a paper “Fonte: Finding Bug Inducing Commits From Failures” (ICSE'23)

147Sep 16, 20222 years agoMIT

Similar Papers

Cite this paper

@article{an2022fonte,
  title  = {Fonte: Finding Bug Inducing Commits from Failures},
  author = {Gabin An and Jingun Hong and Naryeong Kim and Shin Yoo},
  year   = {2022},
  eprint = {2212.06376},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.06376}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.06376.svg)](https://codeofpaper.com/paper/2212.06376)

Discussion