Author
Abstract
This study presents a practical and reproducible pipeline for managing flaky test failures directly from CI logs. We parse raw log streams online using Drain/Drain3 to create stable templates, aggregate them within per-failure windows, and vectorize the data using TF-IDF over template n-grams and basic statistics. Next, we apply HDBSCAN to group recurrent failure families into human-readable cluster cards, which include representative examples, dominant templates, and default routing rules. For systems with a strong sequential structure, we can optionally train an LSTM model in the style of DeepLog on template sequences to detect off-pattern executions and identify likely next events. The pipeline is designed for low-label settings, prioritizes explainability, and integrates governance through versioned rules that control actions like quarantine, environment health probes, and owner assignment. We outline a reproducible evaluation plan for teams to use in production contexts, focusing on clustering coverage and purity, the CI dashboard's signal-to-noise ratio (SNR), reductions in median time-to-recover/repair (MTTR), and the rate of duplicate investigations. We provide illustrative (neutral) metrics to demonstrate how to report improvements without revealing proprietary data and discuss a negative case that documents a rule which initially reduced reruns but increased false quarantines; this was later corrected by adding a confirmation step. Overall, by combining robust online parsing, density-based clustering, and optional sequence modeling, we transform noisy failures into explainable, routable families that stabilize delivery at scale while remaining compatible with standard CI/CD tooling.
Suggested Citation
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:das:njaigs:v:8:y:2025:i:02:p:209-218:id:416. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Open Knowledge (email available below). General contact details of provider: https://newjaigs.com/index.php/JAIGS/ .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.