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

了解外部拉取请求在NPM生态系统中的作用

Understanding the Role of External Pull Requests in the NPM Ecosystem

Vittunyuta Maeprasart, Supatsara Wattanakriengkrai, Raula Gaikovina Kula, Christoph Treude, Kenichi Matsumoto

摘要:

在软件应用程序中使用第三方库的风险在于,非常需要的维护工作仅由库维护人员执行。这些库可能依赖于一个核心的维护团队(他们可能是一个没有报酬和过度工作的维护者)来服务于庞大的客户端用户群。另一方面,开源的好处是接收贡献(以外部PR的形式),以帮助修复bug和添加新功能。在本文中,我们调查的作用,外部PR(贡献的核心团队以外的维护者)有助于一个库。通过初步分析,我们发现外部PR是普遍存在的,并且与维护者PR一样可能被接受。我们发现,提交的外部PR中有26.75%解决了现有问题。此外,修复也属于诸如破坏性更改、紧急和等待等标签。与内部PR不同,外部PR涵盖文档变更(384个PR中的44个),而没有那么多的重构(384个PR中的34个)。另一方面,外部PR还涵盖了新功能(384个PR中的380个)和错误(384个PR中的120个)。我们的研究结果为理解维护人员如何决定他们选择哪些外部贡献来发展他们的库以及他们在减少工作量方面扮演什么角色奠定了基础。

英文摘要:

The risk to using third-party libraries in a software application is that much needed maintenance is solely carried out by library maintainers. These libraries may rely on a core team of maintainers (who might be a single maintainer that is unpaid and overworked) to serve a massive client user-base. On the other hand, being open source has the benefit of receiving contributions (in the form of External PRs) to help fix bugs and add new features. In this paper, we investigate the role by which External PRs (contributions from outside the core team of maintainers) contribute to a library. Through a preliminary analysis, we find that External PRs are prevalent, and just as likely to be accepted as maintainer PRs. We find that 26.75% of External PRs submitted fix existing issues. Moreover, fixes also belong to labels such as breaking changes, urgent, and on-hold. Differently from Internal PRs, External PRs cover documentation changes (44 out of 384 PRs), while not having as much refactoring (34 out of 384 PRs). On the other hand, External PRs also cover new features (380 out of 384 PRs) and bugs (120 out of 384). Our results lay the groundwork for understanding how maintainers decide which external contributions they select to evolve their libraries and what role they play in reducing the workload.

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

↑