Understanding the Impact of APIs Behavioral Breaking Changes on Client Applications
Proceedings of the ACM on Software Engineering · 12.07.2024 · 1 (FSE) · 1238-1261
DOI: 10.1145/3643782 ↗Kurz gefasst
Fachartikel in der Zeitschrift Proceedings of the ACM on Software Engineering, online erschienen am 12.07.2024. Verfasst von Dhanushka Jayasuriya und 3 weiteren Autor:innen. Die Arbeit wurde bisher 16-mal zitiert (Crossref) und nennt 67 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Marsden Fund Council.
Abstract (Originalsprache)
Libraries play a significant role in software development as they provide reusable functionality, which helps expedite the development process. As libraries evolve, they release new versions with optimisations like new functionality, bug fixes, and patches for known security vulnerabilities. To obtain these optimisations, the client applications that depend on these libraries must update to use the latest version. However, this can cause software failures in the clients if the update includes breaking changes. These breaking changes can be divided into syntactic and semantic (behavioral) breaking changes. While there has been considerable research on syntactic breaking changes introduced between library updates and their impact on client projects, there is a notable lack of research regarding behavioral breaking changes introduced during library updates and their impacts on clients. We conducted an empirical analysis to identify the impact behavioral breaking changes have on clients by examining the impact of dependency updates on client test suites. We examined a set of java projects built using Maven, which included 30,548 dependencies under 8,086 Maven artifacts. We automatically updated out-of-date dependencies and ran the client test suites. We found that 2.30% of these updates had behavioral breaking changes that impacted client tests. Our results show that most breaking changes were introduced during a non- Major dependency update, violating the semantic versioning scheme. We further analyzed the effects these behavioral breaking changes have on client tests.We present a taxonomy of effects related to these changes, which we broadly categorize as Test Failures and Test Errors . Our results further indicate that the library developers did not adequately document the exceptions thrown due to precondition violations.
Förderung
- Marsden Fund Council
Zitieren
APA
Jayasuriya, D., Terragni, V., Dietrich, J., & Blincoe, K. (2024). Understanding the Impact of APIs Behavioral Breaking Changes on Client Applications. Proceedings of the ACM on Software Engineering, 1(FSE), 1238-1261. https://doi.org/10.1145/3643782
Vancouver
Jayasuriya D, Terragni V, Dietrich J, Blincoe K. Understanding the Impact of APIs Behavioral Breaking Changes on Client Applications. Proceedings of the ACM on Software Engineering. 2024;1(FSE):1238-1261. doi:10.1145/3643782
BibTeX
@article{Jayasuriya2024,
author = {Jayasuriya, Dhanushka and Terragni, Valerio and Dietrich, Jens and Blincoe, Kelly},
title = {Understanding the Impact of APIs Behavioral Breaking Changes on Client Applications},
journal = {Proceedings of the ACM on Software Engineering},
year = {2024},
volume = {1},
number = {FSE},
pages = {1238--1261},
doi = {10.1145/3643782}
}
EUVIMED