arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.19146cs.SE
收藏

持续集成缓存的前景与现实:对Travis CI构建的实证研究

The Promise and Reality of Continuous Integration Caching: An Empirical Study of Travis CI Builds

Trent University(特伦特大学);University of Otago(奥塔哥大学);Queen’s University(女王大学)

Taher A. Ghaleb, Daniel Alencar da Costa, Ying Zou

AI总结:

本文通过分析513,384次构建,发现仅30%的项目采用缓存,早期采用者通常更成熟,且缓存维护复杂,部分项目面临缓存过期和损坏问题。

摘要:

持续集成(CI)通过自动构建软件提供早期反馈,但长时间构建会阻碍开发者生产力。CI服务利用缓存加速构建,但实践中缓存的采用情况和挑战尚不清楚。本文对Travis CI进行了大规模实证研究,分析了1,279个GitHub项目中的513,384次构建。研究发现,仅30%的项目采用CI缓存,早期采用者通常更成熟,具有更多依赖项、提交和更长的CI生命周期。为了理解未采用情况,我们提交了启用缓存的拉取请求,近一半被接受或合并。开发者反馈表明,未或迟缓采用主要源于对CI缓存支持的有限意识。我们进一步研究了缓存维护,识别出五个常见活动,由24%的缓存启用项目执行。尽管三分之一的项目显著减少了构建时间,但97%的构建中发生缓存上传,27%的项目包含过时的缓存艺术。对报告的缓存问题分析显示,开发者主要挣扎于损坏或过时的缓存,并请求更广泛的缓存功能。总体而言,CI缓存并非所有项目都能受益,需要持续维护,并且在实践中比许多开发者预期更复杂。

英文摘要:

Continuous Integration (CI) provides early feedback by automatically building software, but long build durations can hinder developer productivity. CI services use caching to speed up builds by reusing infrequently changing artifacts, yet little is known about how caching is adopted in practice and what challenges it entails. In this paper, we conduct a large-scale empirical study of CI caching in Travis CI, analyzing 513,384 builds from 1,279 GitHub projects. We find that only 30% of projects adopt CI caching, and early adopters are typically more mature, with more dependencies, commits, and longer CI lifespans. To understand non-adoption, we submit pull requests enabling caching in non-adopting projects, and nearly half are accepted or merged. Developer feedback indicates that non- or late adoption mainly results from limited awareness of CI caching support. We further study cache maintenance and identify five common activities, performed by 24% of cache-enabled projects. While one-third of projects see substantial build-time reductions, cache uploads occur in 97% of builds, and 27% of projects contain stale cached artifacts. An analysis of reported caching issues shows developers mainly struggle with corrupted or outdated caches and request broader caching features. Overall, CI caching does not benefit all projects, requires ongoing maintenance, and is more complex in practice than many developers expect.

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

↑