Test-based patch clustering for automatically-generated patches assessment
Empirical Software Engineering · 2024-09 · 29 (5)
DOI: 10.1007/s10664-024-10503-2 ↗Kurz gefasst
Fachartikel in der Zeitschrift Empirical Software Engineering, online erschienen am 24.07.2024. Verfasst von Matias Martinez und 5 weiteren Autor:innen. Beteiligte Einrichtung: Universitat Politècnica de Catalunya, Barcelona, Spain. Die Arbeit wurde bisher 7-mal zitiert (Crossref) und nennt 52 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Ramony Cajal Fellowship, European Research Council, EPRSC.
Abstract (Originalsprache)
Previous studies have shown that Automated Program Repair ( apr ) techniques suffer from the overfitting problem. Overfitting happens when a patch is run and the test suite does not reveal any error, but the patch actually does not fix the underlying bug or it introduces a new defect that is not covered by the test suite. Therefore, the patches generated by apr tools need to be validated by human programmers, which can be very costly, and prevents apr tool adoption in practice. Our work aims to minimize the number of plausible patches that programmers have to review, thereby reducing the time required to find a correct patch. We introduce a novel light-weight test-based patch clustering approach called xTestCluster , which clusters patches based on their dynamic behavior. xTestCluster is applied after the patch generation phase in order to analyze the generated patches from one or more repair tools and to provide more information about those patches for facilitating patch assessment. The novelty of xTestCluster lies in using information from execution of newly generated test cases to cluster patches generated by multiple APR approaches. A cluster is formed of patches that fail on the same generated test cases. The output from xTestCluster gives developers a) a way of reducing the number of patches to analyze, as they can focus on analyzing a sample of patches from each cluster, b) additional information (new test cases and their results) attached to each patch. After analyzing 902 plausible patches from 21 Java apr tools, our results show that xTestCluster is able to reduce the number of patches to review and analyze with a median of 50%. xTestCluster can save a significant amount of time for developers that have to review the multitude of patches generated by apr tools, and provides them with new test cases that expose the differences in behavior between generated patches. Moreover, xTestCluster can complement other patch assessment techniques that help detect patch misclassifications.
Schlagwörter
Stichwörter der Autor:innen
Autor:innen und Institutionen
- Universitat Politècnica de Catalunya, Barcelona, Spain.
- University College London, London, UK.
- Monash University, Clayton, Australia.
ORCID-Profile: Federica Sarro
Förderung
- Ramony Cajal Fellowship
- European Research Council
- EPRSC
- Australian Research Council
Zitieren
APA
Martinez, M., Kechagia, M., Perera, A., Petke, J., Sarro, F., & Aleti, A. (2024). Test-based patch clustering for automatically-generated patches assessment. Empirical Software Engineering, 29(5). https://doi.org/10.1007/s10664-024-10503-2
Vancouver
Martinez M, Kechagia M, Perera A, Petke J, Sarro F, Aleti A. Test-based patch clustering for automatically-generated patches assessment. Empirical Software Engineering. 2024;29(5). doi:10.1007/s10664-024-10503-2
BibTeX
@article{Martinez2024,
author = {Martinez, Matias and Kechagia, Maria and Perera, Anjana and Petke, Justyna and Sarro, Federica and Aleti, Aldeida},
title = {Test-based patch clustering for automatically-generated patches assessment},
journal = {Empirical Software Engineering},
year = {2024},
volume = {29},
number = {5},
doi = {10.1007/s10664-024-10503-2}
}
EUVIMED