Generative AI-Powered Automation in DevOps Workflows
DOI:
https://doi.org/10.63345/sjaibt.v1.i3.106Keywords:
generative AI, DevOps automation, infrastructure as code, retrieval-augmented generation, policy as code, continuous integrationAbstract
The generative models are able to generate infrastructure code, repair broken pipelines and create operational documents. However, generation is unreliable in an auditable environment where every change must be traceable. In this study, the generative automation layer is proposed consisting of (i) retrieval of organization-specific context, (ii) large language model (LLM) generator, (iii) validation in sandbox with repair loop and (iv) policy gate preventing non-compliant changes before human review. The layer was evaluated over 240 tasks involving Terraform authoring, CI pipeline repair, test generation and release documentation. Comparison was made to manual work, templates, zero-shot LLM and LLM using retrieval only. The proposed layer resulted in changes approved without rework in 86.7% of tasks compared to 58.3% for zero-shot LLM (p < 0.001) and 41.7% for templates, and reduced task completion time from 46.2 minutes (manual work) to 11.4 minutes (p < 0.001). Exclusion of the policy gate resulted in increase in policy violations from 2.1% to 11.7% of tasks. These results suggest that the benefits of generation in DevOps workflows can be obtained only together with validation and policy enforcement.Downloads
References
Ahmed, T., Ghosh, S., Bansal, C., Zimmermann, T., Zhang, X., & Rajmohan, S. (2023). Recommending root-cause and mitigation steps for cloud incidents using large language models. Proceedings of the 45th International Conference on Software Engineering (ICSE), 1737–1749. DOI: https://doi.org/10.1109/ICSE48619.2023.00149
Brikman, Y. (2019). Terraform: Up and running (2nd ed.). O'Reilly Media.
Brown, T. B., Mann, B., Ryder, N., et al. (2020). Language models are few-shot learners. Advances in Neural Information Processing Systems, 33, 1877–1901.
Chen, M., Tworek, J., Jun, H., et al. (2021). Evaluating large language models trained on code. arXiv:2107.03374.
Forsgren, N., Humble, J., & Kim, G. (2018). Accelerate: The science of lean software and DevOps. IT Revolution Press.
Humble, J., & Farley, D. (2010). Continuous delivery: Reliable software releases through build, test, and deployment automation. Addison-Wesley.
Jimenez, C. E., Yang, J., Wettig, A., et al. (2024). SWE-bench: Can language models resolve real-world GitHub issues? International Conference on Learning Representations.
Lewis, P., Perez, E., Piktus, A., et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems, 33, 9459–9474.
Morris, K. (2016). Infrastructure as code: Managing servers in the cloud. O'Reilly Media.
Rahman, A., Mahdavi-Hezaveh, R., & Williams, L. (2019). A systematic mapping study of infrastructure as code research. Information and Software Technology, 108, 65–77. DOI: https://doi.org/10.1016/j.infsof.2018.12.004
Rose, S., Borchert, O., Mitchell, S., & Connelly, S. (2020). Zero trust architecture (NIST Special Publication 800-207). National Institute of Standards and Technology. DOI: https://doi.org/10.6028/NIST.SP.800-207-draft2
Wei, J., Wang, X., Schuurmans, D., et al. (2022). Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems, 35, 24824–24837. DOI: https://doi.org/10.52202/068431-1800
Yao, S., Zhao, J., Yu, D., et al. (2023). ReAct: Synergizing reasoning and acting in language models. International Conference on Learning Representations.
Downloads
Published
Issue
Section
License
Copyright (c) 2024 Scientific Journal of Artificial Intelligence and Blockchain Technologies

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
The license allows re-users to share and adapt the work, as long as credit is given to the author and don't use it for commercial purposes.




