Abstract
In edge-cloud systems, the quality of infrastructure deployment is crucial for delivering high-quality services, especially when using popular Infrastructure as Code (IaC) tools like Ansible. Ensuring the reliability of such large-scale code systems poses a significant challenge due to the limited testing resources. Software defect prediction (SDP) addresses this limitation by identifying defect-prone software modules, allowing developers to prioritize testing resources effectively. This paper introduces a Large Language Model (LLM)-based approach for SDP in Ansible scripts with Code-Smell-guided Prompting (CSP). CSP leverages code smell indicators extracted from Ansible scripts to refine prompts given to LLMs, enhancing their understanding of code structure concerning defects. Our experimental results demonstrate that CSP variants, particularly the Chain of Thought CSP (CoT-CSP), outperform traditional prompting strategies, as evidenced by improved F1-scores and Recall. To the best of our knowledge, this is the first attempt to employ LLMs for SDP in Ansible scripts. By employing a code smell-guided prompting strategy tailored for Ansible, we anticipate that the proposed method will enhance software quality assurance and reliability, thereby increasing the overall reliability of edge-cloud systems.
| Original language | English |
|---|---|
| Title of host publication | Current Trends in Web Engineering - ICWE 2024 International Workshops, BECS and WALS, 2024, Revised Selected Papers |
| Editors | Cesare Pautasso, Patrick Marcel |
| Publisher | Springer Science and Business Media Deutschland GmbH |
| Pages | 30-42 |
| Number of pages | 13 |
| ISBN (Print) | 9783031751097 |
| DOIs | |
| State | Published - 2025 |
| Event | 4th International Workshop on Big Data Driven Edge Cloud Services, BECS 2024 and 3rd International Workshop on Web Applications for Life Sciences, WALS 2024 held in conjunction with the International Conference on Web Engineering, ICWE 2024 - Tampere, Finland Duration: 2024.06.17 → 2024.06.20 |
Publication series
| Name | Communications in Computer and Information Science |
|---|---|
| Volume | 2188 |
| ISSN (Print) | 1865-0929 |
| ISSN (Electronic) | 1865-0937 |
Conference
| Conference | 4th International Workshop on Big Data Driven Edge Cloud Services, BECS 2024 and 3rd International Workshop on Web Applications for Life Sciences, WALS 2024 held in conjunction with the International Conference on Web Engineering, ICWE 2024 |
|---|---|
| Country/Territory | Finland |
| City | Tampere |
| Period | 24.06.17 → 24.06.20 |
UN SDGs
This output contributes to the following UN Sustainable Development Goals (SDGs)
-
SDG 9 Industry, Innovation, and Infrastructure
Keywords
- Ansible
- Edge-cloud
- Large Language Models
- Software Defect Prediction
Quacquarelli Symonds(QS) Subject Topics
- Computer Science & Information Systems
- Mathematics
Fingerprint
Dive into the research topics of 'Enhancing Software Defect Prediction in Ansible Scripts Using Code-Smell-Guided Prompting with Large Language Models in Edge-Cloud Infrastructures'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver