Quantifying the impact of flaky test noise on supervised machine learning-based test case prioritization in continuous integration environments
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student thesis
Abstract [en]
Background. Supervised machine learning (ML) is increasingly used for test case prioritization (TCP) in continuous integration (CI). These techniques rely on historical test results, but flaky tests can produce unreliable verdicts and reduce the quality of the training data. Although previous studies have examined flaky tests and test prioritization separately, the effect of flaky-test noise on supervised ML-based TCP has not been well studied.
Objectives. This thesis investigates how increasing levels of simulated flaky test noise affect supervised ML-based TCP, identifies the first observed noise levels where the mean effectiveness of these techniques reaches or falls below the non-ML baselines, and determines which supervised technique is most robust to noise.
Methods. A controlled experiment was conducted using 24 open-source Java projects from the TCP-CI benchmark. Noise was added to historical training verdicts at levels from 0% to 50%. Four supervised techniques (Random Forest, XGBoost, LightGBM, and Naive Bayes) were compared with three non-ML baselines using APFDc as the primary measure and APFD as a secondary measure.
Results. Random Forest, XGBoost, and LightGBM showed significant performance reductions at the first tested non-zero noise level of 5%. Naive Bayes was less sensitive to noise, with significant reductions appearing only at higher noise levels. At 50% noise, performance decreased by 42.26% for Random Forest, 43.01% for XGBoost, 39.61% for LightGBM, and 12.76% for Naive Bayes. Random Forest performed best with clean data, while among the four supervised techniques, NaiveBayes was the most robust under high noise according to the APFDc criterion used in this study. Against LatestFail, Random Forest and XGBoost reached their first observed crossover at 5% noise under both APFDc and APFD. LightGBM was already below LatestFail under the clean APFDc condition but crossed it at 5% under APFD, while Naive Bayes was already below LatestFail under the clean conditionfor both metrics.
Conclusion. The results show that unreliable historical test verdicts can significantly reduce the effectiveness of supervised ML-based TCP. The technique that performs best with clean data may not be the most robust under noisy conditions. Therefore, the quality of historical test data should be considered alongside the choice of ML algorithm when applying ML-based TCP in CI environments.
Place, publisher, year, edition, pages
2026. , p. 61
Keywords [en]
Supervised ML-based TCP, Continuous Integration, Flaky Tests, Empirical Software Engineering.
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:bth-30687OAI: oai:DiVA.org:bth-30687DiVA, id: diva2:2114319
Subject / course
PA2534 Master's Thesis (120 credits) in Software Engineering
Educational program
PAADA Master Qualification Plan in Software Engineering 120,0 hp
Supervisors
2026-11-022026-11-012026-11-02Bibliographically approved