TY - GEN
T1 - TerraMetrics
T2 - 32nd IEEE/ACM International Conference on Program Comprehension, ICPC 2024
AU - Begoug, Mahi
AU - Chouchen, Moataz
AU - Ouni, Ali
N1 - Publisher Copyright:
© 2024 ACM.
PY - 2024/6/13
Y1 - 2024/6/13
N2 - Infrastructure-as-Code (IaC) constitutes a pivotal DevOps methodology, leading edge of software deployment onto cloud platforms. IaC relies on source code files rather than manual configuration to manage the infrastructure of a software system. Terraform, an IaC tool and its declarative configuration language named HCL, has recently garnered considerable attention among IaC practitioners. Like other software artefacts, Terraform files could be affected by misconfigurations, faults, and smells. Therefore, DevOps practitioners might benefit from a quality assurance tool to help them perform quality assurance activities on Terrafrom artefacts. This paper introduces TerraMetrics, an open-source tool designed to characterize the quality of Terraform artefacts by providing a catalogue of 40 quality metrics. TerraMetrics leverages the Terraform Abstract Syntax Tree (AST) to extract the metric list, offering a potentially enduring solution compared to conventional regular expressions. This tool comprises three main components: (i) a parser transforming HCL code into an AST, (ii) visitors that traverse the AST nodes to extract the metrics, and (iii) collectors for storing the collected metrics in JSON format. The TerraMetrics tool is publicly available as an Open Source tool, with a demo video, at: https://github.com/stilab-ets/terametrics.
AB - Infrastructure-as-Code (IaC) constitutes a pivotal DevOps methodology, leading edge of software deployment onto cloud platforms. IaC relies on source code files rather than manual configuration to manage the infrastructure of a software system. Terraform, an IaC tool and its declarative configuration language named HCL, has recently garnered considerable attention among IaC practitioners. Like other software artefacts, Terraform files could be affected by misconfigurations, faults, and smells. Therefore, DevOps practitioners might benefit from a quality assurance tool to help them perform quality assurance activities on Terrafrom artefacts. This paper introduces TerraMetrics, an open-source tool designed to characterize the quality of Terraform artefacts by providing a catalogue of 40 quality metrics. TerraMetrics leverages the Terraform Abstract Syntax Tree (AST) to extract the metric list, offering a potentially enduring solution compared to conventional regular expressions. This tool comprises three main components: (i) a parser transforming HCL code into an AST, (ii) visitors that traverse the AST nodes to extract the metrics, and (iii) collectors for storing the collected metrics in JSON format. The TerraMetrics tool is publicly available as an Open Source tool, with a demo video, at: https://github.com/stilab-ets/terametrics.
KW - AST
KW - HCL
KW - Infrastructure-as-Code
KW - Terraform
KW - quality metrics
UR - https://www.scopus.com/pages/publications/85197319912
U2 - 10.1145/3643916.3644439
DO - 10.1145/3643916.3644439
M3 - Contribution to conference proceedings
AN - SCOPUS:85197319912
T3 - IEEE International Conference on Program Comprehension
SP - 450
EP - 454
BT - Proceedings - 2024 32nd IEEE/ACM International Conference on Program Comprehension, ICPC 2024
PB - IEEE Computer Society
Y2 - 15 April 2024 through 16 April 2024
ER -