论文标题

审阅者的建模评论历史建议:超图方法

Modeling Review History for Reviewer Recommendation:A Hypergraph Approach

论文作者

Rong, Guoping, Zhang, Yifan, Yang, Lanxin, Zhang, Fuli, Kuang, Hongyu, Zhang, He

论文摘要

现代代码审查是在开源软件(OSS)开发中盛行的引起重新收回开发范式中的至关重要且必不可少的实践。因此,在与大量参与者的项目中找到合适的审阅者成为一项越来越具有挑战性的任务。已经开发了许多审阅者建议方法(推荐人)来支持此任务,即采用类似策略,即首先对审阅历史进行建模,然后根据模型预测/推荐审阅者。显然,模型反映了评论历史上的现实越好,我们可能期望的推荐人的表现越高。但是,一种典型的场景中的一种典型情况,即一个拉普雷斯(PR)(例如,贡献者提交的修订或加法)可能会有多个审阅者,并且他们可能会通过公开发布的评论相互影响,但在现有推荐者中并没有很好地模型。我们采用了HyperGraph Technique来建模这种高阶关系(即,此处具有多个审阅者的PR),并开发了一种新的推荐人,即HGREC,该项目由12个OSS项目评估,具有超过87K PRS,在准确性和建议分布方面进行了680K评论。结果表明,HGREC的表现优于最先进的推荐人,以推荐准确性。此外,在排名前三的精确推荐人中,HGREC更有可能推荐各种各样的审阅者,这可以帮助缓解核心审阅者的工作量拥塞问题。此外,由于HGREC基于HyperGraph,这是模型审查历史的自然且可解释的表示,因此在现代代码审查方案中很容易适应更多类型的实体和现实关系。作为第一次尝试,这项研究揭示了超图在推进务实解决方案的代码审阅者建议方面的潜力。

Modern code review is a critical and indispensable practice in a pull-request development paradigm that prevails in Open Source Software (OSS) development. Finding a suitable reviewer in projects with massive participants thus becomes an increasingly challenging task. Many reviewer recommendation approaches (recommenders) have been developed to support this task which apply a similar strategy, i.e. modeling the review history first then followed by predicting/recommending a reviewer based on the model. Apparently, the better the model reflects the reality in review history, the higher recommender's performance we may expect. However, one typical scenario in a pull-request development paradigm, i.e. one Pull-Request (PR) (such as a revision or addition submitted by a contributor) may have multiple reviewers and they may impact each other through publicly posted comments, has not been modeled well in existing recommenders. We adopted the hypergraph technique to model this high-order relationship (i.e. one PR with multiple reviewers herein) and developed a new recommender, namely HGRec, which is evaluated by 12 OSS projects with more than 87K PRs, 680K comments in terms of accuracy and recommendation distribution. The results indicate that HGRec outperforms the state-of-the-art recommenders on recommendation accuracy. Besides, among the top three accurate recommenders, HGRec is more likely to recommend a diversity of reviewers, which can help to relieve the core reviewers' workload congestion issue. Moreover, since HGRec is based on hypergraph, which is a natural and interpretable representation to model review history, it is easy to accommodate more types of entities and realistic relationships in modern code review scenarios. As the first attempt, this study reveals the potentials of hypergraph on advancing the pragmatic solutions for code reviewer recommendation.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源