Causes of merge conflicts: a case study of ElasticSearch
Paper i proceeding, 2020

Software branching and merging allows collaborative development and creating software variants, commonly referred to as clone & own. While simple and cheap, a trade-off is the need to merge code and to resolve merge conflicts, which frequently occur in practice. When resolving conflicts, a key challenge for developer is to understand the changes that led to the conflict. While merge conflicts and their characteristics are reasonably well understood, that is not the case for the actual changes that cause them.

We present a case study of the changes---on the code and on the project-level (e.g., feature addition, refactoring, feature improvement)---that lead to conflicts. We analyzed the development history of ElasticSearch, a large open-source project that heavily relies on branching (forking) and merging. We inspected 40 merge conflicts in detail, sampled from 534 conflicts not resolvable by a semi-structured merge tool. On a code (structural) level, we classified the semantics of changes made. On a project-level, we categorized the decisions that motivated these changes. We contribute a categorization of code- and project-level changes and a detailed dataset of 40 conflict resolutions with a description of both levels of changes. Similar to prior studies, most of our conflicts are also small; while our categorization of code-level changes surprisingly differs from that of prior work. Refactoring, feature additions and feature enhancements are the most common causes of merge conflicts, most of which could potentially be avoided with better development tooling.

Författare

Wardah Mahmood

Göteborgs universitet

Moses Chagama

Göteborgs universitet

Thorsten Berger

Göteborgs universitet

Regina Hebig

Göteborgs universitet

Proceedings of the 14th International Working Conference on Variability Modelling of Software-Intensive Systems

1-9

14th International Working Conference on Variability Modelling of Software-Intensive Systems (VAMOS'20)
, ,

Ämneskategorier

Tvärvetenskapliga studier

Programvaruteknik

Systemvetenskap, informationssystem och informatik med samhällsvetenskaplig inriktning

DOI

10.1145/3377024.3377047

Mer information

Senast uppdaterat

2021-03-10