加速世界中的软件节俭:持续集成案例
Software Frugality in an Accelerating World: the Case of Continuous Integration
AI总结:
本文首次大规模测量GitHub Actions中Java项目CI流水线的能耗与碳排放,揭示单次执行成本低但项目累计影响显著,并呼吁开发者在DevOps实践中考虑环境后果。
摘要:
软件开发与交付的加速要求对软件系统进行严格的持续测试和部署,而这些系统正被部署到日益多样、复杂和动态的环境中。近年来,DevOps以及GitLab、GitHub等集成软件锻造平台的普及,在很大程度上使越来越多软件能够采用持续集成(CI)实践。然而,这一趋势与全球能源消耗担忧以及信息与通信技术(ICT)行业日益增长的节俭需求显著交织。CI流水线通常运行在数据中心中,而数据中心对ICT的环境足迹贡献显著,但目前关于其环境影响的可用信息很少。本文旨在弥补这一空白,首次对使用GitHub Actions实现的CI流水线的能源足迹开展大规模分析,并首次概述CI的能源影响。我们收集、插装并复现了GitHub上396个Java仓库中的838个工作流,以测量其能耗。我们观察到,一条流水线的平均单次能源成本相对较低,为10 Wh。但由于这些流水线在真实环境中被反复调用,每个项目的聚合能源消耗成本较高,平均为22 kWh。在基于区域层面的Wh到CO2估算评估CO2排放时,我们观察到平均聚合CO2排放量相当可观,平均为10.5 kg。形象地说,这相当于一辆典型欧洲汽车行驶约100公里所产生的排放(110 gCO2/km)。基于这些结果,我们主张开发者在实施DevOps实践时,应当拥有相应手段,以更好地预判和反思其CI选择所带来的环境后果。
英文摘要:
The acceleration of software development and delivery requires rigorous continuous testing and deployment of software systems, which are being deployed in increasingly diverse, complex, and dynamic environments. In recent years, the popularization of DevOps and integrated software forges like GitLab and GitHub has largely democratized Continuous Integration (CI) practices for a growing number of software. However, this trend intersects significantly with global energy consumption concerns and the growing demand for frugality in the Information and Communication Technology (ICT) sector. CI pipelines typically run in data centers which contribute significantly to the environmental footprint of ICT, yet there is little information available regarding their environmental impact. This article aims to bridge this gap by conducting the first large-scale analysis of the energy footprint of CI pipelines implemented with GitHub Actions and to provide a first overview of the energy impact of CI. We collect, instrument, and reproduce 838 workflows from 396 Java repositories hosted on GitHub to measure their energy consumption. We observe that the average unitary energy cost of a pipeline is relatively low, at 10 Wh. However, due to repeated invocations of these pipelines in real settings, the aggregated energy consumption cost per project is high, averaging 22 kWh. When evaluating CO2 emissions based on regional Wh-to-CO2 estimates, we observe that the average aggregated CO2 emissions are significant, averaging 10.5 kg. To put this into perspective, this is akin to the emissions produced by driving approximately 100 kilometers in a typical European car (110 gCO2/km). In light of our results, we advocate that developers should have the means to better anticipate and reflect on the environmental consequences of their CI choices when implementing DevOps practices.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。