Precfix: Large-Scale Patch Recommendation by Mining Defect-Patch Pairs

被引:8
|
作者
Zhang, Xindong [1 ]
Zhu, Chenguang [2 ]
Li, Yi [3 ]
Guo, Jianmei [1 ]
Liu, Lihua [1 ]
Gu, Haobo [1 ]
机构
[1] Alibaba Grp, Hangzhou, Peoples R China
[2] Univ Texas Austin, Austin, TX 78712 USA
[3] Nanyang Technol Univ, Singapore, Singapore
基金
中国国家自然科学基金;
关键词
Defect detection; patch generation; patch recommendation; LOCALIZATION;
D O I
10.1145/3377813.3381356
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Patch recommendation is the process of identifying errors in software systems and suggesting suitable fixes for them. Patch recommendation can significantly improve developer productivity by reducing both the debugging and repairing time. Existing techniques usually rely on complete test suites and detailed debugging reports, which are often absent in practical industrial settings. In this paper, we propose PRECFIX, a pragmatic approach targeting large-scale industrial codebase and making recommendations based on previously observed debugging activities. PRECFIX collects defect-patch pairs from development histories, performs clustering, and extracts generic reusable patching patterns as recommendations. We conducted experimental study on an industrial codebase with 10K projects involving diverse defect patterns. We managed to extract 3K templates of defect-patch pairs, which have been successfully applied to the entire codebase. Our approach is able to make recommendations within milliseconds and achieves a false positive rate of 22% confirmed by manual review. The majority (10/12) of the interviewed developers appreciated PRECFIX, which has been rolled out to Alibaba to support various critical businesses.
引用
下载
收藏
页码:41 / 50
页数:10
相关论文
共 50 条
  • [1] Large-Scale Patch Recommendation at Alibaba
    Zhang, Xindong
    Zhu, Chenguang
    Li, Yi
    Guo, Jianmei
    Liu, Lihua
    Gu, Haobo
    2020 ACM/IEEE 42ND INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2020), 2020, : 252 - 253
  • [2] Large-Scale Supervised Learning of the Grasp Robustness of Surface Patch Pairs
    Seita, Daniel
    Pokorny, Florian T.
    Mahler, Jeffrey
    Kragic, Danica
    Franklin, Michael
    Canny, John
    Goldberg, Ken
    2016 IEEE INTERNATIONAL CONFERENCE ON SIMULATION, MODELING, AND PROGRAMMING FOR AUTONOMOUS ROBOTS (SIMPAR), 2016, : 216 - 223
  • [3] PatchDB: A Large-Scale Security Patch Dataset
    Wang, Xinda
    Wang, Shu
    Feng, Pengbin
    Sun, Kun
    Jajodia, Sushil
    51ST ANNUAL IEEE/IFIP INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND NETWORKS (DSN 2021), 2021, : 149 - 160
  • [4] REAP: A Large-Scale Realistic Adversarial Patch Benchmark
    Hingun, Nabeel
    Sitawarin, Chawin
    Li, Jerry
    Wagner, David
    2023 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION, ICCV, 2023, : 4617 - 4628
  • [5] Smart Recommendation by Mining Large-scale GPS Traces
    Qian, Shiyou
    Zhu, Yanmin
    Li, Minglu
    2012 IEEE WIRELESS COMMUNICATIONS AND NETWORKING CONFERENCE (WCNC), 2012, : 3267 - 3272
  • [6] A Large-Scale Empirical Review of Patch Correctness Checking Approaches
    Yang, Jun
    Wang, Yuehan
    Lou, Yiling
    Wen, Ming
    Zhang, Lingming
    PROCEEDINGS OF THE 31ST ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2023, 2023, : 1203 - 1215
  • [7] Communities Mining and Recommendation for Large-Scale Mobile Social Networks
    Yu, Ruiguo
    Wang, Jianrong
    Xu, Tianyi
    Gao, Jie
    Cao, Kunyu
    Yu, Mei
    WIRELESS ALGORITHMS, SYSTEMS, AND APPLICATIONS, WASA 2017, 2017, 10251 : 266 - 277
  • [8] Large-scale binding ligand prediction by improved patch-based method Patch-Surfer2.0
    Zhu, Xiaolei
    Xiong, Yi
    Kihara, Daisuke
    BIOINFORMATICS, 2015, 31 (05) : 707 - 713
  • [9] Bayesian Image Restoration Using a Large-Scale Total Patch Variation Prior
    Chen, Yang
    Yu, Weimin
    Li, Yinsheng
    Yang, Zhou
    Luo, Limin
    Chen, Wufan
    MATHEMATICAL PROBLEMS IN ENGINEERING, 2011, 2011
  • [10] A large-scale deforestation experiment: Effects of patch area and isolation on Amazon birds
    Ferraz, Goncalo
    Nichols, James D.
    Hines, James E.
    Stouffer, Philip C.
    Bierregaard, Richard O., Jr.
    Lovejoy, Thomas E.
    SCIENCE, 2007, 315 (5809) : 238 - 241