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

开发者如何采用、使用和演变CI/CD缓存:一项针对GitHub Actions的实证研究

How Developers Adopt, Use, and Evolve CI/CD Caching: An Empirical Study on GitHub Actions

University of Toronto(多伦多大学);McGill University(麦吉尔大学);Queen’s University(女王大学)

Kazi Amit Hasan, Yuan Tian, Safwat Hassan, Steven H. H. Ding

AI总结:

本文通过分析952个GitHub仓库,研究开发者在GitHub Actions中配置和演变CI/CD缓存的方式,揭示缓存使用模式及演变驱动因素,量化缓存维护的大量工作量。

摘要:

持续集成/持续交付(CI/CD)缓存被广泛用于减少重复计算并提高效率,但有效维护缓存需要持续维护工作。本文首次对GitHub Actions上的CI/CD缓存配置和演变进行了实证研究。我们分析了952个GitHub仓库(266个缓存采用者和686个非采用者),以比较仓库特征,刻画作业和步骤层面的缓存使用情况,揭示缓存配置演变模式,并识别与缓存相关的更改驱动因素。我们的分析涵盖了1,556个作业文件、10,373个提交和17,185个作业配置更改,包括每个仓库平均9.37次缓存相关更改。我们的主要发现是:(1)采用缓存的仓库比非采用者更活跃和流行;(2)缓存被用于多种CI/CD作业类型,通过多种缓存机制而非单一标准化方法;(3)缓存配置通过频繁、重复的维护模式演变,构建和测试作业有快速更新,而其他作业类型演变较慢;(4)与缓存相关的修改由不同的维护需求驱动:参数更新主要由人工驱动以修复问题,而版本更新发生较晚,通常由机器人驱动以维护依赖项。我们的发现量化了CI/CD缓存的大量维护工作量,并突显了提高可靠性和工具支持的机会。

英文摘要:

Continuous Integration/Continuous Delivery (CI/CD) caching is widely used to reduce repeated computation and improve CI/CD efficiency, yet maintaining effective caching requires ongoing maintenance effort. In this paper, we present the first empirical study on how developers configure and evolve caching in CI/CD workflows on GitHub Actions. We analyze 952 GitHub repositories (266 cache adopters and 686 non-adopters), to compare repository characteristics, characterize caching usage at the job and step levels, uncover patterns in caching configuration evolution, and identify the drivers of cache-related changes. Our analysis spans 1,556 workflow files, 10,373 commits, and 17,185 workflow configuration changes, including an average of 9.37 cache-related changes per repository. Our main observations are: (1) cache-adopting repositories are more active and popular than non-adopters; (2) caching is used across multiple CI/CD job types through a variety of caching mechanisms rather than a single standardized approach; (3) caching configurations evolve through frequent, repetitive maintenance patterns, with rapid updates in build and test jobs and slower evolution in other job types; and (4) cache-related modifications are driven by distinct maintenance needs: parameter updates are mainly human-driven to fix issues, while version updates occur later and are often bot-driven for dependency maintenance. Our findings quantify the substantial maintenance effort involved in CI/CD caching and highlight opportunities to improve reliability and tool support.

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

↑