Mining Code Review Data to Understand Waiting Times Between Acceptance and Merging: An Empirical Analysis

Gunnar Kudrjavets, Aditya Kumar, Nachiappan Nagappan, Ayushi Rastogi

OnderzoeksoutputAcademicpeer review

11 Citaten (Scopus)
231 Downloads (Pure)

Samenvatting

Increasing code velocity (or the speed with which code changes are reviewed and merged) is integral to speeding up development and contributes to the work satisfaction of engineers. While factors affecting code change acceptance have been investigated in the past, solutions to decrease the code review lifetime are less understood. This study investigates the code review process to quantify delays and investigate opportunities to potentially increase code velocity. We study the temporal characteristics of half a million code reviews hosted on Gerrit and Phabricator, starting from the first response, to a decision to accept or reject the changes, and until the changes are merged into a target branch. We identified two types of time delays: (a) the wait time from the proposal of code changes until first response, and (b) the wait time between acceptance and merging. Our study indicates that reducing the time between acceptance and merging has the potential to speed up Phabricator code reviews by 29-63%. Small code changes and changes made by authors with a large number of previously accepted code reviews have a higher chance of being immediately accepted, without code review iterations. Our analysis suggests that switching from manual to automatic merges can help increase code velocity.
Originele taal-2English
Titel2022 IEEE/ACM 19th International Conference on Mining Software Repositories (MSR)
UitgeverijACM Press
Pagina's579-590
Aantal pagina's12
ISBN van geprinte versie 978-1-4503-9303-4/22/05
DOI's
StatusPublished - 21-jun.-2022
Evenement 2022 IEEE/ACM 19th International Conference on Mining Software Repositories (MSR) - Pittsburgh, PA, United States
Duur: 23-mei-202224-mei-2022

Conference

Conference 2022 IEEE/ACM 19th International Conference on Mining Software Repositories (MSR)
Land/RegioUnited States
StadPittsburgh, PA
Periode23/05/202224/05/2022

Vingerafdruk

Duik in de onderzoeksthema's van 'Mining Code Review Data to Understand Waiting Times Between Acceptance and Merging: An Empirical Analysis'. Samen vormen ze een unieke vingerafdruk.
  • Attending MSR 2022

    Kudrjavets, G. (Speaker)

    23-mei-202224-mei-2022

    Activiteit: Academic presentationAcademic

Citeer dit