paperbot · PL 论文追踪

全部论文 待读 收藏

P2 A Large-Scale Empirical Study on Semantic Versioning in Golang Ecosystem

Golang 生态系统中语义化版本的大规模实证研究
ASE 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE)2023匹配度 3/10 · 该论文属于大规模实证软件工程与程序分析交叉,涉及破坏性变更检测和 Go 生态数据集,与用户对程序分析、benchmark/数据集和工业落地的兴趣有边缘交集;但未涉及 LLM/Agentic 程序、浮点程序分析或贝叶斯程序分析,也非用户核心追的 PL→AI / AI→PL 问题。引用 10 inbox
Wenke Li, Feng Wu, Cai Fu, Fan Zhou
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:首次对 Go 生态进行大规模实证,提出 GoSVI 检测破坏性变更并分析 SemVer 合规性与影响。

第三方库升级常引入破坏性变更,阻碍客户端升级。虽然语义化版本(SemVer)用于标示兼容性,但 Go 生态缺少检测工具与数据集。本文首次对 Go 生态开展大规模实证研究,提出 GoSVI,通过解析客户端标识符并比较类型来检测破坏性变更的影响。作者收集首个带依赖图的大规模 Go 数据集:124K 个第三方库和 532K 个客户端程序。结果显示,86.3% 的库升级符合 SemVer,但 28.6% 的非主版本升级引入破坏性变更;合规率从 2018/09 的 63.7% 升至 2023/03 的 92.2%;33.3% 的下游客户端可能受影响。

问题
第三方库升级中的破坏性变更会阻碍客户端升级;Go 生态缺乏检测工具与大规模数据集,SemVer 合规性及影响未知。
方法
提出 GoSVI,通过解析客户端程序标识符并比较其类型与破坏性变更,检测升级中的破坏性变更及其影响;构建带依赖图的 Go 数据集。
评估
从 GitHub 收集 124K 个第三方库和 532K 个客户端程序,开展大规模实证分析,统计 SemVer 合规率、破坏性变更趋势及下游影响。
原文摘要(Abstract)

Third-party libraries (TPLs) have become an essential component of software, accelerating development and reducing maintenance costs. However, breaking changes often occur during the upgrades of TPLs and prevent client programs from moving forward. Semantic versioning (SemVer) has been applied to standardize the versions of releases according to compatibility, but not all releases follow SemVer compliance. Lots of work focuses on SemVer compliance in ecosystems such as Java and JavaScript beyond Golang (Go for short). Due to the lack of tools to detect breaking changes and dataset for Go, developers of TPLs do not know if breaking changes occur and affect client programs, and developers of client programs may hesitate to upgrade dependencies in terms of breaking changes. To bridge this gap, we conduct the first large-scale empirical study in the Go ecosystem to study SemVer compliance in terms of breaking changes and their impact. In detail, we propose GoSVI (Go Semantic Versioning Insight) to detect breaking changes and analyze their impact by resolving identifiers in client programs and comparing their types with breaking changes. Moreover, we collect the first large-scale Go dataset with a dependency graph from GitHub, including 124K TPLs and 532K client programs. Based on the dataset, our results show that 86.3% of library upgrades follow SemVer compliance and 28.6% of no-major upgrades introduce breaking changes. Furthermore, the tendency to comply with SemVer has improved over time from 63.7% in 2018/09 to 92.2% in 2023/03. Finally, we find 33.3% of downstream client programs may be affected by breaking changes. These findings provide developers and users of TPLs with valuable insights to help make decisions related to SemVer.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{abs-2309-02894,
  title = {A Large-Scale Empirical Study on Semantic Versioning in Golang Ecosystem},
  author = {Wenke Li and Feng Wu and Cai Fu and Fan Zhou},
  booktitle = {ASE},
  year = {2023},
  doi = {10.1109/ase56229.2023.00140}
}