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

GitHub动作工作流中的自动化与重用实践:从业者的视角

Automation and Reuse Practices in GitHub Actions Workflows: A Practitioner's Perspective

University of Mons(蒙斯大学)

Hassan Onsori Delicheh, Guillaume Cardoen, Alexandre Decan, Tom Mens

AI总结:

研究从业者的GitHub动作工作流自动化与重用实践,揭示工作流开发中的优劣做法及维护支持机会,探讨核心CI/CD任务自动化倾向及可重用工作流的挑战。

摘要:

GitHub原生支持通过GitHub Actions的工作流自动化。然而,工作流维护常被视为开发者的负担,他们经常面临编写、测试、调试和维护工作流的困难。关于从业者偏好的自动化和重用实践知之甚少。因此,我们调查了419名从业者,以阐明良好的和不良的工作流开发实践,并识别支持工作流维护的机会。具体而言,我们研究从业者倾向于使用GitHub Actions自动化哪些任务,他们偏好的工作流创建机制,以及他们优先考虑的非功能性特性。我们还检查了GitHub的工作流重用机制的相关实践和挑战。我们观察到自动化努力倾向于集中在核心CI/CD任务上,而在关键领域如安全分析和性能监控上则较少强调。从业者强烈依赖可重用的Actions,但可重用的工作流采用频率较低。此外,我们还观察到Action版本控制和维护的挑战。复制粘贴仍然是常见的做法,以获得更多的控制并避免依赖可重用组件的复杂性。这些见解表明需要改进的工具,增强对广泛自动化任务的支持,以及更好的机制来发现、管理和信任可重用的工作流组件。

英文摘要:

GitHub natively supports workflow automation through GitHub Actions. Yet, workflow maintenance is often considered a burden for software developers, who frequently face difficulties in writing, testing, debugging, and maintaining workflows. Little knowledge exists concerning the automation and reuse practices favoured by workflow practitioners. We therefore surveyed 419 practitioners to elucidate good and bad workflow development practices and to identify opportunities for supporting workflow maintenance. Specifically, we investigate the tasks that practitioners tend to automate using GitHub Actions, their preferred workflow creation mechanisms, and the non-functional characteristics they prioritise. We also examine the practices and challenges associated with GitHub's workflow reuse mechanisms. We observe a tendency to focus automation efforts on core CI/CD tasks, with less emphasis on crucial areas like security analysis and performance monitoring. Practitioners strongly rely on reusable Actions, but reusable workflows see less frequent adoption. Furthermore, we observed challenges with Action versioning and maintenance. Copy-pasting remains a common practice to have more control and avoid the complexity of depending on reusable components. These insights suggest the need for improved tooling, enhanced support for a wide range of automation tasks, and better mechanisms for discovering, managing, and trusting reusable workflow components.

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

↑