ACoRA - A Platform for Automating Code Review Tasks

被引:0
作者
Ochodek, Miroslaw [1 ]
Staron, Miroslaw [2 ]
机构
[1] Poznan Univ Tech, Inst Comp Sci, Poznan, Poland
[2] Univ Gothenburg, Chalmers Univ Technol, IT Fac, Gothenburg, Sweden
关键词
code reviews; continous integration; BERT; machine learning; INTEGRATION;
D O I
10.37190/e-Inf250102
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Background: Modern Code Reviews (MCR) are frequently adopted when assuring code and design quality in continuous integration and deployment projects. Although tiresome, they serve a secondary purpose of learning about the software product. Aim: Our objective is to design and evaluate a support tool to help software developers focus on the most important code fragments to review and provide them with suggestions on what should be reviewed in this code. Method: We used design science research to develop and evaluate a tool for automating code reviews by providing recommendations for code reviewers. The tool is based on Transformer-based machine learning models for natural language processing, applied to both programming language code (patch content) and the review comments. We evaluate both the ability of the language model to match similar lines and the ability to correctly indicate the nature of the potential problems encoded in a set of categories. We evaluated the tool on two open-source projects and one industry project. Results: The proposed tool was able to correctly annotate (only true positives) 35%-41% and partially correctly annotate 76%-84% of code fragments to be reviewed with labels corresponding to different aspects of code the reviewer should focus on. Conclusion: By comparing our study to similar solutions, we conclude that indicating lines to be reviewed and suggesting the nature of the potential problems in the code allows us to achieve higher accuracy than suggesting entire changes in the code considered in other studies. Also, we have found that the differences depend more on the consistency of commenting rather than on the ability of the model to find similar lines.
引用
收藏
页数:36
相关论文
共 50 条
[41]   Three-way decision in machine learning tasks: a systematic review [J].
Campagner, Andrea ;
Milella, Frida ;
Ciucci, Davide ;
Cabitza, Federico .
ARTIFICIAL INTELLIGENCE REVIEW, 2024, 57 (09)
[42]   A Review of Reinforcement Learning for Fixed-Wing Aircraft Control Tasks [J].
Richter, David J. ;
Calix, Ricardo A. ;
Kim, Kyungbaek .
IEEE ACCESS, 2024, 12 :103026-103048
[43]   Machine learning and deep learning techniques for poultry tasks management: a review [J].
Subramani T. ;
Jeganathan V. ;
Kunkuma Balasubramanian S. .
Multimedia Tools and Applications, 2025, 84 (02) :603-645
[44]   A Review on Intelligent Recognition with Logging Data: Tasks, Current Status and Challenges [J].
Zhu, Xinyi ;
Zhang, Hongbing ;
Ren, Quan ;
Zhang, Lingyuan ;
Huang, Guojiao ;
Shang, Zuoping ;
Sun, Jiangbing .
SURVEYS IN GEOPHYSICS, 2024, 45 (05) :1493-1526
[45]   Code Reviews Do Not Find Bugs How the Current Code Review Best Practice Slows Us Down [J].
Czerwonka, Jacek ;
Greiler, Michaela ;
Tilford, Jack .
2015 IEEE/ACM 37TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, VOL 2, 2015, :27-28
[46]   A Systematic Review of Automated Query Reformulations in Source Code Search [J].
Rahman, Mohammad Masudur ;
Roy, Chanchal K. .
ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2023, 32 (06)
[47]   Machine Learning Approaches to Code Similarity Measurement: A Systematic Review [J].
Zhang, Zixian ;
Saber, Takfarinas .
IEEE ACCESS, 2025, 13 :51729-51764
[48]   Android Source Code Vulnerability Detection: A Systematic Literature Review [J].
Senanayake, Janaka ;
Kalutarage, Harsha ;
Al-Kadri, Mhd Omar ;
Petrovski, Andrei ;
Piras, Luca .
ACM COMPUTING SURVEYS, 2023, 55 (09)
[49]   Adult Code Sepsis: A Narrative Review of its Implementation and Impact [J].
Giglio, Andres ;
Aranda, Maria ;
Ferre, Andres ;
Borges, Marcio .
JOURNAL OF INTENSIVE CARE MEDICINE, 2024,
[50]   iReview: an Intelligent Code Review Evaluation Tool using Biofeedback [J].
Hijazi, Haytham ;
Cruz, Jose ;
Castelhano, Joao ;
Couceiro, Ricardo ;
Castelo-Branco, Miguel ;
de Carvalho, Paulo ;
Madeira, Henrique .
2021 IEEE 32ND INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING (ISSRE 2021), 2021, :476-485