Gathering GitHub OSS Requirements from Q&A Community: an Empirical Study

Hao Huang, Yao Lu, Xinjun Mao

Abstract: Cross-community collaboration can exploit the expertise and knowledge of crowds in different communities. Recently, an increasing number of users in the open-source software (OSS) community, specifically GitHub, have attempted to gather software requirements from question and answer (Q&A) communities such as Stack Overflow (SO). To investigate this emerging phenomenon, this paper presents an exploratory study on cross-community requirements gathering. By manually sampling 3,266 practice cases, we quantitatively analyze the popularity of the phenomenon, the characteristics of the gathered requirements, and cross-community collaboration behaviors. Key findings indicate that more than half of the requirements gathered from SO are enhancements, and the majority are non-functional requirements. Furthermore, OSS developers can directly obtain solutions and contributions from SO during the requirements gathering process.

The Gap in OSS Requirements Engineering

In the world of Open Source Software (OSS), requirements engineering is often an informal process. Unlike traditional software development, which relies on strict specifications, OSS requirements typically emerge from "the crowd" via issue trackers. However, a significant gap exists: users often discuss their frustrations, technical hurdles, and desired features on Q&A sites like Stack Overflow rather than filing formal GitHub issues.

An example of a GitHub issue referencing a Stack Overflow post to define a software requirement.

This study explores how developers bridge this gap by mining discussions on Stack Overflow to identify new features, bugs, and performance needs. This "cross-community requirements gathering" has become a vital source for identifying software needs that might otherwise go undocumented in official repositories.

Methodology and Datasets

The researchers conducted an empirical study using a combination of automated data mining and manual qualitative analysis. They linked GitHub issues with Stack Overflow posts by extracting SO links embedded in GitHub issue descriptions. From a raw dataset of 3,266 issues, they manually annotated 1,034 issues that specifically represented software requirements.

These requirements were classified by type (Bug, Feature, or Enhancement) and nature (Functional vs. Non-Functional). The study utilized two massive archives: GHTorrent (GitHub metadata) and SOTorrent (Stack Overflow history). The final dataset spanned 864 different OSS projects, including major ecosystems like TensorFlow and Flutter.

Key Insights: The Nature of Gathered Requirements

The "Enhancement" Engine

The study found that the majority of requirements gathered from SO are not simple bug fixes or entirely new features. Instead, 52.4% are "enhancements" to existing code. This suggests that Stack Overflow serves as a primary site for refining software based on real-world usage hurdles.

A Goldmine for Non-Functional Requirements (NFRs)

Surprisingly, 73% of the requirements gathered from SO were non-functional, focusing on critical areas like security, reliability, and performance. Users often struggle to articulate these technical needs directly on GitHub but will describe symptoms—such as crashes or latency—on Stack Overflow, which developers then translate into requirements.

The distribution of requirement categories (a) and GitHub issue labels (b) found in the study.

Collaboration Dynamics and Efficiency

One of the most striking findings involves the speed of response. When a Stack Overflow post explicitly mentions a GitHub repository name (in the title, body, or tags), the median "Response Time" for a developer to create a corresponding GitHub issue is just 4 days. Without this explicit mention, the median time jumps to approximately 1,000 days.

Furthermore, the collaboration is highly efficient. Approximately 16.8% of the linked GitHub issues provide direct solutions from SO, and 15.4% include code examples. This effectively turns a "requirement" into a "ready-to-implement" task for maintainers. This process is largely driven by "power users": on SO, "trusted users" (those with 20k+ reputation) contribute the most requirements, while on GitHub, repository owners (55.5%) are the primary actors who implement these external insights.

Conclusion and Future Directions

While the practice is widespread and growing, it currently relies heavily on manual effort. The authors noted limitations in the scale of manual annotation and the focus on primary links. To address this, they propose the development of two-way recommendation tools. Such tools could automatically alert GitHub developers when relevant problems are discussed on Stack Overflow, further tightening the feedback loop between the user community and software maintainers.

Summary updated

Abstract

Cross-community collaboration can exploit the expertise and knowledges of crowds in different communities. Recently increasing users in open source software (OSS) community like GitHub attempt to gather software requirements from question and answer (Q&A) communities such as Stack Overflow (SO). In order to investigate this emerging crosscommunity collaboration phenomenon, the paper presents an exploratory study on cross-community requirements gathering of OSS projects in GitHub. We manually sample 3266 practice cases and quantitatively analyze the popularity of the phenomenon, the characteristics of the gathered requirements, and collaboration behaviors of cross-community. Some important findings are obtained: more than half of the requirements gathered from SO are enhancements and the majority of the gathered requirements arenon-functionalrequirements.Inaddition,OSSdeveloperscan directlyobtainrelatedsolutionsandcontributionsofthegathered requirements from SO in the gathering process.
BibTeX
@inproceedings{huang2020gathering,
  author = {Hao Huang and Yao Lu and Xinjun Mao},
  title = {{Gathering GitHub OSS Requirements from Q\&A Community: an Empirical Study}},
  booktitle = {ICECCS},
  year = {2020},
  url = {https://openreview.net/forum?id=RMY4DQwAE3},
}
Figure