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

自动化的隐性成本:GitHub Actions 工作流维护的实证研究

The Hidden Costs of Automation: An Empirical Study on GitHub Actions Workflow Maintenance

Pablo Valenzuela-Toledo, Alexandre Bergel, Timo Kehrer, Oscar Nierstrasz

AI总结:

本文通过对近 200 个成熟 GitHub 项目中 GitHub Actions 工作流文件演化的实证研究,揭示了自动化工作流维护的隐性成本及其主要驱动因素,并呼吁改进资源规划、最佳实践和工具支持。

摘要:

GitHub Actions(GA)是一个编排平台,用于简化软件工程任务(如构建、测试和部署)的自动执行。尽管 GA 工作流是实现自动化的主要手段,但根据我们的经验和观察,仍需要人工干预来纠正缺陷、更新依赖或重构现有的工作流文件。事实上,先前的研究已经表明,与工作流类似的软件制品(如构建文件和机器人)会给软件项目带来额外的维护任务。这表明,同样用于在专业软件生产中自动化重复任务的工作流文件,可能会给开发者带来额外的工作负担。然而,这类工作的性质尚未得到充分研究。本文通过研究近 200 个成熟 GitHub 项目中跨十种编程语言的工作流文件的演化,开展了一项大规模实证调查,以刻画 GA 工作流的维护特征。我们的发现在很大程度上证实了先前关于类似制品维护研究的结果,同时也揭示了 GA 特有的见解,例如缺陷修复和 CI/CD 改进是 GA 维护的主要驱动因素之一。一个直接的启示是,从业者应当意识到需要为维护 GA 工作流进行适当的资源规划与分配,从而揭示出“自动化的隐性成本”。我们的发现还呼吁识别并记录此类维护的最佳实践,并增强支持依赖跟踪和更完善的工作流规范错误报告的工具功能。

英文摘要:

GitHub Actions (GA) is an orchestration platform that streamlines the automatic execution of software engineering tasks such as building, testing, and deployment. Although GA workflows are the primary means for automation, according to our experience and observations, human intervention is necessary to correct defects, update dependencies, or refactor existing workflow files. In fact, previous research has shown that software artifacts similar to workflows, such as build files and bots, can introduce additional maintenance tasks in software projects. This suggests that workflow files, which are also used to automate repetitive tasks in professional software production, may generate extra workload for developers. However, the nature of such effort has not been well studied. This paper presents a large-scale empirical investigation towards characterizing the maintenance of GA workflows by studying the evolution of workflow files in almost 200 mature GitHub projects across ten programming languages. Our findings largely confirm the results of previous studies on the maintenance of similar artifacts, while also revealing GA-specific insights such as bug fixing and CI/CD improvement being among the major drivers of GA maintenance. A direct implication is that practitioners should be aware of proper resource planning and allocation for maintaining GA workflows, thus exposing the ``hidden costs of automation.'' Our findings also call for identifying and documenting best practices for such maintenance, and for enhanced tool features supporting dependency tracking and better error reporting of workflow specifications.

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

↑