Migrating Code At Scale With LLMs At Google

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Ziftci, Celal, Nikolov, Stoyan, Sjövall, Anna, Kim, Bo, Codecasa, Daniele, Kim, Max
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916688175300608
author Ziftci, Celal
Nikolov, Stoyan
Sjövall, Anna
Kim, Bo
Codecasa, Daniele
Kim, Max
author_facet Ziftci, Celal
Nikolov, Stoyan
Sjövall, Anna
Kim, Bo
Codecasa, Daniele
Kim, Max
contents Developers often evolve an existing software system by making internal changes, called migration. Moving to a new framework, changing implementation to improve efficiency, and upgrading a dependency to its latest version are examples of migrations. Migration is a common and typically continuous maintenance task undertaken either manually or through tooling. Certain migrations are labor intensive and costly, developers do not find the required work rewarding, and they may take years to complete. Hence, automation is preferred for such migrations. In this paper, we discuss a large-scale, costly and traditionally manual migration project at Google, propose a novel automated algorithm that uses change location discovery and a Large Language Model (LLM) to aid developers conduct the migration, report the results of a large case study, and discuss lessons learned. Our case study on 39 distinct migrations undertaken by three developers over twelve months shows that a total of 595 code changes with 93,574 edits have been submitted, where 74.45% of the code changes and 69.46% of the edits were generated by the LLM. The developers reported high satisfaction with the automated tooling, and estimated a 50% reduction on the total time spent on the migration compared to earlier manual migrations. Our results suggest that our automated, LLM-assisted workflow can serve as a model for similar initiatives.
format Preprint
id arxiv_https___arxiv_org_abs_2504_09691
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Migrating Code At Scale With LLMs At Google
Ziftci, Celal
Nikolov, Stoyan
Sjövall, Anna
Kim, Bo
Codecasa, Daniele
Kim, Max
Software Engineering
Artificial Intelligence
Developers often evolve an existing software system by making internal changes, called migration. Moving to a new framework, changing implementation to improve efficiency, and upgrading a dependency to its latest version are examples of migrations. Migration is a common and typically continuous maintenance task undertaken either manually or through tooling. Certain migrations are labor intensive and costly, developers do not find the required work rewarding, and they may take years to complete. Hence, automation is preferred for such migrations. In this paper, we discuss a large-scale, costly and traditionally manual migration project at Google, propose a novel automated algorithm that uses change location discovery and a Large Language Model (LLM) to aid developers conduct the migration, report the results of a large case study, and discuss lessons learned. Our case study on 39 distinct migrations undertaken by three developers over twelve months shows that a total of 595 code changes with 93,574 edits have been submitted, where 74.45% of the code changes and 69.46% of the edits were generated by the LLM. The developers reported high satisfaction with the automated tooling, and estimated a 50% reduction on the total time spent on the migration compared to earlier manual migrations. Our results suggest that our automated, LLM-assisted workflow can serve as a model for similar initiatives.
title Migrating Code At Scale With LLMs At Google
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2504.09691