arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.15141cs.SEcs.LG
收藏

现代代码评审中的代码评审完成时间预测

Predicting Code Review Completion Time in Modern Code Review

ETS Montreal, University of Quebec(魁北克大学蒙特利尔高等技术学院);Rochester Institute of Technology(罗切斯特理工学院)

Moataz Chouchen, Jefferson Olongo, Ali Ouni, Mohamed Wiem Mkaouer

摘要:

上下文现代代码审查(MCR)在开源和商业项目中都被采用,这是一种常见的做法。MCR是一种被广泛认可的质量保证实践,它允许早期检测缺陷以及糟糕的编码实践。它还带来了其他一些好处,如知识共享,团队意识和协作。问题.在实践中,代码审查可能会由于各种社会技术因素而出现重大延迟,这些因素可能会影响项目质量和成本。对于一个成功的评审过程,同行评审员应该及时地执行他们的评审任务,同时提供关于正在评审的代码更改的相关反馈。然而,缺乏工具支持来帮助开发人员在接受或拒绝审查请求之前估计完成代码审查所需的时间。Objective.我们的目标是构建和验证一种有效的方法来预测MCR背景下的代码审查完成时间,并帮助开发人员更好地管理和优先考虑他们的代码审查任务。法我们将代码审查完成时间的预测公式化为一个学习问题。特别是,我们提出了一个基于回归模型的框架,以(i)有效地估计代码审查完成时间,(ii)了解影响代码审查完成时间的主要因素。

英文摘要:

Context. Modern Code Review (MCR) is being adopted in both open source and commercial projects as a common practice. MCR is a widely acknowledged quality assurance practice that allows early detection of defects as well as poor coding practices. It also brings several other benefits such as knowledge sharing, team awareness, and collaboration. Problem. In practice, code reviews can experience significant delays to be completed due to various socio-technical factors which can affect the project quality and cost. For a successful review process, peer reviewers should perform their review tasks in a timely manner while providing relevant feedback about the code change being reviewed. However, there is a lack of tool support to help developers estimating the time required to complete a code review prior to accepting or declining a review request. Objective. Our objective is to build and validate an effective approach to predict the code review completion time in the context of MCR and help developers better manage and prioritize their code review tasks. Method. We formulate the prediction of the code review completion time as a learning problem. In particular, we propose a framework based on regression models to (i) effectively estimate the code review completion time, and (ii) understand the main factors influencing code review completion time.

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

↑