Stage-oriented Analysis on Factors Impacting Bug Fixing Time

Wu Hong, Junjie Wang, Qing Wang, Lin Shi, Yuan FengProceedings/Proceedings 2016

Abstract

The timely fixing of bugs is important to ensure software quality. In Open Source Software (OSS) development, behaviors of stakeholders impact the bug fixing process, especially the different stages respectively. However, most of the existing studies on impact factors of bug fixing time usually treat bug fixing process as a whole, while neglecting the particularity at its different stages. Ignoring the detail of different stages cannot let us understand why the fixing time is longer or shorter. In this paper, we aimed at investigating whether the factors have different impacts on the time of different stages and the whole process. Three stages of the whole fixing process were formalized, and twenty-four factors were defined and extracted from three aspects: bug reports, their associated source code and code changes. An empirical study based on two OSS projects, Eclipse JDT Core and Linux Kernel, was conducted for the investigation. The results of our study provide a very positive validation that the influence of factors on bug fixing time is stage related, rather than for the whole process. Our results can help developers better understand influences of factors on the bug fixing process, and thus provide opportunities to improve their process effectively.

Introduction

Fixing bugs is a critical yet expensive phase of software development, often consuming up to 80% of total project costs. To optimize this process, researchers frequently analyze "Bug Life Time" (BLT)—the duration from a bug's initial report to its final closure. However, traditional research often treats BLT as a monolithic block of time. This "whole-process" view obscures the nuances of Open Source Software (OSS) development, where bug reports are dynamic documents involving various stakeholders—triagers, developers, and reviewers—who interact at different phases.

By failing to distinguish between stages, we lose sight of whether delays stem from slow triage (assignment), complex technical implementation (fixing), or bottlenecks in quality assurance (verification). This paper proposes a stage-oriented analysis to identify how specific factors impact different parts of the bug-fixing lifecycle.

Formalizing the Bug-Fixing Lifecycle

To provide a more granular analysis, the authors formalized the bug-fixing process into four key timepoints ($T_R, T_A, T_F, T_V$) and three distinct stages:

  1. Bug Assignment Stage ($S_A$): The interval from the initial report ($T_R$) to the final developer assignment ($T_A$).
  2. Bug Fixing Stage ($S_F$): The interval from assignment ($T_A$) to the final code commit ($T_F$).
  3. Bug Verification Stage ($S_V$): The interval from the commit ($T_F$) to the bug being marked as "Verified" or "Closed" ($T_V$).
The formalized stages and timepoints of the bug-fixing process.

Methodology and Datasets

The study analyzed 24 potential impact factors across three categories: bug reports, source code complexity, and physical code changes. The research was conducted on two major OSS projects: Eclipse JDT Core (Java) and the Linux Kernel (C). By linking Bugzilla reports with Git commit logs, the authors curated a dataset of 5,493 unique bug-fixing instances. Statistical significance was measured using the Kruskal-Wallis test for categorical data and Spearman rank correlation for numerical data.

The analysis revealed that factors do not impact the bug-fixing process uniformly. A factor might be highly influential during assignment but negligible during verification.

1. The Assignment Stage ($S_A$) and "Bug Tossing"

The Assignment stage showed the strongest correlations with bug report metadata. Notably, the number of assignee changes ($CHAssi$) and the number of comments ($NumCom$) were primary drivers of delay. In the Linux dataset, $CHAssi$ had a staggering 0.958 correlation with $S_A$, suggesting that the triage phase is a significant bottleneck often hidden when looking only at total BLT.

2. The Fixing Stage ($S_F$)

Technical effort becomes the dominant factor during the fixing stage. The number of comments remains relevant, but code-level metrics like the number of added source lines within methods ($AddSLOC\_M$) show a clear impact. Interestingly, some source code metrics in Linux that appeared irrelevant to the total BLT were found to be significant when isolated to the $S_F$ stage.

3. The Verification Stage ($S_V$)

The Verification stage proved to be an outlier, showing very low correlation with almost all defined factors. Manual inspection suggested that $S_V$ is often dictated by external release schedules—bugs are frequently marked "Verified" only when a new version is shipped—rather than the inherent complexity of the bug itself.

Statistical results showing the correlation of various factors across stages and the whole process (BLT).

Conclusion

This research demonstrates that a stage-oriented approach is essential for understanding the bug-fixing process. By breaking down the lifecycle, developers and project managers can identify specific bottlenecks—whether they are organizational (triage delays) or technical (complex code changes). While limited to two major projects, this study provides a framework for more effective process improvement in software maintenance.

Summary updated

BibTeX
@inproceedings{hong2016stage,
  author = {Wu Hong and Junjie Wang and Qing Wang and Lin Shi and Yuan Feng},
  title = {{Stage-oriented Analysis on Factors Impacting Bug Fixing Time}},
  booktitle = {Proceedings/Proceedings},
  year = {2016},
  doi = {10.18293/seke2016-079},
}
Figure