arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.00164cs.SEcs.AI
收藏

为何AI代理参与的修复相关拉取请求仍未合并?一项实证研究

Why Are AI Agent Involved Pull Requests (Fix-Related) Remain Unmerged? An Empirical Study

University of Saskatchewan, Canada(萨斯喀彻温大学)

Khairul Alam, Saikat Mondal, Banani Roy

AI总结:

本文通过实证研究揭示了AI代理生成的修复相关PRs合并失败的主要原因,指出测试用例失败和先前问题解决是主要障碍,为AI与人类协作改进提供方向。

摘要:

自主编码代理(如OpenAI Codex、Devin、GitHub Copilot)越来越多地被用于生成现实世界软件仓库中的修复相关拉取请求(PRs)。然而,它们的实际效果取决于这些贡献是否被项目维护人员接受并合并。在本文中,我们对涉及AI代理的修复相关PRs进行了实证研究,检查了它们的整合结果、延迟以及阻碍成功合并的因素。我们首先分析了来自AIDEV POP数据集的五个广泛使用的AI编码代理所生成的8,106个修复相关PRs,以量化被合并、关闭但未合并或仍保持开放的PRs的比例。然后,我们对326个已关闭但未合并的PRs进行了手动定性分析,耗时约100人小时,构建了包含12个失败原因的结构化目录。我们的结果表明,测试用例失败和由其他PRs先前解决的相同问题是最常见的非整合原因,而构建或部署失败则相对较少。总体而言,我们的发现揭示了当前AI编码代理在现实环境中的关键限制,并突显了进一步改进和更有效的软件维护中的人工智能协作方向。

英文摘要:

Autonomous coding agents (e.g., OpenAI Codex, Devin, GitHub Copilot) are increasingly used to generate fix-related pull requests (PRs) in real world software repositories. However, their practical effectiveness depends on whether these contributions are accepted and merged by project maintainers. In this paper, we present an empirical study of AI agent involved fix related PRs, examining both their integration outcomes, latency, and the factors that hinder successful merging. We first analyze 8,106 fix related PRs authored by five widely used AI coding agents from the AIDEV POP dataset to quantify the proportions of PRs that are merged, closed without merging, or remain open. We then conduct a manual qualitative analysis of a statistically significant sample of 326 closed but unmerged PRs, spending approximately 100 person hours to construct a structured catalog of 12 failure reasons. Our results indicate that test case failures and prior resolution of the same issues by other PRs are the most common causes of non integration, whereas build or deployment failures are comparatively rare. Overall, our findings expose key limitations of current AI coding agents in real world settings and highlight directions for their further improvement and for more effective human AI collaboration in software maintenance.

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

↑