RegMiner:从代码演化历史构建大型回归数据集
RegMiner: Towards Constructing a Large Regression Dataset from Code Evolution History
摘要:
缺陷数据集是研究人员和程序员的重要人工制品,它为各种SE/PL研究(如故障定位、软件测试和程序修复)奠定了经验和实验基础。所有已知的最先进的数据集都是手工构建的,这不可避免地限制了它们的可扩展性,代表性以及对新兴数据驱动研究的支持。在这项工作中,我们提出了一种方法来自动化的过程中收获可复制的回归错误的代码进化历史。我们专注于回归错误数据集,因为它们(1)表明如何引入和修复错误(作为正常错误),(2)支持回归错误分析,以及(3)包含更强大的规范(即,原始通过版本)进行一般错误分析。在技术上,我们解决了一个信息检索问题的代码演变的历史。给定一个代码仓库,我们搜索回归,其中测试可以通过回归修复提交,失败回归诱导提交,并通过工作提交。在这项工作中,我们解决了以下挑战:(1)从代码演化历史中识别潜在的回归修复提交,(2)在历史上迁移测试及其代码依赖关系,以及(3)最大限度地减少回归搜索期间的编译开销。我们构建了我们的工具RegMiner,它在3周内收集了66个项目的537个回归数据,在最短的时间内创建了最大的可复制回归数据集。此外,我们对回归数据集的实证研究表明,流行的回归故障定位技术(例如,delta-debugging)和真正的修复之间存在差距,揭示了新的数据驱动的研究机会。
英文摘要:
Bug datasets consisting of real-world bugs are important artifacts for researchers and programmers, which lay empirical and experimental foundation for various SE/PL research such as fault localization, software testing, and program repair. All known state-of-the-art datasets are constructed manually, which inevitably limits their scalability, representativeness, and the support for the emerging data-driven research. In this work, we propose an approach to automate the process of harvesting replicable regression bugs from the code evolutionary history. We focus on regression bug dataset, as they (1) manifest how a bug is introduced and fixed (as normal bugs), (2) support regression bug analysis, and (3) incorporate a much stronger specification (i.e., the original passing version) for general bug analysis. Technically, we address an information retrieval problem on code evolution history. Given a code repository, we search for regressions where a test can pass a regression-fixing commit, fail a regressioninducing commit, and pass a working commit. In this work, we address the challenges of (1) identifying potential regression-fixing commits from the code evolution history, (2) migrating the test and its code dependencies over the history, and (3) minimizing the compilation overhead during the regression search. We build our tool, RegMiner, which harvested 537 regressions over 66 projects for 3 weeks, created the largest replicable regression dataset within shortest period, to the best of our knowledge. Moreover, our empirical study on our regression dataset shows a gap between the popular regression fault localization techniques (e.g, delta-debugging) and the real fix, revealing new data-driven research opportunities.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。