在版本控制系统下的项目中发现回归
Finding Regressions in Projects under Version Control Systems
摘要:
版本控制系统(Version Control Systems,缩写为VCS)通常用于支持大型软件项目的开发。一个典型的大型项目的MySQL存储库可以包含由大量提交组成的各种相互交织的分支。如果在项目中发现了某种不想要的行为(例如代码中的bug),那么最好找到引入它的提交。这样的提交被称为回归点。关于回归点有两个主要问题。首先,在某个提交之后检测项目是否正确可能是非常昂贵的,因为它可能包括大规模测试和/或一些其他形式的验证。因此,期望最小化这种查询的数量。第二,在实际提交之前可能有几个回归点;也许在某个提交中引入了一个bug,后来无意中修复了几个提交,然后在更晚的提交中重新引入。为了修复实际的提交,通常需要找到最新的回归点。目前使用的分布式递归包含回归识别的方法,例如git bisect工具。在本文中,我们提出了一个新的回归识别算法,通过减少有效性查询的数量,优于当前的工具。同时,我们的算法倾向于找到最新的回归点,这是最先进的算法中缺少的功能。本文提供了一个实验评估所提出的算法,并将其与最先进的工具git bisect在一个真实的数据集。
英文摘要:
Version Control Systems (VCS) are frequently used to support development of large-scale software projects. A typical VCS repository of a large project can contain various intertwined branches consisting of a large number of commits. If some kind of unwanted behaviour (e.g. a bug in the code) is found in the project, it is desirable to find the commit that introduced it. Such commit is called a regression point. There are two main issues regarding the regression points. First, detecting whether the project after a certain commit is correct can be very expensive as it may include large-scale testing and/or some other forms of verification. It is thus desirable to minimise the number of such queries. Second, there can be several regression points preceding the actual commit; perhaps a bug was introduced in a certain commit, inadvertently fixed several commits later, and then reintroduced in a yet later commit. In order to fix the actual commit it is usually desirable to find the latest regression point. The currently used distributed VCS contain methods for regression identification, see e.g. the git bisect tool. In this paper, we present a new regression identification algorithm that outperforms the current tools by decreasing the number of validity queries. At the same time, our algorithm tends to find the latest regression points which is a feature that is missing in the state-of-the-art algorithms. The paper provides an experimental evaluation of the proposed algorithm and compares it to the state-of-the-art tool git bisect on a real data set.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。