Automated migration of build scripts using dynamic analysis and search-based refactoring

Author:

Gligoric Milos1,Schulte Wolfram2,Prasad Chandra2,van Velzen Danny2,Narasamdya Iman2,Livshits Benjamin3

Affiliation:

1. University of Illinois at Urbana-Champaign, Urbana-Champaign, IL, USA

2. Microsoft, Redmond, WA, USA

3. Microsoft Research, Redmond, WA, USA

Abstract

The efficiency of a build system is an important factor for developer productivity. As a result, developer teams have been increasingly adopting new build systems that allow higher build parallelization. However, migrating the existing legacy build scripts to new build systems is a tedious and error-prone process. Unfortunately, there is insufficient support for automated migration of build scripts, making the migration more problematic. We propose the first dynamic approach for automated migration of build scripts to new build systems. Our approach works in two phases. First, from a set of execution traces, we synthesize build scripts that accurately capture the intent of the original build. The synthesized build scripts are typically long and hard to maintain. Second, we apply refactorings that raise the abstraction level of the synthesized scripts (e.g., introduce functions for similar fragments). As different refactoring sequences may lead to different build scripts, we use a search-based approach that explores various sequences to identify the best (e.g., shortest) build script. We optimize search-based refactoring with partial-order reduction to faster explore refactoring sequences. We implemented the proposed two phase migration approach in a tool called METAMORPHOSIS that has been recently used at Microsoft.

Funder

Microsoft

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference67 articles.

1. Ant home page. http://ant.apache.org/. Ant home page. http://ant.apache.org/.

2. Buck home page. http://facebook.github.io/buck/. Buck home page. http://facebook.github.io/buck/.

3. Fabricate home page. https://code.google.com/p/fabricate/. Fabricate home page. https://code.google.com/p/fabricate/.

4. Build in the cloud. http://google-engtools.blogspot.com/2011/08/build-in-cloud-how-build-system-works.html. Build in the cloud. http://google-engtools.blogspot.com/2011/08/build-in-cloud-how-build-system-works.html.

5. Gradle build init plugin. http://www.gradle.org/docs/current/userguide/build_init_plugin.html. Gradle build init plugin. http://www.gradle.org/docs/current/userguide/build_init_plugin.html.

Cited by 8 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. The Classics Never Go Out of Style: An Empirical Study of Downgrades from the Bazel Build Technology;Proceedings of the IEEE/ACM 46th International Conference on Software Engineering;2024-04-12

2. Understanding the quality and evolution of Android app build systems;Journal of Software: Evolution and Process;2023-08-06

3. Composite refactoring: Representations, characteristics and effects on software projects;Information and Software Technology;2023-04

4. Identifying the Optimal Refactoring Dependencies Using Heuristic Search Algorithms to Maximize Maintainability;International Journal of Software Engineering and Knowledge Engineering;2021-06

5. Escaping dependency hell: finding build dependency errors with the unified dependency graph;Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis;2020-07-13

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3