Evaluating and improving semistructured merge

Author:

Cavalcanti Guilherme1,Borba Paulo1,Accioly Paola1

Affiliation:

1. Federal University of Pernambuco, Brazil

Abstract

While unstructured merge tools rely only on textual analysis to detect and resolve conflicts, semistructured merge tools go further by partially exploiting the syntactic structure and semantics of the involved artifacts. Previous studies compare these merge approaches with respect to the number of reported conflicts, showing, for most projects and merge situations, reduction in favor of semistructured merge. However, these studies do not investigate whether this reduction actually leads to integration effort reduction (productivity) without negative impact on the correctness of the merging process (quality). To analyze that, and better understand how merge tools could be improved, in this paper we reproduce more than 30,000 merges from 50 open source projects, identifying conflicts incorrectly reported by one approach but not by the other (false positives), and conflicts correctly reported by one approach but missed by the other (false negatives). Our results and complementary analysis indicate that, in the studied sample, the number of false positives is significantly reduced when using semistructured merge. We also find evidence that its false positives are easier to analyze and resolve than those reported by unstructured merge. However, we find no evidence that semistructured merge leads to fewer false negatives, and we argue that they are harder to detect and resolve than unstructured merge false negatives. Driven by these findings, we implement an improved semistructured merge tool that further combines both approaches to reduce the false positives and false negatives of semistructured merge. We find evidence that the improved tool, when compared to unstructured merge in our sample, reduces the number of reported conflicts by half, has no additional false positives, has at least 8% fewer false negatives, and is not prohibitively slower.

Funder

Fundação de Amparo à Ciência e Tecnologia do Estado de Pernambuco

Conselho Nacional de Desenvolvimento Científico e Tecnológico

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Reference34 articles.

1. Modern Release Engineering in a Nutshell -- Why Researchers Should Care

2. Superimposition: A Language-Independent Approach to Software Composition

3. Structured merge with auto-tuning: balancing precision and performance

4. Semistructured merge

5. Taweesup Apiwattanapong Alessandro Orso and Mary Jean Harrold. 2007. JDiff: A Differencing Technique and Tool for Object-oriented Programs. Automated Software Engineering (2007). Taweesup Apiwattanapong Alessandro Orso and Mary Jean Harrold. 2007. JDiff: A Differencing Technique and Tool for Object-oriented Programs. Automated Software Engineering (2007).

Cited by 37 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. NodeGit : Diffing and Merging Node Graphs;ACM Transactions on Graphics;2023-12-05

2. On the methodology of three-way structured merge in version control systems: Top-down, bottom-up, or both;Journal of Systems Architecture;2023-12

3. Towards accurate recommendations of merge conflicts resolution strategies;Information and Software Technology;2023-12

4. Automatic prediction of developers’ resolutions for software merge conflicts;Journal of Systems and Software;2023-12

5. Git Merge Conflict Resolution Leveraging Strategy Classification and LLM;2023 IEEE 23rd International Conference on Software Quality, Reliability, and Security (QRS);2023-10-22

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3