Navigation
Recherche
|
Google Reports Halving Code Migration Time With AI Help
samedi 18 janvier 2025, 01:02 , par Slashdot
For their LLM-based workflow, Google's software engineers implemented the following process. An engineer from Ads would identify an ID in need of migration using a combination of code search, Kythe, and custom scripts. Then an LLM-based migration toolkit, triggered by someone knowledgeable in the art, was run to generate verified changes containing code that passed unit tests. Those changes would be manually checked by the same engineer and potentially corrected. Thereafter, the code changes would be sent to multiple reviewers who are responsible for the portion of the codebase affected by the changes. The result was that 80 percent of the code modifications in the change lists (CLs) were purely the product of AI; the remainder were either human-authored or human-edited AI suggestions. 'We discovered that in most cases, the human needed to revert at least some changes the model made that were either incorrect or not necessary,' the authors observe. 'Given the complexity and sensitive nature of the modified code, effort has to be spent in carefully rolling out each change to users.' Based on this, Google undertook further work on LLM-driven verification to reduce the need for detailed review. Even with the need to double-check the LLM's work, the authors estimate that the time required to complete the migration was reduced by 50 percent. With LLM assistance, it took just three months to migrate 5,359 files and modify 149,000 lines of code to complete the JUnit3-JUnit4 transition. Approximately 87 percent of the code generated by AI ended up being committed with no changes. As for the Joda-Java time framework switch, the authors estimate a time saving of 89 percent compared to the projected manual change time, though no specifics were provided to support that assertion. Read more of this story at Slashdot.
https://developers.slashdot.org/story/25/01/17/2156235/google-reports-halving-code-migration-time-wi...
Voir aussi |
56 sources (32 en français)
Date Actuelle
sam. 18 janv. - 03:55 CET
|