Skip to main content
QUICK REVIEW

[Paper Review] Traceability in the Wild: Automatically Augmenting Incomplete Trace Links

Michael Rath, Jacob Rendall|arXiv (Cornell University)|Apr 6, 2018
Software Engineering ResearchComputer Science23 citations
TL;DR

This paper proposes a machine learning approach to automatically recover missing trace links between commits and issues in software projects by analyzing process, textual, and stakeholder-related features. Using a Random Forest classifier trained on 18 attributes derived from commit messages, issue descriptions, and metadata, the method achieves 96% recall in recommending issue tags for unlinked commits and 89%+ precision in augmenting existing incomplete trace links across six open-source projects.

ABSTRACT

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%

Motivation & Objective

  • To address the critical problem of incomplete traceability in software development, where only 60% of commits are linked to issues in practice.
  • To develop a practical, automated solution that recommends missing issue tags at the time of commit, enabling developers to accept or reject suggestions.
  • To enhance project-wide traceability by recovering missing links between commits and issues, improving support for change impact analysis, defect prevention, and developer recommendation systems.
  • To ensure industrial applicability by designing a classifier that can be deployed with a single 'button press' in existing development workflows.

Proposed method

  • The approach extracts 18 features from commit messages, issue descriptions, and metadata, including textual similarity (using VSM-based methods), temporal proximity, stakeholder involvement, and structural patterns such as the 'Loners' and 'Phantoms' heuristics.
  • Textual similarity between commit messages and issue descriptions is computed using a Vector Space Model (VSM) enhanced with natural language concepts, avoiding slower techniques like LSI.
  • The method incorporates process-related features such as the presence of 'fixes' or 'closes' keywords in commit messages, and temporal alignment between issue resolution and commit timestamps.
  • A Random Forest classifier is trained on these features to predict whether a commit should be linked to a specific issue, even when no explicit tag exists.
  • The classifier is evaluated in two modes: recommending links for new commits and augmenting existing incomplete link sets.
  • The system is designed for seamless integration into existing development workflows, requiring only a single action to trigger recommendations.

Experimental results

Research questions

  • RQ1RQ1: Can the classifier accurately reconstruct missing issue tags during the commit process, i.e., recommend relevant issues for unlinked commits?
  • RQ2RQ2: Can the classifier precisely augment an existing set of incomplete commit-to-issue links in a fully automated way?
  • RQ3RQ3: Can the classifier recommend additional issue tags for commits that currently have no links?

Key findings

  • The classifier achieved an average recall of 96% when recommending up to three issue tags for unlinked commits, indicating strong coverage of missing links.
  • In the task of augmenting existing incomplete trace links, the classifier achieved precision above 89% across all six studied projects, demonstrating high reliability in link recovery.
  • For the task of identifying links from previously unlinked commits, the classifier achieved an average recall of 91.6% and precision of 17.3%, showing effectiveness despite the challenge of zero prior links.
  • The Random Forest classifier outperformed other models in both recommendation and augmentation tasks, establishing it as the optimal choice for this problem.
  • The inclusion of structural heuristics like 'Loners' and 'Phantoms' improved link prediction, validating their relevance in identifying implicit traceability.
  • The method demonstrated robustness across diverse open-source projects, suggesting generalizability to other development environments using Git and Jira/Bugzilla.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.