Skip to main content
QUICK REVIEW

[Paper Review] Critical Review of BugSwarm for Fault Localization and Program Repair

Thomas Durieux, Rui Abreu|arXiv (Cornell University)|May 22, 2019
Software Testing and Debugging TechniquesComputer Science16 references7 citations
TL;DR

This paper critically evaluates BugSwarm, a benchmark of 3,091 failing and passing CI builds for automatic program repair (APR) and fault localization (FL). Despite its design intent, only 112 (3.6%) pairs are suitable for APR/FL due to issues like duplicate commits, non-behavioral failures, and non-bug fixes, raising concerns about benchmark quality and misusage in empirical studies.

ABSTRACT

Benchmarks play an important role in evaluating the efficiency and effectiveness of solutions to automate several phases of the software development lifecycle. Moreover, if well designed, they also serve us well as an important artifact to compare different approaches amongst themselves. BugSwarm is a benchmark that has been recently published, which contains 3,091 pairs of failing and passing continuous integration builds. According to the authors, the benchmark has been designed with the automatic program repair and fault localization communities in mind. Given that a benchmark targeting these communities ought to have several characteristics (e.g., a buggy statement needs to be present), we have dissected the benchmark to fully understand whether the benchmark suits these communities well. Our critical analysis has found several limitations in the benchmark: only 112/3,091 (3.6%) are suitable to evaluate techniques for automatic fault localization or program repair.

Motivation & Objective

  • To assess whether BugSwarm is suitable for evaluating automatic program repair and fault localization techniques.
  • To identify and characterize flaws in BugSwarm that undermine its validity as a benchmark for APR and FL.
  • To provide guidelines for future benchmark design in APR and FL based on empirical analysis of BugSwarm’s limitations.
  • To prevent misusage of BugSwarm in empirical studies by highlighting its unsuitability for most of its 3,091 pairs.
  • To offer a curated, manually validated subset of 112 valid bug-fix pairs for reliable evaluation.

Proposed method

  • Manual inspection of all 3,091 BugSwarm build pairs to assess compliance with APR/FL requirements.
  • Analysis of build logs, diffs, and failure reasons to classify failure types (e.g., test, compilation, checkstyle).
  • Evaluation of commit uniqueness and diff uniqueness to detect duplicate or redundant fixes.
  • Assessment of source code availability and test-suite integrity to ensure reproducibility and validity.
  • Comparison of infrastructure overhead (cost, time, storage) of BugSwarm vs. traditional repositories.
  • Identification of 163 potentially relevant pairs, followed by manual validation of 112 as true bug fixes.

Experimental results

Research questions

  • RQ1How many of the 3,091 BugSwarm build pairs are actually valid for automatic program repair and fault localization?
  • RQ2What types of failure reasons (e.g., test, compilation, checkstyle) are most prevalent in BugSwarm’s failing builds?
  • RQ3To what extent do duplicate commits and non-bug fixes undermine the reliability of BugSwarm as a benchmark?
  • RQ4What are the key characteristics of a high-quality benchmark for APR and FL, based on this analysis?
  • RQ5How does the infrastructure overhead of BugSwarm compare to standard development workflows?

Key findings

  • Only 112 out of 3,091 (3.6%) BugSwarm pairs are valid for APR and fault localization, as they contain actual behavioral bugs.
  • 62.32% of failing builds fail due to test failures, 11.12% due to checkstyle errors, and 10.03% due to compilation errors—non-behavioral issues unsuitable for APR/FL evaluation.
  • 1,182 pairs (38.2%) contain duplicate commits, indicating redundant or non-unique fixes, reducing benchmark diversity.
  • 142 pairs failed to meet the original criterion of being reproduced five times, raising concerns about reliability.
  • The BugSwarm infrastructure incurs significant overhead: $45.24, 2 days, 18.8 hours, and 3,680.45 GB of storage per benchmark pair.
  • Despite its name, BugSwarm is not a benchmark of bugs but of builds, leading to conceptual confusion and misuse in research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.