arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.20284cs.SE
收藏

PhantomRun: 针对嵌入式开源软件编译错误的自动修复

PhantomRun: Auto Repair of Compilation Errors in Embedded Open Source Software

Ericsson AB(爱立信公司);KTH Royal Institute of Technology(皇家理工学院);Carleton University(卡尔顿大学);Mälardalen University(马拉达伦大学)

Han Fu, Andreas Ermedahl, Sigrid Eldh, Kristian Wiklund, Philipp Haller, Cyrille Artho

AI总结:

PhantomRun利用大型语言模型自动修复嵌入式开源软件的编译错误,成功修复了45%的CI失败案例。

摘要:

在嵌入式软件的持续集成(CI)管道中,编译失败时会消耗大量开发时间进行调试。我们研究了四个主要的开源嵌入式系统项目,这些项目在CI运行中产生了超过4000次构建失败。我们发现硬件依赖是编译失败的主要原因,其次是语法错误和构建脚本问题。大多数修复需要相对较小的更改,这使得自动化修复在能够处理多样化的设置和缺乏测试数据的情况下可能适用。在本文中,我们提出了PhantomRun,一个利用大型语言模型(LLMs)生成和验证CI编译失败修复的自动化框架。该框架通过为GitHub Actions和GitLab CI提供适配层以及四种不同的构建系统,解决了嵌入式系统项目中多样化的构建基础设施和工具链的挑战。PhantomRun利用构建日志、源代码、历史修复和编译器错误信息,通过LLMs合成修复方案。我们的评估表明,PhantomRun在目标项目中成功修复了高达45%的CI编译失败,证明了基于LLM的修复在嵌入式系统CI管道中的可行性。

英文摘要:

Continuous Integration (CI) pipelines for embedded software sometimes fail during compilation, consuming significant developer time for debugging. We study four major open-source embedded system projects, spanning over 4000 build failures from the project's CI runs. We find that hardware dependencies account for the majority of compilation failures, followed by syntax errors and build-script issues. Most repairs need relatively small changes, making automated repair potentially suitable as long as the diverse setups and lack of test data can be handled. In this paper, we present PhantomRun, an automated framework that leverages large language models (LLMs) to generate and validate fixes for CI compilation failures. The framework addresses the challenge of diverse build infrastructures and tool chains across embedded system projects by providing an adaptation layer for GitHub Actions and GitLab CI and four different build systems. PhantomRun utilizes build logs, source code, historical fixes, and compiler error messages to synthesize fixes using LLMs. Our evaluations show that PhantomRun successfully repairs up to 45% of CI compilation failures across the targeted projects, demonstrating the viability of LLM-based repairs for embedded-system CI pipelines.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑