arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2005.09217cs.SE
收藏

代码评审措施是否解释了发布后缺陷的发生率?

Do Code Review Measures Explain the Incidence of Post-Release Defects?

Andrey Krutauz, Tapajit Dey, Peter C. Rigby, Audris Mockus

摘要:

目的:与代码审查过程中发现的缺陷研究相反,我们的目标是澄清代码审查措施是否可以解释发布后缺陷的流行。方法:我们重复了McIntoshet的研究。使用加法回归来模拟缺陷和代码评审之间的关系。为了增加外部效度,我们在一个新的软件项目中应用相同的方法。我们与原始研究的第一作者麦金托什讨论了我们的发现。然后,我们研究如何减少变量选择过程中相关预测因子的影响,以及如何通过采用贝叶斯网络(BN)模型来增加对预测因子之间相互关系的理解。背景:与原始研究一样,我们使用了作者在原始研究中为Qt项目获得的相同测量。我们从Google Chrome的版本控制和问题跟踪器中挖掘数据,并实施与复制研究中使用的大量代码,流程和代码审查措施相似的措施。结果如下:原始研究的数据和Chrome数据都显示代码审查措施对缺陷的影响具有高度不稳定性,结果对变量选择程序高度敏感。没有代码审查预测器的模型与那些有审查预测器的模型一样好或更好。然而,复制证实了大量先前的工作,表明先前的缺陷,模块大小和作者有最强的关系,发布后的缺陷。BN模型的应用有助于解释所观察到的不稳定性,通过证明与审查相关的预测因子不直接影响发布后的缺陷,并显示间接影响。例如,没有评审讨论的变更往往与具有许多先前缺陷的文件相关联,这反过来又增加了发布后缺陷的数量。

英文摘要:

Aim: In contrast to studies of defects found during code review, we aim to clarify whether code reviews measures can explain the prevalence of post-release defects. Method: We replicate a study by McIntoshet. al that uses additive regression to model the relationship between defects and code reviews. To increase external validity, we apply the same methodology on a new software project. We discuss our findings with the first author of the original study, McIntosh. We then investigate how to reduce the impact of correlated predictors in the variable selection process and how to increase understanding of the inter-relationships among the predictors by employing Bayesian Network (BN) models. Context: As in the original study, we use the same measures authors obtained for Qt project in the original study. We mine data from version control and issue tracker of Google Chrome and operationalize measures that are close analogs to the large collection of code, process, and code review measures used in the replicated the study. Results: Both the data from the original study and the Chrome data showed high instability of the influence of code review measures on defects with the results being highly sensitive to variable selection procedure. Models without code review predictors had as good or better fit than those with review predictors. Replication, however, confirms with the bulk of prior work showing that prior defects, module size, and authorship have the strongest relationship to post-release defects. The application of BN models helped explain the observed instability by demonstrating that the review-related predictors do not affect post-release defects directly and showed indirect effects. For example, changes that have no review discussion tend to be associated with files that have had many prior defects which in turn increase the number of post-release defects.

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

↑