用超图模型改进故障聚类的测试距离
Improving Test Distance for Failure Clustering with Hypergraph Modelling
摘要:
自动调试技术,如故障定位(FL)或自动程序修复(APR),通常是在单一故障假设(SFA)下设计的。然而,在实践中,未知数量的故障可能会独立地导致多个测试用例失败,这使得难以分配调试资源和使用自动化调试技术。聚类算法已被应用到组的测试失败,根据他们的根本原因,但他们的准确性往往是缺乏由于测试用例的距离度量的固有限制。我们引入了一个新的测试距离度量超图的基础上,并评估其准确性,使用多故障基准,我们已经建立在上面的缺陷4J和SIR。结果表明,我们的技术,Hybiscus,可以自动实现完美的聚类(即,与根本原因的基础真值数目相同的簇数目,具有相同根本原因的所有失败测试被分组在一起)。更好的故障聚类还使我们能够分离不同的根本原因,并在SFA下应用FL技术,与最先进的多故障定位技术相比,节省了高达82%的总浪费工作量。
英文摘要:
Automated debugging techniques, such as Fault Localisation (FL) or Automated Program Repair (APR), are typically designed under the Single Fault Assumption (SFA). However, in practice, an unknown number of faults can independently cause multiple test case failures, making it difficult to allocate resources for debugging and to use automated debugging techniques. Clustering algorithms have been applied to group the test failures according to their root causes, but their accuracy can often be lacking due to the inherent limits in the distance metrics for test cases. We introduce a new test distance metric based on hypergraphs and evaluate their accuracy using multi-fault benchmarks that we have built on top of Defects4J and SIR. Results show that our technique, Hybiscus, can automatically achieve perfect clustering (i.e., the same number of clusters as the ground truth number of root causes, with all failing tests with the same root cause grouped together) for 418 out of 605 test runs with multiple test failures. Better failure clustering also allows us to separate different root causes and apply FL techniques under SFA, resulting in saving up to 82% of the total wasted effort when compared to the state-of-the-art technique for multiple fault localisation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。