一句话:利用 issue 与代码变更特征训练分类器,自动推荐缺失的 issue 标签,补全提交与 issue 间追踪链接。
软件与系统可追踪性对开发任务至关重要。版本控制系统允许提交标注 issue ID,从而建立需求、缺陷修复、提交、源码与开发者间的联系;但对六个开源项目的分析显示,平均仅 60% 提交关联到具体 issue,缺失链接使项目级追踪不可信。本文结合刻画 issue 与代码变更的过程特征和文本特征,训练分类器识别提交信息中缺失的 issue 标签,以生成缺失链接。在六个开源项目上,推荐标注 issue 的链接平均达到 96% 召回率和 33% 精确率;在增强已有追踪链接的任务中,各项目精确率均超过 89%,召回率为 50%。
Software and systems traceability is widely accepted as an essential element for supporting many software development tasks. Today's version control systems provide inbuilt features that allow developers to tag each commit with one or more issue ID, thereby providing the building blocks from which project-wide traceability can be established between feature requests, bug fixes, commits, source code, and specific developers. However, our analysis of six open source projects showed that on average only 60% of the commits were linked to specific issues. Without these fundamental links the entire set of project-wide links will be incomplete, and therefore not trustworthy. In this paper we address the fundamental problem of missing links between commits and issues. Our approach leverages a combination of process and text-related features characterizing issues and code changes to train a classifier to identify missing issue tags in commit messages, thereby generating the missing links. We conducted a series of experiments to evaluate our approach against six open source projects and showed that it was able to effectively recommend links for tagging issues at an average of 96% recall and 33% precision. In a related task for augmenting a set of existing trace links, the classifier returned precision at levels greater than 89% in all projects and recall of 50%.
DOI 原文 ·
@inproceedings{paperbot4469,
title = {Traceability in the wild},
author = {Michael Rath and Jacob Rendall and Jin L. C. Guo and Jane Cleland-Huang and Patrick Mäder},
booktitle = {ICSE},
year = {2018},
doi = {10.1145/3180155.3180207}
}