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

使用 Copilot Agent 模式自动化库迁移:一项定量评估

Using Copilot Agent Mode to Automate Library Migration: A Quantitative Assessment

Federal University of Minas Gerais(米纳斯吉拉斯联邦大学);Pontificial University of Minas Gerais(米纳斯吉拉斯宗座大学)

Aylton Almeida, Laerte Xavier, Marco Tulio Valente

AI总结:

本文通过 Copilot Agent 模式评估了 SQLAlchemy 库迁移的自动化效果,发现其在功能迁移上表现良好但应用功能维护不足。

摘要:

保持软件系统更新对于避免技术债、安全漏洞以及遗留系统固有刚性至关重要。然而,更新库和框架仍然是耗时且易出错的过程。近年来,大型语言模型(LLMs)和代理编码系统的发展为自动化此类维护任务提供了新机会。在本文中,我们评估了在十个客户端应用程序数据集上对知名 Python 库 SQLAlchemy 的更新。为此,我们使用了 GitHub 的 Copilot Agent 模式,这是一种能够规划和执行多步骤迁移工作流的自主 AI 系统。为了评估自动化迁移的有效性,我们还引入了迁移覆盖率这一指标,该指标量化了正确迁移的 API 使用点比例。我们的研究结果表明,LLM 代理能够迁移 SQLAlchemy 版本之间的功能和 API 使用情况(迁移覆盖率:100%,中位数),但未能维持应用程序功能,导致测试通过率较低(39.75%,中位数)。

英文摘要:

Keeping software systems up to date is essential to avoid technical debt, security vulnerabilities, and the rigidity typical of legacy systems. However, updating libraries and frameworks remains a time consuming and error-prone process. Recent advances in Large Language Models (LLMs) and agentic coding systems offer new opportunities for automating such maintenance tasks. In this paper, we evaluate the update of a well-known Python library, SQLAlchemy, across a dataset of ten client applications. For this task, we use the Github's Copilot Agent Mode, an autonomous AI systema capable of planning and executing multi-step migration workflows. To assess the effectiveness of the automated migration, we also introduce Migration Coverage, a metric that quantifies the proportion of API usage points correctly migrated. The results of our study show that the LLM agent was capable of migrating functionalities and API usages between SQLAlchemy versions (migration coverage: 100%, median), but failed to maintain the application functionality, leading to a low test-pass rate (39.75%, median).

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

↑