Understanding Breaking Changes in the Wild
Authors:
Open Access
- 12 July 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1433-1444
Abstract
Modern software applications rely heavily on the usage of libraries, which provide reusable functionality, to accelerate the development process. As libraries evolve and release new versions, the software systems that depend on those libraries (the clients) should update their dependencies to use these new versions as the new release could, for example, include critical fixes for security vulnerabilities. However, updating is not always a smooth process, as it can result in software failures in the clients if the new version includes breaking changes. Yet, there is little research on how these breaking changes impact the client projects in the wild. To identify if changes between two library versions cause breaking changes at the client end, we perform an empirical study on Java projects built using Maven. For the analysis, we used 18,415 Maven artifacts, which declared 142,355 direct dependencies, of which 71.60% were not up-to-date. We updated these dependencies and found that 11.58% of the dependency updates contain breaking changes that impact the client. We further analyzed these changes in the library which impact the client projects and examine if libraries have adhered to the semantic versioning scheme when introducing breaking changes in their releases. Our results show that changes in transitive dependencies were a major factor in introducing breaking changes during dependency updates and almost half of the detected client impacting breaking changes violate the semantic versioning scheme by introducing breaking changes in non-Major updates.Keywords
This publication has 36 references indexed in Scilit:
- Semantic versioning and impact of breaking changes in the Maven repositoryJournal of Systems and Software, 2017
- Do developers update their library dependencies?Empirical Software Engineering, 2017
- Structure and Evolution of Package Dependency Networks2017
- RefDiff: Detecting Refactorings in Version Histories2017
- Historical and impact analysis of API breaking changes: A large-scale study2017
- How Java APIs break – An empirical studyInformation and Software Technology, 2015
- Measuring Dependency Freshness in Software Systems2015
- Recommended Steps for Thematic Synthesis in Software Engineering2011
- A few billion lines of code laterCommunications of the ACM, 2010
- How do APIs evolve? A story of refactoringJournal of Software Maintenance and Evolution: Research and Practice, 2006