Automating Quantum Software Maintenance: Flakiness Detection and Root Cause Analysis

dc.contributor.authorSivaloganathan, Janakan
dc.contributor.authorJamshidi, Ainaz
dc.contributor.authorMiranskyy, Andriy
dc.contributor.authorZhang, Lei
dc.date.accessioned2024-12-11T17:02:08Z
dc.date.available2024-12-11T17:02:08Z
dc.date.issued2024-10-31
dc.description.abstractFlaky tests, which pass or fail inconsistently without code changes, are a major challenge in software engineering in general and in quantum software engineering in particular due to their complexity and probabilistic nature, leading to hidden issues and wasted developer effort. We aim to create an automated framework to detect flaky tests in quantum software and an extended dataset of quantum flaky tests, overcoming the limitations of manual methods. Building on prior manual analysis of 14 quantum software repositories, we expanded the dataset and automated flaky test detection using transformers and cosine similarity. We conducted experiments with Large Language Models (LLMs) from the OpenAI GPT and Meta LLaMA families to assess their ability to detect and classify flaky tests from code and issue descriptions. Embedding transformers proved effective: we identified 25 new flaky tests, expanding the dataset by 54%. Top LLMs achieved an F1-score of 0.8871 for flakiness detection but only 0.5839 for root cause identification. We introduced an automated flaky test detection framework using machine learning, showing promising results but highlighting the need for improved root cause detection and classification in large quantum codebases. Future work will focus on improving detection techniques and developing automatic flaky test fixes.
dc.description.urihttp://arxiv.org/abs/2410.23578
dc.format.extent5 pages
dc.genrejournal articles
dc.genrepreprints
dc.identifierdoi:10.13016/m2ewkw-lcm9
dc.identifier.urihttps://doi.org/10.48550/arXiv.2410.23578
dc.identifier.urihttp://hdl.handle.net/11603/37032
dc.language.isoen_US
dc.relation.isAvailableAtThe University of Maryland, Baltimore County (UMBC)
dc.relation.ispartofUMBC Faculty Collection
dc.relation.ispartofUMBC Information Systems Department
dc.relation.ispartofUMBC Student Collection
dc.rightsThis item is likely protected under Title 17 of the U.S. Copyright Law. Unless on a Creative Commons license, for uses protected by Copyright Law, contact the copyright holder or the author.
dc.subjectComputer Science - Software Engineering
dc.subjectComputer Science - Artificial Intelligence
dc.subjectUMBC Emerging Software Technologies Lab
dc.titleAutomating Quantum Software Maintenance: Flakiness Detection and Root Cause Analysis
dc.typeText
dcterms.creatorhttps://orcid.org/0000-0002-7342-3982
dcterms.creatorhttps://orcid.org/0000-0001-9343-3654

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
2410.23578v1.pdf
Size:
343.4 KB
Format:
Adobe Portable Document Format