TY - GEN
T1 - Efficient Detection of Intermittent Job Failures Using Few-Shot Learning
AU - Aidasso, Henri
AU - Bordeleau, Francis
AU - Tizghadam, Ali
N1 - Publisher Copyright:
© 2025 IEEE.
PY - 2025
Y1 - 2025
N2 - One of the main challenges developers face in the use of continuous integration (CI) and deployment pipelines is the occurrence of intermittent job failures, which result from unexpected non-deterministic issues (e.g., flaky tests or infrastructure problems) rather than regular code-related errors such as bugs. Prior studies developed machine learning (ML) models trained on large datasets of job logs to classify job failures as either intermittent or regular. As an alternative to costly manual labeling of large datasets, the state-of-the-art (SOTA) approach leveraged a heuristic based on non-deterministic job reruns. However, this method mislabels intermittent job failures as regular in contexts where rerunning suspicious job failures is not an explicit policy, and therefore limits the SOTA's performance in practice. In fact, our manual analysis of 2,125 job failures from 5 industrial and 1 open-source projects reveals that, on average, 32 % of intermittent job failures are mislabeled as regular. To address these limitations, this paper introduces a novel approach to intermittent job failure detection using fewshot learning (FSL). Specifically, we fine-tune a small language model using a few number of manually labeled log examples to generate rich embeddings, which are then used to train an ML classification head. Our FSL-based approach achieves 70 - 88% F1-score with only 12 shots in all projects, outperforming the SOTA, which proved ineffective (34-52% F1-score) in 4 projects. Overall, this study underlines the importance of data quality over quantity and provides a more efficient and practical framework for the detection of intermittent job failures in organizations.
AB - One of the main challenges developers face in the use of continuous integration (CI) and deployment pipelines is the occurrence of intermittent job failures, which result from unexpected non-deterministic issues (e.g., flaky tests or infrastructure problems) rather than regular code-related errors such as bugs. Prior studies developed machine learning (ML) models trained on large datasets of job logs to classify job failures as either intermittent or regular. As an alternative to costly manual labeling of large datasets, the state-of-the-art (SOTA) approach leveraged a heuristic based on non-deterministic job reruns. However, this method mislabels intermittent job failures as regular in contexts where rerunning suspicious job failures is not an explicit policy, and therefore limits the SOTA's performance in practice. In fact, our manual analysis of 2,125 job failures from 5 industrial and 1 open-source projects reveals that, on average, 32 % of intermittent job failures are mislabeled as regular. To address these limitations, this paper introduces a novel approach to intermittent job failure detection using fewshot learning (FSL). Specifically, we fine-tune a small language model using a few number of manually labeled log examples to generate rich embeddings, which are then used to train an ML classification head. Our FSL-based approach achieves 70 - 88% F1-score with only 12 shots in all projects, outperforming the SOTA, which proved ineffective (34-52% F1-score) in 4 projects. Overall, this study underlines the importance of data quality over quantity and provides a more efficient and practical framework for the detection of intermittent job failures in organizations.
KW - Classification
KW - Continuous Integration
KW - Few-Shot Learning
KW - Intermittent Job Failures
KW - Small Language Models
UR - https://www.scopus.com/pages/publications/105022435590
U2 - 10.1109/ICSME64153.2025.00064
DO - 10.1109/ICSME64153.2025.00064
M3 - Contribution to conference proceedings
AN - SCOPUS:105022435590
T3 - Proceedings - 2025 IEEE International Conference on Software Maintenance and Evolution, ICSME 2025
SP - 632
EP - 643
BT - Proceedings - 2025 IEEE International Conference on Software Maintenance and Evolution, ICSME 2025
PB - Institute of Electrical and Electronics Engineers Inc.
T2 - 41st IEEE International Conference on Software Maintenance and Evolution, ICSME 2025
Y2 - 7 September 2025 through 12 September 2025
ER -