Code review is an integral part of any mature software development process, and identifying the best reviewer for a code change is a well accepted problem within the software engineering community. Selecting a reviewer who lacks expertise and understanding can slow development or result in more defects. To date, most reviewer recommendation systems rely primarily on historical file change and review information; those who changed or reviewed a file in the past are the best positioned to review in the future. We posit that while these approaches are able to identify and suggest qualified reviewers, they may be blind to reviewers who have the needed expertise and have simply never interacted with the changed files before. To address this, we present CORAL, a novel approach to reviewer recommendation that leverages a socio-technical graph built from the rich set of entities (developers, repositories, files, pull requests, work-items, etc.) and their relationships in modern source code management systems. We employ a graph convolutional neural network on this graph and train it on two and a half years of history on 332 repositories. We show that CORAL is able to model the manual history of reviewer selection remarkably well. Further, based on an extensive user study, we demonstrate that this approach identifies relevant and qualified reviewers who traditional reviewer recommenders miss, and that these developers desire to be included in the review process. Finally, we find that "classical" reviewer recommendation systems perform better on smaller (in terms of developers) software projects while CORAL excels on larger projects, suggesting that there is "no one model to rule them all."
翻译:代码审查是任何成熟软件开发过程的一个组成部分, 确定对代码修改的最佳审查者是软件工程界中一个公认的问题。 选择一个缺乏专长和理解的审查者可以减缓发展速度或导致更多缺陷。 迄今为止, 多数审查者建议系统主要依靠历史文档变化和审查信息; 过去修改或审查过一个文件的人最适于在今后审查。 我们假设, 虽然这些方法能够识别和推荐合格的审查者, 但对于拥有所需专长并且以前从未与更改过的文件互动的审评者来说, 他们可能是盲人。 为了解决这个问题, 我们提出CORAL, 一种较新的审查者建议, 利用来自丰富实体( 开发者、 储存者、 文件、 调用请求、 工作项目等) 及其在现代源码管理系统中的关系建立社会技术图。 我们在这个图表上使用一个图形神经网络, 并在332 储存库的两年半历史年中对其进行培训。 我们显示, CORAL 能够模拟审查者选择的手动历史选择过程。 进一步, 依据一项传统的用户审查计划, 我们发现, 所有的用户审查者在最后发现, 我们发现, 更精细的系统, 我们发现, 选择是更精确的系统, 选择。