Context: Contemporary code review tools are a popular choice for software quality assurance. Using these tools, reviewers are able to post a linkage between two patches during a review discussion. Large development teams that use a review-then-commit model risk being unaware of these linkages. Objective: Our objective is to first explore how patch linkage impacts the review process. We then propose and evaluate models that detect patch linkage based on realistic time intervals. Method: First, we carry out an exploratory study on three open source projects to conduct linkage impact analysis using 942 manually classified linkages. Second, we propose two techniques using textual and file location similarity to build detection models and evaluate their performance. Results: The study provides evidence of latency in the linkage notification. We show that a patch with the Alternative Solution linkage (i.e., patches that implement similar functionality)undergoes a quicker review and avoids additional revisions after the team has been notified, compared to other linkage types. Our detection model experiments show promising recall rates for the Alternative Solution linkage (from 32% to 95%), but precision has room for improvement. Conclusion: Patch linkage detection is promising, with likely improvements if the practice of posting linkages becomes more prevalent. From our implications, this paper lays the groundwork for future research on how to increase patch linkage awareness to facilitate efficient reviews.
翻译:当代代码审查工具是软件质量保证的流行选择。 使用这些工具,审查者能够在审查讨论中将两个补丁连接起来。 使用审查时承诺模式的大型开发团队可能不知道这些联系。 目标: 我们的目标是首先探讨补丁联系如何影响审查过程。 我们的目标是首先探讨补丁联系如何影响审查过程。 我们然后提议和评价在现实时间间隔的基础上探测补丁联系的模式。 方法: 第一, 我们进行关于三个开放源项目的探索性研究, 利用942手动分类链接进行联系影响分析。 第二, 我们提出使用文本和档案位置相似的两种技术, 以建立探测模型并评估其绩效。 结果: 研究报告提供了连接通知中存在长期性的证据。 我们显示,替代解决方案联系的补丁(即执行类似功能的补丁)会比通知小组后更快地进行审查,并避免与其他链接类型相比再作修改。 我们的检测模式实验显示,替代溶剂联系的回率很有希望(从32%到95%),但准确性有改进的余地。 结论: 补联结的探测很有希望,如果提高基础,如果我们的研究影响如何加强,那么,那么,那么,则会如何改进。