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

代码审查中信息扩散的上界

The Upper Bound of Information Diffusion in Code Review

Michael Dorner, Daniel Mendez, Krzysztof Wnuk, Ehsan Zabardast, Jacek Czerwonka

AI总结:

本文量化代码审查中信息扩散的上界,通过模拟大中小系统的信息传播,发现其网络扩展性好、传播快且广,为理解和改进作为沟通网络的代码审查奠定基础。

摘要:

背景:代码审查是人类围绕代码变更展开的讨论,形成了能让参与者交换和传播信息的沟通网络。尽管已有定性研究报道,但我们对代码审查作为沟通网络的能力的理解仍有限。目标:本文通过量化信息在代码审查中传播的速度和范围(即代码审查中信息扩散的上界),报告了评估代码审查作为沟通网络能力的第一步。方法:在计算机模拟实验中,我们在大型(Microsoft)、中型(Spotify)和小型(Trivago)代码审查系统中模拟人工信息扩散,这些系统被建模为沟通网络。然后,我们测量参与者之间的最小拓扑距离和时间距离,以量化信息在代码审查中传播的范围和速度。结果:在小型和中型代码审查系统中,平均每个代码审查参与者能在四周内将信息传播到所有参与者的72%至85%之间,这与网络规模和工具无关;对于大型代码审查系统,我们发现绝对边界约为11000个可到达的参与者。平均(中位数)而言,信息在代码审查中两个参与者之间传播所需的拓扑距离少于5跳,时间少于5天。结论:我们发现证据表明,代码审查形成的沟通网络具有良好的扩展性,能快速且广泛地传播信息,这证实了先前定性研究的发现。该研究为理解和改进作为沟通网络的代码审查奠定了基础。

英文摘要:

Background: Code review, the discussion around a code change among humans, forms a communication network that enables its participants to exchange and spread information. Although reported by qualitative studies, our understanding of the capability of code review as a communication network is still limited. Objective: In this article, we report on a first step towards evaluating the capability of code review as a communication network by quantifying how fast and how far information can spread through code review: the upper bound of information diffusion in code review. Method: In an in-silico experiment, we simulate an artificial information diffusion within large (Microsoft), mid-sized (Spotify), and small code review systems (Trivago) modelled as communication networks. We then measure the minimal topological and temporal distances between the participants to quantify how far and how fast information can spread in code review. Results: An average code review participants in the small and mid-sized code review systems can spread information to between 72% and 85% of all code review participants within four weeks independently of network size and tooling; for the large code review systems, we found an absolute boundary of about 11000 reachable participants. On average (median), information can spread between two participants in code review in less than five hops and less than five days. Conclusion: We found evidence that the communication network emerging from code review scales well and spreads information fast and broadly, corroborating the findings of prior qualitative work. The study lays the foundation for understanding and improving code review as a communication network.

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

↑