评估SZZ实现:基于Linux内核的实证研究
Evaluating SZZ Implementations: An Empirical Study on the Linux Kernel
AI总结:
本文在Linux内核76,046对缺陷修复与引入提交上实证评估六种SZZ算法,揭示其召回率显著下降且差异缩小,并提出TC-SZZ方法以追踪变更历史,提升缺陷引入提交识别能力。
摘要:
SZZ算法用于将修复缺陷的提交与更早引入缺陷的提交关联起来。该算法有许多应用,并且已经设计出许多变体。然而,有些类型的提交无法被SZZ算法追踪,这些提交被称为“幽灵提交”。关于这些幽灵提交如何影响SZZ算法的评估仍然有限。此外,这些算法此前是在软件工程研究者根据缺陷跟踪器和版本控制历史中的信息所创建的数据集上进行评估的。自2013年10月以来,Linux内核开发者已开始将标记缺陷修复补丁与相应缺陷引入提交的提交标识符作为标准实践。截至v6.1-rc5,已有76,046对缺陷修复补丁与缺陷引入提交可用。这提供了一个独特的机会,可以在一个由项目开发者创建和审查、完全独立于软件工程研究者偏见的大规模数据集上评估SZZ算法。\n在本文中,我们将六种SZZ算法应用于来自Linux内核的76,046对缺陷修复补丁与缺陷引入提交。我们的发现表明,与Rosa等人先前报告的结果相比,SZZ算法在我们的数据集上的召回率下降更为显著(13.8%),并且各个SZZ算法之间的差异有所缩小。此外,我们发现17.47%的缺陷修复提交是幽灵提交。最后,我们提出了Tracing-Commit SZZ(TC-SZZ),该算法追踪缺陷修复提交中修改或删除行的变更历史中的所有提交。将TC-SZZ应用于所有失败案例(排除幽灵提交)后,我们发现TC-SZZ能够识别其中17.7%的案例。我们的进一步分析发现,34.6%的缺陷引入提交位于函数历史中,27.5%位于文件历史中(但不在函数历史中),并且……
英文摘要:
The SZZ algorithm is used to connect bug-fixing commits to the earlier commits that introduced bugs. This algorithm has many applications and many variants have been devised. However, there are some types of commits that cannot be traced by the SZZ algorithm, referred to as "ghost commits". The evaluation of how these ghost commits impact the SZZ algorithm remains limited. Moreover, these algorithms have been evaluated on datasets created by software engineering researchers from information in bug trackers and version controlled histories. Since Oct 2013, the Linux kernel developers have started labelling bug-fixing patches with the commit identifiers of the corresponding bug-inducing commit(s) as a standard practice. As of v6.1-rc5, 76,046 pairs of bug-fixing patches and bug-inducing commits are available. This provides a unique opportunity to evaluate the SZZ algorithm on a large dataset that has been created and reviewed by project developers, entirely independently of the biases of software engineering researchers. In this paper, we apply six SZZ algorithms to 76,046 pairs of bug-fixing patches and bug-introducing commits from the Linux kernel. Our findings reveal that SZZ algorithms experience a more significant decline in recall on our dataset (13.8%) as compared to prior findings reported by Rosa et al., and the disparities between the individual SZZ algorithms diminish. Moreover, we find that 17.47% of bug-fixing commits are ghost commits. Finally, we propose Tracing-Commit SZZ (TC-SZZ), that traces all commits in the change history of lines modified or deleted in bug-fixing commits. Applying TC-SZZ to all failure cases, excluding ghost commits, we found that TC-SZZ could identify 17.7% of them. Our further analysis found that 34.6% of bug-inducing commits were in the function history, 27.5% in the file history (but not in the function history), and...
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。