Yi Li bio photo

Yi Li

Associate Professor

College of Computing and Data Science (CCDS)
Nanyang Technological University (NTU)

Address: Block N4-02b-63
50 Nanyang Avenue, Singapore 639798
Phone: +65 6790 4287

Email Twitter LinkedIn GitHub Bitbucket Google Scholar ORCID

Semantic Slicing of Software Version Histories

Yi Li, Chenguang Zhu, Julia Rubin, and Marsha Chechik

IEEE Transactions on Software Engineering, 2018

Abstract: Software developers often need to transfer functionality, e.g., a set of commits implementing a new feature or a bug fix, from one branch of a configuration management system to another. That can be a challenging task as the existing configuration management tools lack support for matching high-level, semantic functionality with low-level version histories. The developer thus has to either manually identify the exact set of semantically-related commits implementing the functionality of interest or sequentially port a segment of the change history, “inheriting” additional, unwanted functionality. In this paper, we tackle this problem by providing automated support for identifying the set of semantically-related commits implementing a particular functionality, which is defined by a set of tests. We formally define the semantic slicing problem, provide an algorithm for identifying a set of commits that constitute a slice, and propose techniques to minimize the produced slice. We then instantiate the overall approach, CSLICER, in a specific implementation for Java projects managed in Git and evaluate its correctness and effectiveness on a set of open-source software repositories. We show that it allows to identify subsets of change histories that maintain the functionality of interest but are substantially smaller than the original ones.

Cite:

@article{Li2018SSS,
  author = {Li, Yi and Zhu, Chenguang and Rubin, Julia and Chechik, Marsha},
  journal = {IEEE Transactions on Software Engineering},
  month = feb,
  number = {2},
  pages = {182--201},
  title = {Semantic Slicing of Software Version Histories},
  volume = {44},
  year = {2018}
}
Paper Site