Abstract
Build systems orchestrate how human-readable source code is translated into executable programs. In a software project, source code changes can induce changes in the build system (aka. build co-changes). It is difficult for developers to identify when build co-changes are necessary due to the complexity of build systems. Prediction of build co-changes works well if there is a sufficient amount of training data to build a model. However, in practice, for new projects, there exists a limited number of changes. Using training data from other projects to predict the build co-changes in a new project can help improve the performance of the build co-change prediction. We refer to this problem as cross-project build co-change prediction.
In this paper, we propose CroBuild, a novel cross-project build co-change prediction approach that iteratively learns new classifiers. CroBuild constructs an ensemble of classifiers by iteratively building classifiers and assigning them weights according to its prediction error rate. Given that only a small proportion of code changes are build co-changing, we also propose an imbalance-aware approach that learns a threshold boundary between those code changes that are build co-changing and those that are not in order to construct classifiers in each iteration. To examine the benefits of CroBuild, we perform experiments on 4 large datasets including Mozilla, Eclipse-core, Lucene, and Jazz, comprising a total of 50,884 changes. On average, across the 4 datasets, CroBuild achieves a F1-score of up to 0.408. We also compare CroBuild with other approaches such as a basic model, AdaBoost proposed by Freund et al., and TrAdaBoost proposed by Dai et al. On average, across the 4 datasets, the CroBuild approach yields an improvement in F1-scores of 41.54%, 36.63%, and 36.97% over the basic model, AdaBoost, and TrAdaBoost, respectively.
| Original language | English |
|---|---|
| Title of host publication | 2015 IEEE 22nd International Conference on Software Analysis, Evolution, and Reengineering (SANER) - Proceedings |
| Subtitle of host publication | March 2-6, 2015 Montréal, Canada |
| Editors | Yann-Gaël Guéhéneuc, Bram Adams, Alexander Serebrenik |
| Place of Publication | Piscataway NJ USA |
| Publisher | IEEE, Institute of Electrical and Electronics Engineers |
| Pages | 311-320 |
| Number of pages | 10 |
| ISBN (Electronic) | 9781479984695 |
| DOIs | |
| Publication status | Published - 2015 |
| Externally published | Yes |
| Event | IEEE International Conference on Software Analysis, Evolution, and Reengineering 2015 - Montreal, Canada Duration: 2 Mar 2015 → 6 Mar 2015 Conference number: 22nd http://www.saner.polymtl.ca/doku.php?id=en:start https://ieeexplore.ieee.org/xpl/conhome/7066219/proceeding (Proceedings) |
Conference
| Conference | IEEE International Conference on Software Analysis, Evolution, and Reengineering 2015 |
|---|---|
| Abbreviated title | SANER 2015 |
| Country/Territory | Canada |
| City | Montreal |
| Period | 2/03/15 → 6/03/15 |
| Internet address |
Keywords
- Build Co-change Prediction
- Cross-project
- Imbalance Data
- Transfer Learning
Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver