Lune

FSE2022Top-tier venue

First come first served: the impact of file position on code review

Enrico Fregnan, Larissa Braz, Marco D'Ambros, Gül Çalikli, Alberto Bacchelli

Abstract

The most popular code review tools (e.g., Gerrit and GitHub) present the files to review sorted in alphabetical order. Could this choice or, more generally, the relative position in which a file is presented bias the outcome of code reviews? We investigate this hypothesis by triangulating complementary evidence in a two-step study. First, we observe developers’ code review activity. We analyze the review comments pertaining to 219,476 Pull Requests (PRs) from 138 popular Java projects on GitHub. We found files shown earlier in a PR to receive more comments than files shown later, also when controlling for possible confounding factors: e.g., the presence of discussion threads or the lines added in a file. Second, we measure the impact of file position on defect finding in code review. Recruit- ing 106 participants, we conduct an online controlled experiment in which we measure participants’ performance in detecting two unrelated defects seeded into two different files. Participants are assigned to one of two treatments in which the position of the defective files is switched. For one type of defect, participants are not affected by its file’s position; for the other, they have 64% lower odds to identify it when its file is last as opposed to first. Overall, our findings provide evidence that the relative position in which files are presented has an impact on code reviews’ outcome; we discuss these results and implications for tool design and code review.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Why Don't Developers Detect Improper Input Validation? '; DROP TABLE Papers; - cites Primers or reminders?: the effects of existing review comments on code review
  • Deep Learning-based Code Reviews: A Paradigm Shift or a Double-Edged Sword? cites Primers or reminders?: the effects of existing review comments on code review
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Can GPT-4 Replicate Empirical Software Engineering Research?Jenny T. Liang, Carmen Badea, Christian Bird, Robert DeLine et al.FSE 2024 · 15 citations
  2. Barriers for Students During Code Change ComprehensionJustin Middleton, John-Paul Ore, Kathryn T. StoleeICSE 2024 · 7 citations
  3. An Empirical Study on Code Review Activity Prediction and Its Impact in PracticeDoriane Olewicki, Sarra Habchi, Bram AdamsFSE 2024 · 2 citations
  4. Deep Learning-based Code Reviews: A Paradigm Shift or a Double-Edged Sword?Rosalia Tufano, Alberto Martin-Lopez, Ahmad Tayeb, Ozren Dabic et al.ICSE 2025 · 1 citation
  5. A Bug's Life: Analyzing the Lifecycle and Mitigation Process of Content Security Policy BugsGertjan Franken, Tom van Goethem, Lieven Desmet, Wouter JoosenUSENIX Security 2023

Builds on4

  1. Biases and differences in code review using medical imaging and eye-tracking: genders, humans, and machinesYu Huang, Kevin Leach, Zohreh Sharafi, Nicholas McKay et al.FSE 2020 · 37 citations
  2. A tale from the trenches: cognitive biases and software developmentSouti Chattopadhyay, Nicholas Nelson, Audrey Au, Natalia Morales et al.ICSE 2020 · 23 citations
  3. Primers or reminders?: the effects of existing review comments on code reviewDavide Spadini, Gül Çalikli, Alberto BacchelliICSE 2020 · 13 citations
  4. Why Don't Developers Detect Improper Input Validation? '; DROP TABLE Papers; -Larissa Braz, Enrico Fregnan, Gül Çalikli, Alberto BacchelliICSE 2021 · 1 citation

Related papers

  1. Breaking the Alphabet: Rethinking File Ordering in Code ReviewMd Shamimur Rahman, Zadia Codabux, Chanchal K. RoyICSE 2026
  2. Opportunities and Challenges in Repeated Revisions to Pull-Requests: An Empirical StudyZhixing Li, Yue Yu, Tao Wang, Shanshan Li et al.CSCW 2022 · 11 citations
  3. Understanding the impact of GitHub suggested changes on recommendations between developersChris Brown, Chris ParninFSE 2020 · 18 citations
  4. The Effectiveness of Security Interventions on GitHubFelix Fischer, Jonas Höbenreich, Jens GrossklagsCCS 2023 · 4 citations
  5. CORMS: a GitHub and Gerrit based hybrid code reviewer recommendation approach for modern code reviewPrahar Pandya, Saurabh TiwariFSE 2022 · 21 citations
Dusk over the sea between two cliffs drawn in fine vertical lines