ci-impact

Stars
0

Environmental impacts of continuous integration

Continuous integration (CI) is used across the world to build, test, and deploy software. But as human-induced climate change is causing dangerous and widespread disruption in nature and affecting the lives of billions of people around the world, what impact does running all this CI have on our planet?

Since I couldn't find any good answers to that question, this repository is an attempt to find out.

Methodology

The general idea is to scrape the GitHub API for the durations and operating systems of GitHub Actions jobs. From this information, we can guesstimate the the power consumed and associated emissions using the assumptions below.

Carbon emission assumptions

Data is taken from v2.1 of the Green Algorithms datasets.

  • All cores are being utilised 100% throughout runs.
  • The power usage effectiveness is 1.125. This is a multiplier added on top of the CPU power consumption to account for the power needed to run a datacenter (e.g. cooling, lighting)
  • The carbon intensity is 357.32 gCO2e/kWh. This is an average of carbon intensity for all the datacenters that host GitHub actions runners:
    • East US (eastus) in US-VA (354.25 gCO2e/kWh)
    • East US 2 (eastus2) in US-VA (354.25 gCO2e/kWh)
    • West US 2 (westus2) in US-WA (95.34 gCO2e/kWh)
    • Central US (centralus) in US-IA (513.78 gCO2e/kWh)
    • South Central US (southcentralus) in US-TX (468.98 gCO2e/kWh)

Results

Useful links

Related Projects