[Paper Review] ConE: A Concurrent Edit Detection Tool for Large Scale Software Development
ConE is a scalable, heuristic-based tool that proactively detects concurrent edits in pull requests across large-scale software repositories by analyzing overlap extent and rare concurrent file edits. Deployed at Microsoft, it flagged 775 potential conflicts in 6 months, with over 70% of recommendations deemed useful, significantly reducing merge conflicts and duplicate work.
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.
Motivation & Objective
- To investigate the prevalence and impact of concurrent code edits in large-scale, distributed software development environments.
- To address the problem of merge conflicts and logical bugs caused by developers editing the same code areas simultaneously without awareness.
- To design and deploy a scalable, low-friction tool that proactively warns developers of potential concurrent edits before they cause conflicts.
- To minimize false positives while maintaining high precision in conflict detection to ensure tool adoption and usability in real-world engineering workflows.
- To evaluate the tool’s effectiveness in real-world industrial settings and assess developer perception and long-term utility.
Proposed method
- Detect concurrent edits by analyzing the extent of file overlap between pull requests using historical change data.
- Identify 'rarely concurrently edited files'—files that are infrequently edited in parallel across pull requests—as high-risk candidates for conflicts.
- Apply configurable heuristics and filters to balance precision and recall, reducing false positives while maintaining coverage.
- Integrate ConE into existing development workflows (e.g., Azure DevOps) without requiring new client tools or workflow changes.
- Operationalize the system at scale across 234 Microsoft repositories, processing 26,000 pull requests over six months.
- Use feedback loops from developer interviews and usage metrics to refine detection logic and improve relevance.
Experimental results
Research questions
- RQ1How prevalent are concurrent edits to the same files across different pull requests in large-scale software repositories?
- RQ2What is the statistical relationship between concurrent edits and subsequent bug fixes or merge conflicts?
- RQ3Can a heuristic-based system detect concurrent edits with high precision and low false positive rates at scale?
- RQ4How do developers perceive and adopt a proactive concurrent edit detection tool in real-world workflows?
- RQ5What are the key design principles for building a scalable, low-friction tool that integrates seamlessly into existing development pipelines?
Key findings
- Files that are concurrently edited across different pull requests are significantly more likely to introduce bugs, establishing a statistical link between concurrent edits and defect density.
- ConE assessed 26,000 pull requests across 234 repositories and generated 775 conflict recommendations, of which 554 (71.48%) were rated as useful by developers.
- Interviews with 48 developers revealed 93% favorable feedback, with over 90% intending to use ConE daily, citing time savings in conflict resolution and avoidance of duplicate work.
- The system achieved high precision by leveraging overlap extent and rare concurrent edit detection, minimizing false alarms despite the complexity of large-scale codebases.
- ConE was successfully deployed at scale within Microsoft, demonstrating viability and utility in a real-world, multinational engineering organization with diverse programming languages and workflows.
- The tool’s design—focusing on workflow integration and low friction—was critical to its adoption, with developers valuing its proactive, non-disruptive warnings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.