[Paper Review] Initial and Eventual Software Quality Relating to Continuous Integration in GitHub
This study analyzes continuous integration (CI) failure patterns in GitHub pull requests across large open-source projects, using Travis-CI logs to assess initial quality (IQ R) and post-merge bug fixes to measure eventual quality (EQ R). It finds that CI failures concentrate in a few files, correlate weakly with eventual defects, and that PRs with CI failures have 31.5% higher odds of later defects, suggesting CI alone does not guarantee high-quality code.
The constant demand for new features and bug fixes are forcing software projects to shorten cycles and deliver updates ever faster, while sustaining software quality. The availability of inexpensive, virtualized, cloud-computing has helped shorten schedules, by enabling continuous integration (CI) on demand. Platforms like GitHub support CI in-the-cloud. In projects using CI, a user submitting a pull request triggers a CI step. Besides speeding up build and test, this fortuitously creates voluminous archives of build and test successes and failures. CI is a relatively new phenomenon, and these archives allow a detailed study of CI. How many problems are exposed? Where do they occur? What factors affect CI failures? Does the "initial quality" as ascertained by CI predict how many bugs will later appear ("eventual quality") in the code? In this paper, we undertake a large-scale, fine resolution study of these records, to better understand CI processes, the nature, and predictors of CI failures, and the relationship of CI failures to the eventual quality of the code. We find that: a) CI failures appear to be concentrated in a few files, just like normal bugs; b) CI failures are not very highly correlated with eventual failures; c) The use of CI in a pull request doesn't necessarily mean the code in that request is of good quality.
Motivation & Objective
- To understand the distribution and predictors of CI failures in pull requests on GitHub.
- To investigate whether initial quality, as measured by CI failures, predicts eventual software quality post-merge.
- To identify process, product, and social factors influencing CI failure rates and eventual defect occurrence.
- To evaluate the effectiveness of CI as a quality gate by comparing pre-merge failures with post-merge defect repairs.
- To assess whether historical defect patterns in files influence both CI and eventual quality outcomes.
Proposed method
- Mining CI logs from Travis-CI for pull requests in large GitHub projects to extract initial quality records (IQ R).
- Identifying post-merge defect repairs via version control history and commit analysis to construct eventual quality records (EQ R).
- Aggregating data at the file and pull request level, focusing on CI failures and subsequent bug fixes within a six-month window post-merge.
- Applying statistical modeling to assess correlations between IQ R, EQ R, and various predictors such as file change frequency and historical defect density.
- Using logistic regression to estimate odds ratios for eventual quality failures based on initial CI failure indicators and historical defect data.
- Limiting analysis to projects with active issue trackers and excluding PRs with no CI logs to ensure data quality and consistency.
Experimental results
Research questions
- RQ1Are CI failures distributed across many files, or are they concentrated in a few files, similar to traditional software bugs?
- RQ2To what extent does the presence of CI failures in a pull request predict the likelihood of future, post-merge defects?
- RQ3How do factors such as file change frequency, historical defect density, and PR size influence CI failure rates?
- RQ4Is there a meaningful relationship between initial quality (CI failures) and eventual quality (post-merge defects) at the file or PR level?
- RQ5Does the history of non-CI defects in a file affect the likelihood of subsequent CI failures or eventual quality issues?
Key findings
- CI failures are highly concentrated in a small number of files, mirroring the distribution pattern of traditional software bugs.
- PRs that modify files with a history of CI failures are more likely to experience CI failures themselves in the future.
- Surprisingly, PRs touching files that are changed more frequently have fewer CI failures, suggesting high-churn files may be more stable in CI.
- PRs with a worse initial quality record (more CI failures) do not necessarily lead to higher eventual quality problems, indicating weak correlation between IQ R and EQ R.
- Despite the weak overall correlation, PRs with CI failures have 31.5% higher odds of being associated with eventual quality problems after merging.
- Files with a history of non-CI defects have higher odds of future EQ R failures, even when controlling for CI failure history, with a 27.3% increase in risk per unit increase in historical non-CI bugs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.