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

基于IR的行业级Bug定位:来自Facebook的观点

Industry-scale IR-based Bug Localization: A Perspective from Facebook

Vijayaraghavan Murali, Lee Gross, Rebecca Qian, Satish Chandra

摘要:

我们探讨的应用程序的信息检索(IR)为基础的错误定位方法在一个大型的工业环境,Facebook的。Facebook的代码库发展迅速,每天都有数千个代码更改提交到一个单一的存储库中。当一个bug被检测到时,为了恢复或修复bug,识别导致bug的提交通常是时间敏感的,并且是强制性的。这是复杂的,因为bug通常表现为复杂而笨拙的特征,例如堆栈跟踪和其他元数据。代码提交也有各种与之相关的特性,从开发人员注释到测试结果。这对bug定位方法提出了独特的挑战,使其成为一个非常重要的操作。在本文中,我们列出了几个实际的关注行业级的IR为基础的错误定位,并提出Bug2Commit,一个工具,旨在解决这些问题。我们还评估了现有的IR为基础的本地化技术的有效性,从软件工程社区,并发现,在复杂的查询或文件,这是常见的Facebook,现有的方法不执行以及Bug2Commit。我们在Facebook的三个应用程序上评估了Bug2Commit:移动应用程序的客户端崩溃,服务器端性能回归和移动模拟性能测试。我们发现Bug2Commit的准确性比现有方法高出17%,从而减少了筛选回归和归因模拟中发现的错误的时间。

英文摘要:

We explore the application of Information Retrieval (IR) based bug localization methods at a large industrial setting, Facebook. Facebook's code base evolves rapidly, with thousands of code changes being committed to a monolithic repository every day. When a bug is detected, it is often time-sensitive and imperative to identify the commit causing the bug in order to either revert it or fix it. This is complicated by the fact that bugs often manifest with complex and unwieldy features, such as stack traces and other metadata. Code commits also have various features associated with them, ranging from developer comments to test results. This poses unique challenges to bug localization methods, making it a highly non-trivial operation. In this paper we lay out several practical concerns for industry-level IR-based bug localization, and propose Bug2Commit, a tool that is designed to address these concerns. We also assess the effectiveness of existing IR-based localization techniques from the software engineering community, and find that in the presence of complex queries or documents, which are common at Facebook, existing approaches do not perform as well as Bug2Commit. We evaluate Bug2Commit on three applications at Facebook: client-side crashes from the mobile app, server-side performance regressions, and mobile simulation tests for performance. We find that Bug2Commit outperforms the accuracy of existing approaches by up to 17%, leading to reduced time for triaging regressions and attributing bugs found in simulations.

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

↑