Analysis and Propagation of Feature Revisions in Preprocessor-based Software Product Lines
Authors:
- 1 March 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 284-295
Abstract
Preprocessor-based software product lines (SPLs) are used to deal with evolution in space, in which features (so-called configuration options)—annotated in source code with #ifdefs—are included, removed, and systematically reused. Inevitably, feature implementations also evolve over time, i.e., when existing features are revised. Nowadays, Version control systems (VCSs) are well-integrated into SPL development processes for versioning support of releases. Changes to existing features in one version, a.k.a. release of an SPL, usually developed in a branch, frequently need to be propagated to other active releases. However, there is no automated support for analyzing and propagating features in SPL releases. For instance, VCSs can only propagate changes at the commit level, but miss support at the feature level, i.e., the building blocks of SPLs. Manually analyzing and propagating a version of a feature, i.e., a feature revision, through #ifdefs is risky, time-consuming, and error-prone because a feature can be interacting with multiple features and it can be spread in multiple blocks of code across different files. We thus present a novel and tool-supported approach for the analysis and propagation of feature revisions. We evaluated our approach quantitatively by computing its correct behavior and runtime. Our approach analyzes and propagates a feature implementation in ≈63 seconds, with, on average, precision and recall of 99%. In total, we propagated 3,134 features in space and time between 200 pairs of releases on four real-world preprocessor-based SPLs. In addition, we qualitatively evaluated the usefulness of our tool support by conducting interviews with five experienced core developers of three popular preprocessor-based SPLs. The qualitative results confirm that our tool support is useful to speed up the analysis and propagation of feature revisions.Keywords
Funding Information
- Austrian Science Fund
This publication has 49 references indexed in Scilit:
- What is a feature?2015
- Tuning GitHub for SPL development2015
- The shape of feature code: an analysis of twenty C-preprocessor-based systemsSoftware and Systems Modeling, 2015
- Coevolution of variability models and related software artifactsEmpirical Software Engineering, 2015
- Software change impact analysis: an approach to differentiate type of change to minimise regression test selectionInternational Journal of Computer Applications in Technology, 2015
- A Classification and Survey of Analysis Strategies for Software Product LinesACM Computing Surveys, 2014
- Do background colors improve program comprehension in the #ifdef hell?Empirical Software Engineering, 2012
- Using Java CSP Solvers in the Automated Analyses of Feature ModelsLecture Notes in Computer Science, 2006
- ChiantiACM SIGPLAN Notices, 2004
- Using version control data to evaluate the impact of software tools: a case study of the Version EditorIEEE Transactions on Software Engineering, 2002