arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.05379cs.SE
收藏

Dockerfile 不稳定性:特征分析与修复

Dockerfile Flakiness: Characterization and Repair

Taha Shabani, Noor Nashid, Parsa Alian, Ali Mesbah

AI总结:

针对 Dockerfile 不稳定性问题,本研究首次全面分析其特征并提出分类法,进而开发结合静态动态分析、相似性检索与 LLM 迭代反馈的 FLAKIDOCK 框架,修复准确率达 73.55%,显著优于现有工具。

摘要:

Dockerfile 不稳定性——由外部依赖和不断变化的环境导致的不可预测的临时构建失败——会削弱部署可靠性并增加调试开销。与传统 Dockerfile 问题不同,不稳定性的发生无需修改 Dockerfile 本身,这使其解决变得复杂。在本研究中,我们首次对 Dockerfile 不稳定性展开全面研究,对 8132 个 Docker 化项目进行了为期九个月的分析,结果显示约 10% 的项目存在不稳定行为。我们提出了一个分类法,对常见的不稳定性原因进行分类,包括依赖错误和服务器连接问题。现有工具由于依赖预定义规则且泛化能力有限,无法有效应对这些挑战。为克服这些局限性,我们引入 FLAKIDOCK,这是一种结合静态和动态分析、相似性检索以及由大型语言模型(LLMs)驱动的迭代反馈循环的新型修复框架。我们的评估表明,FLAKIDOCK 实现了 73.55% 的修复准确率,显著优于最先进的工具和基线。

英文摘要:

Dockerfile flakiness-unpredictable temporal build failures caused by external dependencies and evolving environments-undermines deployment reliability and increases debugging overhead. Unlike traditional Dockerfile issues, flakiness occurs without modifications to the Dockerfile itself, complicating its resolution. In this work, we present the first comprehensive study of Dockerfile flakiness, featuring a nine-month analysis of 8,132 Dockerized projects, revealing that around 10% exhibit flaky behavior. We propose a taxonomy categorizing common flakiness causes, including dependency errors and server connectivity issues. Existing tools fail to effectively address these challenges due to their reliance on pre-defined rules and limited generalizability. To overcome these limitations, we introduce FLAKIDOCK, a novel repair framework combining static and dynamic analysis, similarity retrieval, and an iterative feedback loop powered by Large Language Models (LLMs). Our evaluation demonstrates that FLAKIDOCK achieves a repair accuracy of 73.55%, significantly surpassing state-of-the-art tools and baselines.

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

↑