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

回馈:软件生态系统中与库依赖性变化一致的贡献

Giving Back: Contributions Congruent to Library Dependency Changes in a Software Ecosystem

Supatsara Wattanakriengkrai, Dong Wang, Raula Gaikovina Kula, Christoph Treude, Patanamon Thongtanunam, Takashi Ishio, Kenichi Matsumoto

摘要:

第三方库在当代软件开发中的普遍采用导致了大型相互依赖网络的创建,其中单个库的可持续性问题可能具有广泛的网络效应。这些图书馆的维护人员往往超负荷工作,依靠志愿人员的贡献来维持这些图书馆。在这项工作中,我们测量与依赖关系变化一致的贡献,以了解它们来自哪里(即,非维护者、客户端维护者、库维护者、以及库和客户端维护者),分析它们是否有助于库休眠(即,缺乏活动),并调查这些贡献与开发人员的典型贡献之间的相似性。因此,我们利用社会技术来衡量依赖-贡献一致性(DC一致性),即,贡献与依赖的一致程度。我们进行了一项大规模的实证研究,使用170万个问题,97万个拉取请求(PR)和属于107,242个NPM包的超过530万个提交来测量NPM生态系统的DC一致性。在生态系统层面,我们在时间上精确定位与依赖性变化一致的峰值(即,16%DC一致性评分)。令人惊讶的是,这些贡献来自生态系统本身(即,客户端和库的非维护者)。在项目层面上,我们发现,DC一致性共享一个统计上显着的关系,一个包成为休眠的可能性。最后,通过比较贡献的源代码,我们发现,一致的贡献是统计上不同的典型贡献。我们的工作对鼓励和维持贡献有影响,特别是支持需要依赖关系更改的库维护者。

英文摘要:

Popular adoption of third-party libraries for contemporary software development has led to the creation of large inter-dependency networks, where sustainability issues of a single library can have widespread network effects. Maintainers of these libraries are often overworked, relying on the contributions of volunteers to sustain these libraries. In this work, we measure contributions that are aligned with dependency changes, to understand where they come from (i.e., non-maintainer, client maintainer, library maintainer, and library and client maintainer), analyze whether they contribute to library dormancy (i.e., a lack of activity), and investigate the similarities between these contributions and developers' typical contributions. Hence, we leverage socio-technical techniques to measure the dependency-contribution congruence (DC congruence), i.e., the degree to which contributions align with dependencies. We conduct a large-scale empirical study to measure the DC congruence for the NPM ecosystem using 1.7 million issues, 970 thousand pull requests (PR), and over 5.3 million commits belonging to 107,242 NPM packages. At the ecosystem level, we pinpoint in time peaks of congruence with dependency changes (i.e., 16% DC congruence score). Surprisingly, these contributions came from the ecosystem itself (i.e., non-maintainers of either client and library). At the project level, we find that DC congruence shares a statistically significant relationship with the likelihood of a package becoming dormant. Finally, by comparing source code of contributions, we find that congruent contributions are statistically different to typical contributions. Our work has implications to encourage and sustain contributions, especially to support library maintainers that require dependency changes.

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

↑