The nature of build changes
Autor: | Stefanie Beyer, Shane McIntosh, Martin Pinzger, Christian Macho |
---|---|
Rok vydání: | 2021 |
Předmět: |
Dependency (UML)
Java business.industry Computer science 020207 software engineering System requirements specification 02 engineering and technology computer.software_genre Software Code refactoring 020204 information systems Management system 0202 electrical engineering electronic engineering information engineering Code (cryptography) Plug-in Software engineering business computer computer.programming_language |
Zdroj: | Empirical Software Engineering. 26 |
ISSN: | 1573-7616 1382-3256 |
DOI: | 10.1007/s10664-020-09926-4 |
Popis: | Build systems are an essential part of modern software projects. As software projects change continuously, it is crucial to understand how the build system changes because neglecting its maintenance can, at best, lead to expensive build breakage, or at worst, introduce user-reported defects due to incorrectly compiled, linked, packaged, or deployed official releases. Recent studies have investigated the (co-)evolution of build configurations and reasons for build breakage; however, the prior analysis focused on a coarse-grained outcome (i.e., either build changing or not). In this paper, we present BuildDiff, an approach to extract detailed build changes from Maven build files and classify them into 143 change types. In a manual evaluation of 400 build-changing commits, we show that BuildDiff can extract and classify build changes with average precision, recall, and f1-scores of 0.97, 0.98, and 0.97, respectively. We then present two studies using the build changes extracted from 144 open source Java projects to study the frequency and time of build changes. The results show that the top-10 most frequent change types account for 51% of the build changes. Among them, changes to version numbers and changes to dependencies of the projects occur most frequently. We also observe frequently co-occurring changes, such as changes to the source code management definitions, and corresponding changes to the dependency management system and the dependency declaration. Furthermore, our results show that build changes frequently occur around release days. In particular, critical changes, such as updates to plugin configuration parts and dependency insertions, are performed before a release day. The contributions of this paper lay in the foundation for future research, such as for analyzing the (co-)evolution of build files with other artifacts, improving effort estimation approaches by incorporating necessary modifications to the build system specification, or automatic repair approaches for configuration code. Furthermore, our detailed change information enables improvements of refactoring approaches for build configurations and improvements of prediction models to identify error-prone build files. |
Databáze: | OpenAIRE |
Externí odkaz: |