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

使用大型语言模型解释 GitHub Actions 失败:挑战、见解与局限性

Explaining GitHub Actions Failures with Large Language Models: Challenges, Insights, and Limitations

Pablo Valenzuela-Toledo, Chuyue Wu, Sandro Hernandez, Alexander Boll, Roman Machacek, Sebastiano Panichella, Timo Kehrer

AI总结:

本研究探讨使用大型语言模型为 GitHub Actions 失败生成上下文描述,发现超过80%开发者认可其在简单日志上的正确性,可为不同经验开发者提供辅助,但复杂场景仍需提升推理能力。

摘要:

GitHub Actions (GA) 已成为开发者用来自动化软件工作流的事实标准工具,能够无缝地构建、测试和部署代码。然而,当 GA 失败时,它会中断开发,导致延误并增加成本。诊断失败变得尤为困难,因为错误日志通常冗长、复杂且非结构化。鉴于这些困难,本研究探讨了大型语言模型 (LLMs) 为 GA 失败生成正确、清晰、简洁且具有可操作性的上下文描述(或摘要)的潜力,重点关注开发者对其可行性和有用性的看法。结果显示,超过 80% 的开发者认为 LLM 解释在较简单/小型日志的正确性方面表现良好。总体而言,我们的研究结果表明,LLMs 可以切实协助开发者理解常见的 GA 错误,从而可能减少手动分析。然而,我们也发现,需要更强的推理能力来支持更复杂的 CI/CD 场景。例如,经验较少的开发者倾向于对所描述的上下文持更积极态度,而经验丰富的开发者则偏好简洁的摘要。总体而言,我们的工作为研究人员增强 LLM 推理能力提供了关键见解,特别是在根据用户专业知识调整解释方面。

英文摘要:

GitHub Actions (GA) has become the de facto tool that developers use to automate software workflows, seamlessly building, testing, and deploying code. Yet when GA fails, it disrupts development, causing delays and driving up costs. Diagnosing failures becomes especially challenging because error logs are often long, complex and unstructured. Given these difficulties, this study explores the potential of large language models (LLMs) to generate correct, clear, concise, and actionable contextual descriptions (or summaries) for GA failures, focusing on developers' perceptions of their feasibility and usefulness. Our results show that over 80\% of developers rated LLM explanations positively in terms of correctness for simpler/small logs. Overall, our findings suggest that LLMs can feasibly assist developers in understanding common GA errors, thus, potentially reducing manual analysis. However, we also found that improved reasoning abilities are needed to support more complex CI/CD scenarios. For instance, less experienced developers tend to be more positive on the described context, while seasoned developers prefer concise summaries. Overall, our work offers key insights for researchers enhancing LLM reasoning, particularly in adapting explanations to user expertise.

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

↑