一句话:提出首个端到端 LLM 驱动的 CI/CD 故障根因分析与自动修复框架,并完成一年工业级部署验证。
CI/CD 流水线的失败诊断与修复复杂且耗费人力。LogSage 是首个端到端的 LLM 驱动框架,用于 CI/CD 失败的根因分析(RCA)与自动修复:它先用 token 高效的日志预处理管线过滤噪声、抽取关键错误,再以结构化诊断提示完成准确 RCA;在解决方案生成阶段,借助检索增强生成(RAG)复用历史修复经验,并通过 LLM 工具调用执行自动化修复。作者构建了包含 367 个 GitHub CI/CD 失败的新基准,RCA 阶段精度超过 98%、召回近乎完美,F1 较近期 LLM 基线提升逾 38 个百分点;在字节跳动为期一年的工业部署中处理超过 107 万次执行,端到端精度超过 80%,表明该方案可规模化落地于真实 DevOps 流程。
Continuous Integration and Deployment (CI/CD) pipelines are critical to modern software engineering, yet diagnosing and resolving their failures remains complex and labor-intensive. We present LogSage, the first end-to-end LLM-powered framework for root cause analysis (RCA) and automated remediation of CI/CD failures. LogSage employs a token-efficient log preprocessing pipeline to filter noise and extract critical errors, then performs structured diagnostic prompting for accurate RCA. For solution generation, it leverages retrieval-augmented generation (RAG) to reuse historical fixes and invokes automation fixes via LLM tool-calling.On a newly curated benchmark of 367 GitHub CI/CD failures, LogSage achieves over 98% precision, near-perfect recall, and an F1 improvement of more than 38% points in the RCA stage, compared with recent LLM-based baselines. In a yearlong industrial deployment at ByteDance, it processed over 1.07M executions, with end-to-end precision exceeding 80%. These results demonstrate that LogSage provides a scalable and practical solution for automating CI/CD failure management in real-world DevOps workflows.
DOI 原文 ·
@inproceedings{paperbot9491,
title = {LogSage: An LLM-Based Framework for CI/CD Failure Detection and Remediation with Industrial Validation},
author = {Weiyuan Xu and Juntao Luo and Tao Huang and Kaixin Sui and Jie Geng and Qijun Ma and Isami Akasaka and Xiaoxue Shi and Jing Tang and Peng Cai},
booktitle = {ASE},
year = {2025},
doi = {10.1109/ase63991.2025.00310}
}