arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.15180cs.SE
收藏

小心外部bug!在OpenStack项目中对即时缺陷预测模型的影响的案例研究

Watch out for Extrinsic Bugs! A Case Study of their Impact in Just-In-Time Bug Prediction Models on the OpenStack project

Gema Rodriguez-Perez, Meiyappan Nagappan, Gregorio Robles

摘要:

内在缺陷是指在软件的版本控制系统中可以识别出引入变更的缺陷的缺陷。相比之下,外部错误是由软件的外部更改引起的,例如外部API中的错误;因此,它们没有明确的错误会在版本控制系统中引入更改。虽然大多数以前的研究文献都假设所有的错误都是内在的,但在以前的研究中,我们发现并非所有的错误都是内在的。本文展示了一个例子,如何考虑外部缺陷可以影响软件工程的研究。具体来说,我们研究外部错误的影响,在及时错误预测的部分复制最近的研究由麦金托什和龟井JIT模型。这些模型使用早期引入bug的更改的属性进行训练。由于外部错误没有在版本控制系统中引入更改的错误,因此我们手动管理McIntosh和Kamei的数据集以区分内部和外部错误。然后,我们解决他们原来的研究问题,这一次删除外部错误,研究是否错误引入的变化是一个移动的目标,在即时错误预测。最后,我们研究了内部和外部错误的特征是否不同。我们的研究结果表明,内在和外在的错误是不同的性质。当删除外部错误时,性能差异高达16%曲线下面积点。这表明我们的JIT模型获得了对现实世界更准确的表示。我们的结论是,外部错误产生负面影响的即时模型。此外,我们提供的证据表明,外部错误应该进一步调查,因为它们可以显着影响软件工程师如何理解错误。

英文摘要:

Intrinsic bugs are bugs for which a bug introducing change can be identified in the version control system of a software. In contrast, extrinsic bugs are caused by external changes to a software, such as errors in external APIs; thereby they do not have an explicit bug introducing change in the version control system. Although most previous research literature has assumed that all bugs are of intrinsic nature, in a previous study, we show that not all bugs are intrinsic. This paper shows an example of how considering extrinsic bugs can affect software engineering research. Specifically, we study the impact of extrinsic bugs in Just In Time bug prediction by partially replicating a recent study by McIntosh and Kamei on JIT models. These models are trained using properties of earlier bug-introducing changes. Since extrinsic bugs do not have bug introducing changes in the version control system, we manually curate McIntosh and Kamei's dataset to distinguish between intrinsic and extrinsic bugs. Then, we address their original research questions, this time removing extrinsic bugs, to study whether bug-introducing changes are a moving target in Just-In-Time bug prediction. Finally, we study whether characteristics of intrinsic and extrinsic bugs are different. Our results show that intrinsic and extrinsic bugs are of different nature. When removing extrinsic bugs the performance is different up to 16 % Area Under the Curve points. This indicates that our JIT models obtain a more accurate representation of the real world. We conclude that extrinsic bugs negatively impact Just-In-Time models. Furthermore, we offer evidence that extrinsic bugs should be further investigated, as they can significantly impact how software engineers understand bugs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑