Skip to main content
Log in

Studying the impact of risk assessment analytics on risk awareness and code review performance

  • Published:
Empirical Software Engineering Aims and scope Submit manuscript

Abstract

While code review is a critical component of modern software quality assurance, defects can still slip through the review process undetected. Previous research suggests that the main reason for this is a lack of reviewer awareness about the likelihood of defects in proposed changes; even experienced developers may struggle to evaluate the potential risks. If a change’s riskiness is underestimated, it may not receive adequate attention during review, potentially leading to defects being introduced into the codebase. In this paper, we investigate how risk assessment analytics can influence the level of awareness among developers regarding the potential risks associated with code changes; we also study how effective and efficient reviewers are at detecting defects during code review with the use of such analytics. We conduct a controlled experiment using Gherald, a risk assessment prototype tool that analyzes the riskiness of change sets based on historical data. Following a between-subjects experimental design, we assign participants to the treatment (i.e., with access to Gherald) or control group. All participants are asked to perform risk assessment and code review tasks. Through our experiment with 48 participants, we find that the use of Gherald is associated with statistically significant improvements (one-tailed, unpaired Mann-Whitney U test, \(\alpha \) = 0.05) in developer awareness of riskiness of code changes and code review effectiveness. Moreover, participants in the treatment group tend to identify the known defects more quickly than those in the control group; however, the difference between the two groups is not statistically significant. Our results lead us to conclude that the adoption of a risk assessment tool has a positive impact on code review practices, which provides valuable insights for practitioners seeking to enhance their code review process and highlights the importance for further research to explore more effective and practical risk assessment approaches.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8

Similar content being viewed by others

Data Availability

To facilitate reproduction and foment further research on the field, we make a replication package publicly available.(https://doi.org/10.5281/zenodo.7838135) We also publish Gherald as a Python Package on pip. The source code is available online on our public GitHub repository. (https://github.com/filipe-cogo/gherald)

Notes

  1. This experiment was reviewed by and received ethics clearance from the University of Waterloo Research Ethics Committee (ORE #44022).

  2. https://commons.apache.org/proper/commons-lang/

  3. https://www.apache.org

  4. https://issues.apache.org/jira/projects/LANG/issues/

  5. https://github.com/apache/commons-lang/

References

Download references

Acknowledgements

The findings and opinions expressed in this paper are those of the authors and do not necessarily represent or reflect those of Huawei and/or its subsidiaries and affiliates. Moreover, our results do not in any way reflect the quality of Huawei’s products.

Funding

This study was funded by Waterloo-Huawei Joint Innovation Lab.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Xueyao Yu.

Ethics declarations

Conflict of Interest

The authors declared that they have no conflict of interest.

Ethics Approval

This study was reviewed by and received ethics clearance from the University of Waterloo Research Ethics Committee (ORE #44022).

Additional information

Communicated by: Fabio Palomba.

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Yu, X., Cogo, F.R., McIntosh, S. et al. Studying the impact of risk assessment analytics on risk awareness and code review performance. Empir Software Eng 29, 46 (2024). https://doi.org/10.1007/s10664-024-10443-x

Download citation

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s10664-024-10443-x

Keywords

Navigation