Utilizing Machine Learning for Failure Prediction After Collective Changes in Automated Continuous Integration Testing
This research examines a build failure prediction model for industrial Android CI environments reflecting changes from multiple developers. It demonstrates the critical importance of chronological data splitting and the strong predictive power of previous build status, suggesting potential resource optimization through build skipping.
This study proposes a machine learning methodology to reduce costs by predicting build failures in continuous integration (CI) environments involving collective code changes from multiple developers. Experimental results indicate that previous build status and changed file types were the most critical predictors, proving that prediction-based build skipping can save an average of 2.5 hours per build.
Introduction
In modern software engineering, Continuous Integration (CI) is essential; however, for large-scale systems, performing a full build and test every time consumes immense time and computing resources. Platforms with complex layers, such as Android, often suffer from extremely long build times, frequently becoming the primary bottleneck in the entire development cycle.
To reduce these costs, ‘Build Skip’ strategies—which predict and bypass builds with a high probability of success—are gaining attention. However, whether benchmark performance in a lab environment holds in actual production is a separate issue. In particular, temporal data dependency and class imbalance issues require a sophisticated MLOps approach beyond simple model implementation.
This research briefing analyzes a study on the utility and limitations of build failure prediction models using actual industrial data. Through this, we examine the evaluation methodologies and risk management points that engineering leaders must consider when introducing AI-based pipeline optimization.
Core Findings
This study analyzed machine learning models to predict build success or failure when collective changes from multiple developers occur, targeting a large-scale industrial Android-based digital TV software project. The researchers used 1,522 build data points collected from nine projects, with a dataset characterized by severe imbalance between success (95.13%) and failure (4.87%).
For the analysis, traditional algorithms such as Logistic Regression (LR), K-Nearest Neighbors (KNN), Decision Tree (DT), and Support Vector Machine (SVM) were compared against ensemble boosting algorithms including Random Forest, XGBoost, and LightGBM. Regarding data splitting, the study demonstrated that Chronological Splitting and an Expanding Window approach reflect actual industrial environments more accurately than random splitting.
The results revealed that Previous Build Status and Changed File Types were the most influential features. The Logistic Regression model showed the best overall performance, and it was analyzed that applying prediction-based build skipping could save an average of 146.36 minutes (approx. 2.5 hours) per build. However, low recall relative to high precision means some failure cases may be missed, resulting in the cost of detection delay.
Executive Key Takeaways
- 1 1. [Core Predictors] In CI build failure prediction, random data splitting leads to overestimating performance by erroneously utilizing future data for training; in reality, securing recall for failure cases is difficult due to severe class imbalance.
- 2 2. [Operational Efficiency Benefits] When introducing machine learning for enterprise CI pipeline optimization, a build skip strategy based on service criticality should be established by analyzing the trade-off between precision and recall rather than relying on simple accuracy.
- 3 3. [Performance Evaluation Pitfalls] A challenge remains in how to quantify the actual loss to product release schedules or software quality caused by 'Detection Delay' resulting from the low recall of failure prediction models.
Analysis of Evidence Strength and Generalization Limits in Industrial CI Build Prediction Models
First, vulnerabilities in data splitting methodologies lead to distorted model performance. The researchers point out that previous studies using Random Splitting may have overestimated performance by erroneously including future data in training. According to the analysis results (refer to Table 8 of the source paper), when chronological splitting is applied, precision tends to rise while recall declines. This foreshadows the performance degradation the model will face in a real production environment and suggests that a strict evaluation framework, such as an Expanding Window, is essential for CI data with time-series characteristics.
Second, extreme Class Imbalance limits the effectiveness of the prediction model. The dataset used in the analysis consists of 95.13% successful builds and only 4.87% failed builds. Consequently, the model becomes biased toward predicting the majority class (‘success’), resulting in high precision but low recall. While this allows for the accurate skipping of hundreds of successful builds, it leads to missing critical failure cases, which can become a fatal risk depending on the system’s stability requirements.
Third, the dependency of Feature Engineering is excessively concentrated on specific variables. Analysis by the researchers (refer to Figure 7 and Table 11 of the source paper) shows that Previous Build Status and Changed File Types have an overwhelming influence. In particular, Previous Build Status emerged as the strongest predictor, implying a risk that the model may act as a simple repetitive failure detector—judging that ‘it failed last time, so it will fail this time.’ Although the researchers validated the ability to predict Novel Failures, the model’s generalization performance remains strongly coupled to a few core features.
In CI build prediction models, high Accuracy is meaningless. In a dataset where 95% of builds succeed, predicting all builds as successful yields 95% accuracy. The true risk lies in ‘False Negatives’—predicting a build that will fail as a success and skipping it—which results in ‘Detection Delay.’
According to the study, such delays can cause at least one day of lag per build cycle. Beyond simple time loss, this increases debugging complexity exponentially, as the cause of failure must be identified among hundreds of accumulated commits, acting as technical debt that degrades overall development productivity.
Feature Engineering Framework Reflecting Industrial CI Characteristics
To precisely predict CI build failures in industrial environments, the researchers designed five categories of feature sets. First, Source Code Core Features (SCF) measure quantitative code changes, such as the number of lines added/deleted and Android-specific code changes. Difference Count Features (DCF) quantify the scope of change via the number of modified files, directories, subsystems, and apps. Additionally, they established Categorized Developer Features (CDF), including developer age, gender, proficiency, experience level, and review status; File Type Features (FTF), which classify extensions of modified files; and Previous Status Features (PSF), which record the success of the immediately preceding build (refer to Table 2 of the original paper).
Analysis of the relative contribution of these features revealed a very high dependency on specific variables. Results from Random Forest-based feature importance analysis (Table 11 of the source paper), Pearson Correlation Analysis (Table 12 of the source paper), and Select K-Best analysis using ANOVA F-tests (Table 13 of the source paper) all confirmed that Previous Build Status (PSF) and Changed File Types (FTF) possess overwhelming predictive power. Specifically, PSF ranked first across all analysis metrics as the strongest predictor.
Notably, the correlation between the two most influential features, PSF and FTF, was measured at a very low average of 0.0507. This suggests that the two variables are independent and provide complementary information for predicting build failures. Conversely, SCF (measuring simple line changes) and DCF (dealing with file counts) were measured as relatively unimportant, demonstrating that ‘which files were changed’ and ‘what the previous state was’ are the keys to prediction, rather than simple increases in code volume.
Finally, the researchers verified the impact of these feature combinations on model performance. Analysis results (refer to Figure 7 of the source paper) show that PSF and FTF were the most valuable feature sets, followed by CDF and SCF. DCF showed the lowest performance in feature importance analysis. This provides engineering evidence that in industrial CI environments, securing contextual features—such as system history and file characteristics—is far more effective than quantitative indicators like code change volume for predicting build failures.
Performance Comparison: Traditional Algorithms vs. Ensemble Models
The researchers conducted an in-depth comparison between traditional machine learning algorithms and ensemble-based boosting models to optimize predictive performance on an industrial CI dataset with extreme class imbalance. Experimental results (refer to Tables 14 and 15) clearly demonstrate that complex ensemble models do not necessarily guarantee higher performance. In particular, simple linear models like Logistic Regression (LR) generally recorded superior results in terms of Recall and F1-Score, exhibiting more efficient generalization capabilities than complex models.
Detailed performance analysis shows that Logistic Regression achieved optimal performance, recording the highest levels of recall and F1-score when utilizing all feature sets. In contrast, the K-Nearest Neighbor (KNN) algorithm performed the worst, as the ‘Curse of Dimensionality’ distorted distance calculations as the number of features increased. Support Vector Machines (SVM) and Decision Trees showed valid precision in specific feature combinations but fell short of Logistic Regression in overall predictive balance.
Among ensemble boosting algorithms, AdaBoost showed high discriminative power, recording an overwhelming figure in the area under the Precision-Recall curve (PR-AUC). However, even high-performance models like XGBoost or Gradient Boosting remained around 0.51 for the F1-score, failing to achieve significant performance gains over traditional algorithms. LightGBM, in particular, struggled with training due to limited sample size and imbalanced data distribution, ranking lowest across all metrics.
The reason simple models were more effective is closely related to the characteristics of the dataset. First, in an environment with extreme class imbalance where failures account for only 4.87%, there is a very high risk of Overfitting. Complex ensemble models tended to over-optimize for the few failure cases, resulting in lower generalization performance. Second, because a few core features—such as Previous Build Status—held overwhelming influence, the advantages of boosting models in learning complex non-linear relationships were offset.
Consequently, the researchers proved that in industrial CI build prediction, the path to practical operational efficiency is not increasing model complexity, but establishing a strict evaluation framework that reflects temporal data characteristics and using simple, interpretable models like Logistic Regression.
Economic Utility of Build Skipping and Risk Estimation
The practical value of a build skip strategy lies in the reduction of computing resources and the resulting time efficiency. To quantify this, the researchers defined the Mean Build Time Saved (MBTS) metric, using a formula that multiplies the number of skipped builds by the average build time and divides by the total number of builds. Applying the optimal setting of the Logistic Regression (LR) model (Expanding Window Last Fold), 442 out of 456 builds in the test set were skipped. Using an average build time of 151 minutes, this was analyzed to save approximately 146.36 minutes (approx. 2.5 hours) per build.
Behind this efficiency lies the Detection Delay risk from false negatives noted above. In the 14 false negative cases analyzed, it was impossible to quantitatively measure the actual delay in most instances because the defect was corrected before the next build was executed. However, in one case, the defect remained uncorrected and was discovered in the next build cycle, resulting in a delay of approximately one day, which is the build cycle of that environment.
The impact of detection delay in an industrial setting varies depending on application criticality and operational context. Especially in large-scale projects where hundreds of commits are integrated daily, if failure detection is delayed due to build skipping, the difficulty of Root-Cause Analysis to pinpoint the exact location of the defect increases exponentially. This suggests that the cost of increased debugging complexity can outweigh the benefits of reduced build time.
In conclusion, the adoption of AI-based build skipping is a strategic trade-off between precision and recall. While the benefit of securing resources by accurately skipping hundreds of successful builds is clear, detection delays from missing a few failure cases can negatively impact development productivity. Therefore, engineering leaders must set an optimal balance between stability and speed, considering the organization’s risk tolerance and system criticality, rather than pursuing unconditional efficiency.
Validation Checklist Prior to AI-Based Build Skip Adoption
- Appropriateness of Evaluation Methodology: Was chronological splitting and expanding window validation performed instead of random K-fold cross-validation?
- Class Imbalance Handling Strategy: Was the model evaluated based on Precision, Recall, F1-Score, and PR-AUC rather than simple accuracy?
- Detection Delay Tolerance Setting: Has the business trade-off between the recovery cost of missing a failed build and the cost of build time savings been defined?
- Feature Independence Review: Do diverse features, such as code change scale and developer proficiency, contribute significantly to prediction beyond previous build status?
MLOps Implications of Prediction-Based Pipeline Optimization
This study illustrates typical problems encountered when attempting to reduce engineering costs via AI. In a data environment biased toward the majority class (‘success’), high precision may seem attractive, but from an operational perspective, just a few ‘missed failures (False Negatives)’ can undermine the reliability of the entire pipeline.
Notably, simple models like Logistic Regression (LR) showed better generalization performance than complex ensemble models or deep learning. This suggests that in industrial datasets with small volumes and severe class imbalance, it is far more efficient to accurately extract core features reflecting domain knowledge (e.g., previous build status) than to increase model complexity.
Ultimately, the core of AI-based build skipping is not ‘how accurately can we predict,’ but a governance issue of ‘how much failure detection delay can we tolerate.’ This is a matter that must be decided in the realm of risk management based on product criticality and release strategy, beyond technical optimization.
Operational Principles for Efficient CI Pipeline Prediction Models
Three engineering principles to follow when applying prediction-based build skipping to a production environment:
- Adopt a Conservative Skip Strategy: Apply a ‘Safety-First’ principle where builds are executed rather than skipped if any possibility of failure is detected or prediction uncertainty is high.
- Implement Dynamic Thresholds: Operate variable thresholds that maximize Recall to catch all failures during Critical phases just before release, and prioritize Precision for resource reduction during early development stages.
- Quantify the Feedback Loop: Continuously re-validate the model’s ROI by quantitatively tracking detection delay time caused by skips and the resulting increase in debugging effort.
References and Original Analysis Materials
On the use of machine learning for failure prediction after collective changes in automated continuous integration testing
Authors: Ömer Özdemir, Reyhan Aydoğan, Hasan Sözer
Venue / Publisher: Journal of Systems and Software
This research briefing was written from the source paper with the help of AI tools (AI Research Agent · MLOps, AI Research Agent · Strategy). Reviewed by Jay PARK, who is responsible for it.
Read more

Strategy & Leadership ·
Complexity Governance of Sustainable Innovation Ecosystems: An Empirical Analysis of AI-enabled Enterprise Architecture

Tech & MLOps ·
ADAZOR: Hypothesis Testing for Concept Drift Detection in Machine Learning
Tech & MLOps ·
Trust Must Survive Deployment: The Continuous Assurance Lifecycle for Adaptive AI Systems

Tech & MLOps ·
AI Safety and Security Technical Debt in AI-Enabled System Engineering