arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.10585cs.SE
收藏

使用平衡计分卡识别提高代码评审有效性的机会:行业经验报告

Using a Balanced Scorecard to Identify Opportunities to Improve Code Review Effectiveness: An Industrial Experience Report

Masum Hasan, Anindya Iqbal, Mohammad Rafid Ul Islam, A. J. M. Imtiajur Rahman, Amiangshu Bosu

摘要:

同行代码评审是一种被广泛采用的软件工程实践,以确保代码质量,并确保软件的可靠性,在商业和开源软件项目。由于与实践代码审查相关的大量工作开销,项目经理经常想知道他们的代码审查是否有效,以及在这方面是否有改进的机会。由于三星孟加拉研究院(SRBD)的项目经理也对这些问题感兴趣,因此本研究使用平衡SCorecard(BSC)策略开发,部署和评估了生产就绪的解决方案,SRBD经理可以在日常管理中使用该策略来监控单个开发人员,特定项目或整个组织的代码审查有效性。根据平衡计分卡战略的四步框架,我们:1)定义了本研究的运营目标,2)定义了一组衡量代码审查有效性的指标,3)开发了一个自动化机制来衡量这些指标,以及4)开发和评估了一个监控应用程序,以通知关键利益相关者。我们的自动化模型,以确定有用的代码审查实现了7.88%和14.39%的准确性和少数类F1得分分别比以前的研究中提出的模型的改进。它还优于SRBD的人类评估者,该模型在准确性和少数类F1得分方面分别为25.32%和23.84%。在我们的部署后调查中,SRBD开发人员和管理人员表示,他们发现我们的解决方案非常有用,它为他们提供了重要的见解,以帮助他们做出决策。

英文摘要:

Peer code review is a widely adopted software engineering practice to ensure code quality and ensure software reliability in both the commercial and open-source software projects. Due to the large effort overhead associated with practicing code reviews, project managers often wonder, if their code reviews are effective and if there are improvement opportunities in that respect. Since project managers at Samsung Research Bangladesh (SRBD) were also intrigued by these questions, this research developed, deployed, and evaluated a production-ready solution using the Balanced SCorecard (BSC) strategy that SRBD managers can use in their day-to-day management to monitor individual developer's, a particular project's or the entire organization's code review effectiveness. Following the four-step framework of the BSC strategy, we: 1) defined the operation goals of this research, 2) defined a set of metrics to measure the effectiveness of code reviews, 3) developed an automated mechanism to measure those metrics, and 4) developed and evaluated a monitoring application to inform the key stakeholders. Our automated model to identify useful code reviews achieves 7.88% and 14.39% improvement in terms of accuracy and minority class F1 score respectively over the models proposed in prior studies. It also outperforms human evaluators from SRBD, that the model replaces, by a margin of 25.32% and 23.84% respectively in terms of accuracy and minority class F1 score. In our post-deployment survey, SRBD developers and managers indicated that they found our solution as useful and it provided them with important insights to help their decision makings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑