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

开发者如何使用迁移指南?Log4j的案例研究

How Do Developers Use Migration Guides? A Case Study of Log4j

Nara Institute of Science and Technology(奈良先端科学技术大学院大学);Wakayama University(和歌山大学);Notre Dame Seishin University(圣母圣心大学)

Takahiro Monno, Kazumasa Shimari, Tetsuya Kanda, Kazuma Yamasaki, Kenichi Matsumoto

AI总结:

本文通过Log4j的案例研究,探讨开发者如何使用迁移指南,发现开发者在拉取请求描述中频繁引用迁移指南,且大部分引用指向整个指南而非特定部分,表明迁移指南在迁移过程的各个阶段都起着重要作用。

摘要:

迁移指南是一种软件文档,帮助开发者解决库版本更新引入的破坏性更改。先前的研究主要集中在发布说明、API参考手册和补丁说明等文档上。然而,专注于迁移指南的研究仍然有限。改进迁移指南的可用性和覆盖范围对于帮助开发者高效解决破坏性更改至关重要。然而,我们仍然缺乏对当前迁移指南如何提供的清晰理解以及开发者如何在实践中使用它们的了解。为此,我们首先调查是否已知引入不兼容性的库提供迁移指南。然后,我们对Log4j进行了详细案例研究,该库在过去经历了大规模的破坏性更新。我们通过实证分析研究开发者在现实项目中如何参考和使用官方迁移指南。我们发现,拉取请求作者最频繁在拉取请求描述中引用迁移指南,且大多数引用(82.81%)指向整个指南而非特定部分。我们还发现,开发者不仅在主要版本更新期间使用迁移指南,还在后续维护任务中使用,表明指南在整个迁移过程中都作为资源发挥作用。

英文摘要:

Migration guides are a form of software documentation that helps developers address breaking changes introduced in library version updates. Prior studies have examined documents such as release notes, API reference manuals, and patch notes. However, research that focuses specifically on migration guides remains limited. Improving the usability and coverage of migration guides is essential for helping developers resolve breaking changes efficiently. Yet, we still lack a clear understanding of how migration guides are currently provided and how developers use them in practice. To fill this gap, we first investigate whether libraries known to introduce incompatibilities provide migration guides. We then conduct a detailed case study on Log4j, a library that has experienced large-scale breaking updates in the past. We empirically analyze how developers refer to and use the official migration guide in real-world projects. We find that pull request authors most frequently reference the migration guide in the pull request description, and that most references (82.81%) link to the entire guide rather than specific sections. We also find that developers use migration guides not only during major version updates but also during subsequent maintenance tasks, suggesting that the guides serve as a resource throughout the entire migration process.

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

↑