University of Saskatchewan
Assessing the Impact of Pull Request Reviews on Software Quality
Abstract
dc:description.abstractTechnical Debt (TD) is a metaphor used to describe the sub-optimal state of a software system incurred due to a conscious design decision, oversight, and ignorance. Existing sources of TD have limitations, such as instances of TD overlooked due to carelessness, lack of knowledge, and ambiguity as a result of diverging rules of static analyzers. GitHub, one of the most popular platforms for hosting software repositories, enables collaboration among software developers. When changes need to be made to the code, developers use Pull Requests (PRs) to submit code changes. Then, other developers (acting as reviewers) will review and leave comments (PR reviews) on the changes before merging the PR. These reviews primarily pinpoint issues in the code changes. The goal of this thesis is to investigate the impact of PR reviews on the quality of the software. To achieve our goal, we performed three studies. In study 1, we investigated whether PR reviews can be used to identify TD. By leveraging PR reviews, we address the limitations of current TD identifications and reduce the amount of TD missed due to carelessness and lack of knowledge. Study 2 explored whether PR reviews enhance the code quality of the most bug-prone architecturally coupled source files. Finally, in study 3, we investigated the impact of PR reviews on software quality. After analyzing PR reviews, we identified TD indications in 38.2% of the PR reviews. To automate the process of TD detection, we use pre-trained Transformer models. The pre-trained RoBERTa model effectively detects TD from PR reviews with an F1-score of 0.85. Next, we found that the software quality in the most bug-prone architecturally coupled files declines regardless of the reviews in these source files. We observed that the inheritance hierarchy of the software system does not change significantly, whereas most changes occur in class complexity, class couplings, and method invocations after a class receives a message. Additionally, code smells, which are often used as a proxy for TD, also increase, indicating potential issues in the source code. Overall, all source files, including the bug-prone architecturally coupled source files, showed a decline in software quality, irrespective of the reviews in the PR. In summary, despite the PR reviews pertaining to issues often related to code quality, they are not resolved, and the software quality declines over time.
Degree
thesis:*- Name thesis:degree_name
- Master of Science (M.Sc.)
- Level thesis:degree_level
- Masters
- Discipline thesis:degree_discipline
- Computer Science
- Department thesis:degree_department
- Computer Science
- Grantor
- University of Saskatchewan
- Year dc:date.issued
- 2023
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Karmakar, Shubhashis
- Advisor dc:contributor.advisor
-
- Codabux, Zadia
- Committee members dc:contributor.committeemember
-
- Vidoni, Melina
- Gutwin, Carl
- Osgood, Nathaniel
- ORCID person:identifier.orcid
Subjects
dc:subject × 3Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10388/14589