Categorizing Bugs with Social Networks: A Case Study on Four Open Source Software Communities

Ingo Scholtes, Marcelo Serrano Zanetti, Claudio Juan Tessone, Frank Schweitzer · DOI

TL;DR

This paper proposes a novel method to automatically identify valid bug reports in large open-source software projects by analyzing the social network position of the bug reporter. By leveraging nine network-based metrics, they achieve high precision in classifying bug reports, significantly improving upon previous methods and offering a practical solution for more efficient bug triaging.

What Problem Does This Paper Address?

In large open-source software (OSS) projects, the sheer volume of bug reports can overwhelm development teams. Many reports are duplicates, invalid, or lack sufficient information, making the triaging process incredibly time-consuming and resource-intensive. This is particularly true when projects rely on a large number of part-time contributors who may be less experienced. The paper aims to address this by developing an automated system that can efficiently filter out "faulty" bug reports (duplicates, invalid, or incomplete) from "valid" ones (actual bugs that need fixing), thereby streamlining the bug handling process.

Methods

The core of the paper's methodology lies in using social network analysis to quantify the "social embeddedness" of bug reporters. They construct collaboration networks from bug tracking data (specifically, ASSIGN and CC events) and analyze these networks over time. Instead of relying on simple metrics, they employ a comprehensive set of nine topological measures, including:

  • Centrality Measures: Degree, eigenvector, betweenness, and closeness centrality to understand a reporter's influence and connectivity.
  • Structural Measures: Local clustering coefficient, k-coreness, and membership in the largest connected component (LCC) to capture their structural position within the network.

They then use these measures as features for a machine learning classifier, specifically a Support Vector Machine (SVM), to predict whether a bug report is "valid" (FIXED or WONTFIX) or "faulty" (DUPLICATE, INVALID, or INCOMPLETE). The analysis is performed on evolving collaboration networks, using a 30-day time window to capture dynamic social structures.

Datasets

The study utilizes a comprehensive dataset collected from the Bugzilla installations of four major OSS projects:

  • Mozilla Firefox
  • Mozilla Thunderbird
  • Eclipse
  • NetBeans

This dataset spans over ten years and includes more than 700,000 bug reports and 5.8 million change events. The paper does not introduce a new benchmark dataset but rather uses existing data from these well-established OSS projects.

Key Insights and Ideas

  • Social Position Matters: The paper strongly suggests that a bug reporter's position within the project's collaboration network is a significant indicator of the quality and validity of their bug reports.
  • Dynamic Networks are Crucial: Analyzing evolving collaboration networks, rather than static ones, provides a more accurate picture of social dynamics and their impact on bug reporting.
  • Beyond Simple Metrics: Using a diverse set of nine network measures provides a richer understanding of a reporter's influence and experience than single metrics like just the number of connections.
  • Predictive Power of Centrality: The study validates hypotheses that users who submit valid bug reports tend to have higher centrality, while those submitting duplicate or invalid reports may see their centrality decrease.

Key Results

The proposed automated classification scheme, based on the nine social network measures and an SVM, demonstrates impressive performance:

  • High Precision: The classifier achieves a precision of up to 90.3% in identifying valid bug reports.
  • Improved Accuracy: This represents a significant improvement over previous automated bug classification methods.
  • F-scores: F-scores (a balance of precision and recall) reach up to 0.92 for identifying faulty bug reports.
  • Project Variations: Performance varies across projects, with higher accuracy in projects like Mozilla Firefox and Thunderbird, which also have a smaller proportion of valid bug reports.

Limitations and Future Work

  • Generalizability: The study is based on four specific OSS communities. While these communities represent a spectrum of heterogeneity, generalizing the findings to other types of collaborative software engineering settings (e.g., commercial software, smaller teams) requires further investigation.
  • Data Sources: The analysis primarily relies on ASSIGN and CC events. Future work could incorporate other data sources like mailing lists or forum discussions to build a more comprehensive network perspective.
  • Time Window: The use of a fixed 30-day window for network construction was found to yield high accuracy, but further research is needed to determine if community-specific window tuning could further enhance performance.
  • New Communities: The methodology, while effective for mature OSS communities with sufficient data, might be challenging to apply to newly formed communities.
  • Overfitting: The authors acknowledge the risk of overfitting and limited the training data to 5.0% of the samples.
  • Future Directions: The paper suggests combining their social network measures with existing bug classification methods to further improve accuracy. They are also collecting more data and qualitative insights to generalize their findings.

Summary updated

BibTeX
@inproceedings{scholtes2013categorizing,
  author = {Ingo Scholtes and Marcelo Serrano Zanetti and Claudio Juan Tessone and Frank Schweitzer},
  title = {{Categorizing Bugs with Social Networks: A Case Study on Four Open Source Software Communities}},
  booktitle = {Software Engineering},
  year = {2013},
  doi = {10.1109/icse.2013.6606653},
}
Figure