ConE:一个面向大规模软件开发的并发编辑检测工具
ConE: A Concurrent Edit Detection Tool for Large Scale Software Development
摘要:
现代复杂的软件系统正在不断扩展和调整。负责此任务的开发人员可能来自不同的团队或组织,并且可能分布在世界各地。这可能使跟踪其他开发人员正在做什么变得困难,这可能导致多个开发人员同时编辑相同的代码区域。反过来,这可能导致难以合并的更改,甚至合并冲突,难以检测的逻辑错误,重复工作和浪费开发人员的生产力。为了解决这个问题,我们探讨了这个问题的程度在拉请求为基础的软件开发模型。我们研究了微软六个大型存储库半年的变化,其中每个月至少创建1,000个拉取请求。我们发现在不同拉取请求中同时编辑的文件更有可能引入错误。基于这些发现,我们设计、实现和部署了一个名为ConE(并发编辑检测器)的服务,该服务可以主动检测包含并发编辑的拉取请求,以帮助缓解由它们引起的问题。ConE被设计成可扩展的,并且在仍然标记相关的并发编辑的文件的同时最小化错误警报。ConE的关键概念包括检测拉取请求之间的重叠程度,以及识别很少并发编辑的文件。为了评估ConE,我们报告了它在Microsoft内部234个存储库上的操作部署。ConE评估了26,000个拉取请求,并就冲突的更改提出了775条建议,这些建议在超过70%(554)的案例中被评为有用。从对48名用户的采访中,我们了解到他们认为ConE可以节省解决冲突和避免重复工作的时间,超过90%的人打算继续每天使用该服务。
英文摘要:
Modern, complex software systems are being continuously extended and adjusted. The developers responsible for this may come from different teams or organizations, and may be distributed over the world. This may make it difficult to keep track of what other developers are doing, which may result in multiple developers concurrently editing the same code areas. This, in turn, may lead to hard-to-merge changes or even merge conflicts, logical bugs that are difficult to detect, duplication of work, and wasted developer productivity. To address this, we explore the extent of this problem in the pull request based software development model. We study half a year of changes made to six large repositories in Microsoft in which at least 1,000 pull requests are created each month. We find that files concurrently edited in different pull requests are more likely to introduce bugs. Motivated by these findings, we design, implement, and deploy a service named ConE (Concurrent Edit Detector) that proactively detects pull requests containing concurrent edits, to help mitigate the problems caused by them. ConE has been designed to scale, and to minimize false alarms while still flagging relevant concurrently edited files. Key concepts of ConE include the detection of the Extent of Overlap between pull requests, and the identification of Rarely Concurrently Edited Files. To evaluate ConE, we report on its operational deployment on 234 repositories inside Microsoft. ConE assessed 26,000 pull requests and made 775 recommendations about conflicting changes, which were rated as useful in over 70% (554) of the cases. From interviews with 48 users we learned that they believed ConE would save time in conflict resolution and avoiding duplicate work, and that over 90% intend to keep using the service on a daily basis.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。