arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.11647cs.SEcs.AIcs.LG
收藏

强化学习在CI/CD流水线动态工作流优化中的应用

Reinforcement Learning for Dynamic Workflow Optimization in CI/CD Pipelines

Independent Researcher Senior Member, IEEE Brooklyn, NY, USA(独立研究者高级会员,IEEE,布鲁克林,纽约州,美国);Independent Researcher Senior Member, IEEE Richmond, TX, USA(独立研究者高级会员,IEEE,里士满,弗吉尼亚州,美国);Independent Researcher Atlanta, GA, USA(独立研究者,亚特兰大,佐治亚州,美国);Independent Researcher Senior Member, IEEE San Francisco, CA, USA(独立研究者高级会员,IEEE,旧金山,加利福尼亚州,美国);Independent Researcher Senior Member, IEEE Milpitas, CA, USA(独立研究者高级会员,IEEE,米尔皮塔斯,加利福尼亚州,美国)

Aniket Abhishek Soni, Milan Parikh, Rashi Nimesh Kumar Dhenia, Jubin Abhishek Soni, Ayush Raj Jha, Sneja Mitinbhai Shah

AI总结:

本文提出基于强化学习的CI/CD流水线动态优化方法,通过智能体动态决策提升吞吐量并减少测试时间,实验显示在效率和稳定性方面取得显著改进。

摘要:

持续集成和持续部署(CI/CD)流水线是现代软件交付的核心,但随着系统规模的扩大,其静态工作流往往引入了效率低下问题。本文提出了一种基于强化学习(RL)的方法来动态优化CI/CD流水线的工作流。将流水线建模为马尔可夫决策过程,并训练一个RL智能体在运行时做出决策,如选择全量、部分或不执行测试,以在提高吞吐量的同时最小化测试开销。开发了一个可配置的CI/CD仿真环境,用于在构建、测试和部署阶段评估该方法。实验结果表明,RL优化的流水线在吞吐量上比静态基线提高了30%,测试执行时间减少了约25%,同时保持缺陷遗漏率低于5%。智能体学会有选择地跳过或缩短低风险提交的测试,加快反馈周期而不显著增加失败风险。这些结果展示了强化学习在实现自适应和智能DevOps工作流的潜力,为更高效、稳健和可持续的CI/CD自动化提供了实际路径。

英文摘要:

Continuous Integration and Continuous Deployment (CI/CD) pipelines are central to modern software delivery, yet their static workflows often introduce inefficiencies as systems scale. This paper proposes a reinforcement learning (RL) based approach to dynamically optimize CI/CD pipeline workflows. The pipeline is modeled as a Markov Decision Process, and an RL agent is trained to make runtime decisions such as selecting full, partial, or no test execution in order to maximize throughput while minimizing testing overhead. A configurable CI/CD simulation environment is developed to evaluate the approach across build, test, and deploy stages. Experimental results show that the RL optimized pipeline achieves up to a 30 percent improvement in throughput and approximately a 25 percent reduction in test execution time compared to static baselines, while maintaining a defect miss rate below 5 percent. The agent learns to selectively skip or abbreviate tests for low risk commits, accelerating feedback cycles without significantly increasing failure risk. These results demonstrate the potential of reinforcement learning to enable adaptive and intelligent DevOps workflows, providing a practical pathway toward more efficient, resilient, and sustainable CI/CD automation.

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

↑