BUILDFAST: History-Aware Build Outcome Prediction for Fast Feedback and Reduced Cost in Continuous Integration
Bihuan Chen, Linlin Chen, Chen Zhang, Xin Peng
Abstract
Long build times in continuous integration (CI) can greatly increase the cost in human and computing resources, and thus become a common barrier faced by software organizations adopting CI. Build outcome prediction has been proposed as one of the remedies to reduce such cost. However, the state-of-the-art approaches have a poor prediction performance for failed builds, and are not designed for practical usage scenarios. To address the problems, we first conduct an empirical study on 2,590,917 builds to characterize build times in realworld projects, and a survey with 75 developers to understand their perceptions about build outcome prediction. Then, motivated by our study and survey results, we propose a new history-aware approach, named BuildFast, to predict CI build outcomes cost-efficiently and practically. We develop multiple failure-specific features from closely related historical builds via analyzing build logs and changed files, and propose an adaptive prediction model to switch between two models based on the build outcome of the previous build. We investigate a practical online usage scenario of BuildFast, where builds are predicted in chronological order, and measure the benefit from correct predictions and the cost from incorrect predictions. Our experiments on 20 projects have shown that BuildFast improved the state-of-the-art by 47.5% in F1-score for failed builds.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
11 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Accelerating Continuous Integration with Parallel Batch Testing cites What helped, and what did not? An Evaluation of the Strategies to Improve Continuous Integration
- Accelerating Continuous Integration with Parallel Batch Testing cites A cost-efficient approach to building in continuous integration
- BuildSonic: Detecting and Repairing Performance-Related Configuration Smells for Continuous Integration Builds cites What helped, and what did not? An Evaluation of the Strategies to Improve Continuous Integration
- BuildSonic: Detecting and Repairing Performance-Related Configuration Smells for Continuous Integration Builds cites A cost-efficient approach to building in continuous integration
- Resource Usage and Optimization Opportunities in Workflows of GitHub Actions cites What helped, and what did not? An Evaluation of the Strategies to Improve Continuous Integration
- Resource Usage and Optimization Opportunities in Workflows of GitHub Actions cites Continuous test suite failure prediction
- Resource Usage and Optimization Opportunities in Workflows of GitHub Actions cites A cost-efficient approach to building in continuous integration
- What helped, and what did not? An Evaluation of the Strategies to Improve Continuous Integration cites A cost-efficient approach to building in continuous integration
- Continuous test suite failure prediction cites A cost-efficient approach to building in continuous integration
Cited by top-tier papers11
- What helped, and what did not? An Evaluation of the Strategies to Improve Continuous IntegrationXianhao Jin, Francisco ServantICSE 2021 · 26 citations
- Continuous test suite failure predictionCong Pan, Michael PradelISSTA 2021 · 22 citations
- Resource Usage and Optimization Opportunities in Workflows of GitHub ActionsIslem Bouzenia, Michael PradelICSE 2024 · 15 citations
- BuildSonic: Detecting and Repairing Performance-Related Configuration Smells for Continuous Integration BuildsChen Zhang, Bihuan Chen, Junhao Hu, Xin Peng et al.ASE 2022 · 11 citations
- Accelerating Continuous Integration with Parallel Batch TestingEmad Fallahzadeh, Amir Hossein Bavand, Peter C. RigbyFSE 2023 · 10 citations
Builds on1
Related papers
- RavenBuild: Context, Relevance, and Dependency Aware Build Outcome PredictionGengyi Sun, Sarra Habchi, Shane McIntoshFSE 2024 · 8 citations
- Commit Artifact Preserving Build PredictionGuoqing Wang, Zeyu Sun, Yizhou Chen, Yifan Zhao et al.ISSTA 2024 · 3 citations
- Buildsheriff: Change-Aware Test Failure Triage for Continuous Integration BuildsChen Zhang, Bihuan Chen, Xin Peng, Wenyun ZhaoICSE 2022 · 10 citations
- Understanding and Predicting Docker Build Duration: An Empirical Study of Containerized Workflow of OSS ProjectsYiwen Wu, Yang Zhang, Kele Xu, Tao Wang et al.ASE 2022 · 13 citations
- Towards language-independent Brown Build DetectionDoriane Olewicki, Mathieu Nayrolles, Bram AdamsICSE 2022 · 17 citations
