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

基础架构中的bug作为代码

Bugs in Infrastructure as Code

Akond Rahman, Sarah Elder, Faysal Hossain Shezan, Vanessa Frost, Jonathan Stallings, Laurie Williams

摘要:

基础架构即代码(IaC)脚本用于自动化软件开发和部署基础架构的维护和配置。IaC脚本本质上可能很复杂,包含数百行代码,导致难以调试的缺陷,并导致大规模的系统差异,例如大规模的服务中断。IaC脚本的使用越来越流行,但这些脚本中出现的缺陷的性质还没有被系统地分类。缺陷的系统分类可以告知从业者过程改进的机会,以减轻IaC脚本中的缺陷。本文的目标是帮助软件从业者改善他们的开发过程中的基础设施作为代码(IaC)脚本的缺陷类别分类IaC脚本的提交消息和问题报告描述的定性分析的基础上。我们挖掘开源版本控制系统收集了四个组织,即Mirantis,Mozilla,Openstack和维基共享资源进行我们的研究。我们使用1021、3074、7808和972个提交,分别映射到165、580、1383和296个IaC脚本,这些脚本是从Mirantis、Mozilla、Openstack和Wikimedia Commons收集的。与89评级,我们应用的正交缺陷分类(ODC)方法的缺陷类型属性的缺陷进行分类。我们还回顾了以前的文献,使用ODC分类缺陷,并比较IaC脚本与26个非IaC软件系统的缺陷类别分布。分别对于Mirantis、Mozilla、Openstack和Wikimedia Commons,我们观察到(i)49.3%、36.5%、57.6%和62.7%的IaC缺陷包含语法和配置相关缺陷;(ii)与先前研究的非IaC软件相比,IaC脚本中语法和配置相关缺陷更普遍。

英文摘要:

Infrastructure as code (IaC) scripts are used to automate the maintenance and configuration of software development and deployment infrastructure. IaC scripts can be complex in nature, containing hundreds of lines of code, leading to defects that can be difficult to debug, and lead to wide-scale system discrepancies such as service outages at scale. Use of IaC scripts is getting increasingly popular, yet the nature of defects that occur in these scripts have not been systematically categorized. A systematic categorization of defects can inform practitioners about process improvement opportunities to mitigate defects in IaC scripts. The goal of this paper is to help software practitioners improve their development process of infrastructure as code (IaC) scripts by categorizing the defect categories in IaC scripts based upon a qualitative analysis of commit messages and issue report descriptions. We mine open source version control systems collected from four organizations namely, Mirantis, Mozilla, Openstack, and Wikimedia Commons to conduct our research study. We use 1021, 3074, 7808, and 972 commits that map to 165, 580, 1383, and 296 IaC scripts, respectively, collected from Mirantis, Mozilla, Openstack, and Wikimedia Commons. With 89 raters we apply the defect type attribute of the orthogonal defect classification (ODC) methodology to categorize the defects. We also review prior literature that have used ODC to categorize defects, and compare the defect category distribution of IaC scripts with 26 non-IaC software systems. Respectively, for Mirantis, Mozilla, Openstack, and Wikimedia Commons, we observe (i) 49.3%, 36.5%, 57.6%, and 62.7% of the IaC defects to contain syntax and configuration-related defects; (ii) syntax and configuration-related defects are more prevalent amongst IaC scripts compared to that of previously-studied non-IaC software.

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

↑