Skip to main navigation Skip to search Skip to main content

Enhancing Software Defect Prediction in Ansible Scripts Using Code-Smell-Guided Prompting with Large Language Models in Edge-Cloud Infrastructures

  • Hyunsun Hong
  • , Sungu Lee
  • , Duksan Ryu
  • , Jongmoon Baik*
  • *Corresponding author for this work
  • Korea Advanced Institute of Science and Technology

Research output: Contribution to conferenceConference paperpeer-review

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 languageEnglish
Title of host publicationCurrent Trends in Web Engineering - ICWE 2024 International Workshops, BECS and WALS, 2024, Revised Selected Papers
EditorsCesare Pautasso, Patrick Marcel
PublisherSpringer Science and Business Media Deutschland GmbH
Pages30-42
Number of pages13
ISBN (Print)9783031751097
DOIs
StatePublished - 2025
Event4th 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.172024.06.20

Publication series

NameCommunications in Computer and Information Science
Volume2188
ISSN (Print)1865-0929
ISSN (Electronic)1865-0937

Conference

Conference4th 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/TerritoryFinland
CityTampere
Period24.06.1724.06.20

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 9 - Industry, Innovation, and Infrastructure
    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