...
首页> 外文期刊>Information and software technology >Understanding predictive factors for merge conflicts
【24h】

Understanding predictive factors for merge conflicts

机译:了解合并冲突的预测因素

获取原文
获取原文并翻译 | 示例
           

摘要

Context Merge conflicts often occur when developers change the same code artifacts. Such conflicts might be frequent in practice, and resolving them might be costly and is an error-prone activity.Objective: To minimize these problems by reducing merge conflicts, it is important to better understand how conflict occurrence is affected by technical and organizational factors.Method: With that aim, we investigate seven factors related to modularity, size, and timing of developers contributions. To do so, we reproduce and analyze 73504 merge scenarios in GitHub repositories of Ruby and Python MVC projects.Results: We find evidence that the likelihood of merge conflict occurrence significantly increases when contributions to be merged are not modular in the sense that they involve files from the same MVC slice (related model, view, and controller files). We also find bigger contributions involving more developers, commits, and changed files are more likely associated with merge conflicts. Regarding the timing factors, we observe contributions developed over longer periods of time are more likely associated with conflicts. No evaluated factor shows predictive power concerning both the number of merge conflicts and the number of files with conflicts.Conclusion. Our results could be used to derive recommendations for development teams and merge conflict prediction models. Project management and assistive tools could benefit from these models.
机译:当开发人员更改相同的代码工件时,通常会发生上下文合并冲突。这样的冲突在实践中可能经常发生,并且解决它们的成本可能很高并且容易出错。目的:通过减少合并冲突来最大程度地减少这些问题,重要的是更好地了解冲突的发生是如何受到技术和组织因素的影响的。方法:为了这个目的,我们研究了与模块化,规模和开发人员贡献时间有关的七个因素。为此,我们在Ruby和Python MVC项目的GitHub存储库中重现并分析了73504个合并方案。结果:我们发现证据表明,当要合并的贡献不是模块化的(涉及文件时),发生合并冲突的可能性显着增加来自同一MVC片(相关的模型,视图和控制器文件)。我们还发现,更大的贡献涉及更多的开发人员,提交,并且更改的文件更有可能与合并冲突相关联。关于时间因素,我们观察到,在更长的时间内发展出的贡献更可能与冲突有关。没有评估因素显示关于合并冲突的数量和有冲突的文件数量的预测能力。我们的结果可用于为开发团队提供建议,并合并冲突预测模型。项目管理和辅助工具可以从这些模型中受益。

著录项

  • 来源
    《Information and software technology》 |2020年第5期|106256.1-106256.12|共12页
  • 作者

  • 作者单位

    Univ Fed Pernambuco Informat Ctr Av Jornalista Anibal Fernandes S-N BR-50740560 Recife PE Brazil|Fed Rural Univ Amazonia Cyberspatial Inst Av Presidente Tancredo Neves 2501 BR-66077830 Belem PA Brazil;

    Univ Fed Pernambuco Informat Ctr Av Jornalista Anibal Fernandes S-N BR-50740560 Recife PE Brazil;

  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    code integration; merge conflict; modularity; collaborative development; empirical study;

    机译:代码集成;合并冲突模块化合作发展;实证研究;

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号