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

一种衡量基础设施即代码脚本质量的框架

A Framework for Measuring the Quality of Infrastructure-as-Code Scripts

Pandu Ranga Reddy Konala, Vimal Kumar, David Bainbridge, Junaid Haseeb

AI总结:

本文提出一个以 Ansible 仓库为例的 IaC 代码质量评估框架,通过分析 Ansible Galaxy 数据集揭示质量变化趋势,为从业者提供标准化评估与改进工具。

摘要:

基础设施即代码(IaC)已成为现代软件开发不可或缺的一部分,能够实现计算环境的自动化与一致性配置。IaC 脚本的迅速增长凸显了对更佳代码质量评估方法的需求。本文提出了一个新的 IaC 代码质量框架,并特别以 Ansible 仓库作为基础进行展示。通过分析来自 Ansible Galaxy 的全面仓库数据集,我们应用该框架从多个属性维度评估代码质量。对应用于 Ansible Galaxy 仓库的代码质量指标分析揭示了随时间变化的趋势,表明在元数据和错误处理等方面有所改善,同时也突显了在其他方面(如复杂度和自动化程度)的下降。该框架为从业者提供了一个系统性工具,用于评估和提升 IaC 脚本,促进标准化并推动持续改进。它还为 IaC 代码质量的进一步研究提供了标准化基础。

英文摘要:

Infrastructure as Code (IaC) has become integral to modern software development, enabling automated and consistent configuration of computing environments. The rapid proliferation of IaC scripts has highlighted the need for better code quality assessment methods. This paper proposes a new IaC code quality framework specifically showcased for Ansible repositories as a foundation. By analyzing a comprehensive dataset of repositories from Ansible Galaxy, we applied our framework to evaluate code quality across multiple attributes. The analysis of our code quality metrics applied to Ansible Galaxy repositories reveal trends over time indicating improvements in areas such as metadata and error handling, while highlighting declines in others such as sophistication and automation. The framework offers practitioners a systematic tool for assessing and enhancing IaC scripts, fostering standardization and facilitating continuous improvement. It also provides a standardized foundation for further work into IaC code quality.

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

↑