Tue 25 May 2021 23:10 - 23:30 at Blended Sessions Room 1 - 1.1.1. Code Review: Automation
Code reviews are popular in both industrial and open source projects. The benefits of code reviews are widely recognized and include better code quality and lower likelihood of introducing bugs. However, since code review is a manual activity it comes at the cost of spending developers’ time on reviewing their teammates’ code.
Our goal is to make the first step towards partially automating the code review process, thus, possibly reducing the manual costs associated with it. We focus on both the contributor and the reviewer sides of the process, by training two different Deep Learning architectures. The first learns code changes performed by developers during real code review activities, thus providing the contributor with a revised version of her code implementing code transformations usually recommended during code review before the code is even submitted for review. The second automatically provides the reviewer commenting on a submitted code with the revised code implementing her comments expressed in natural language.
The empirical evaluation of the two models shows that, on the contributor side, the trained model succeeds in replicating the code transformations applied during code reviews in up to 16% of cases. On the reviewer side, the model can correctly implement a comment provided in natural language in up to 31% of cases. We believe that these encouraging results can pave the way to novel research in the area of automating code review.
Tue 25 MayDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
22:30 - 23:30 | 1.1.1. Code Review: AutomationSEIP - Software Engineering in Practice / Technical Track at Blended Sessions Room 1 | ||
22:30 20mPaper | LightSys: Lightweight and Efficient CI System for Improving Integration Speed of SoftwareSEIP SEIP - Software Engineering in Practice Geunsik Lim Samsung Research, Samsung Electronics, MyungJoo Ham Samsung Electronics, Jijoong Moon Samsung Electronics, Wook Song Samsung Electronics Link to publication DOI Pre-print Media Attached | ||
22:50 20mPaper | Using Machine Intelligence to Prioritise Code Review RequestsSEIP SEIP - Software Engineering in Practice Pre-print Media Attached | ||
23:10 20mPaper | Towards Automating Code Review ActivitiesTechnical Track Technical Track Rosalia Tufano Università della Svizzera Italiana, Luca Pascarella Delft University of Technology, Michele Tufano Microsoft, Denys Poshyvanyk College of William & Mary, Gabriele Bavota Software Institute, USI Università della Svizzera italiana Pre-print Media Attached |