We are happy to announce a major update to our Eco-CI tool, a plugin designed to estimate and reduce the energy consumption of continuous integration pipelines. Previously available exclusively for GitHub Actions, we are excited to announce the integration of Eco-CI with GitLab pipelines. We hope this will encourage Gitlab developers to measure their carbon emissions and make informed decisions regarding sustainable software processes.
Link to Release: Eco-CI Energy Estimation v2
To use Eco-CI with Gitlab pipelines, we provide the following template file which can be included in your
See here an example configuration
You can include the raw file remotely like this:
and use its functionality within jobs by calling the various scripts and exporting the
Here is an example artifact for the Ubuntu_GCC_preprocess pipeline from a sample repository:
- !reference [.initialize_energy_estimator, script]
- !reference [.start_measurement, script]
- CI/ubuntu_gcc_preprocess.sh # your pipeline code here
- export ECO_CI_LABEL="Ubuntu_GCC_preprocess"
- !reference [.get_measurement, script]
- !reference [.display_results, script]
To see your energy results, you can check the artifacts for each job, or check the job log.
We are currently also exploring further methods to output this information to developers. Full instructions on how to use Eco-CI with GitLab pipelines are available in the ReadMe.
We have improved the front end we provide on our website where you can see the results over time of your pipelines. There is now an index page where you can see your projects, along with others that have sent us run data:
The individual CI Runs pages now support GitLab projects as well and has features which we outlined in our previous eco-ci article.
As part of our goal to encourage green coding practices, and understand what features / wishes a developer working on real-world projects with a green coding mindset would want, we decided to fork some popular open source repositories and integrate the Eco-CI into their existing workflows. This gives us insight on how easy it is to use, what features are missing, what real-world edge cases don’t work, and how valuable the information we provide actually is and what we can do to improve it.
Currently we have forked and integrated three github projects: Django, Flask, and curl, as well as one Gitlab project, OpenMW. Our plan is to pretend that we are sustainability engineers for these projects, keep them in sync, track their carbon footprint, and see what we can improve on with this information.
Doing this has already begun to generate some ideas for us, so be on the lookout for new features in the coming weeks!
This version of Eco-CI also comes with some bugfixes/misc minor features, including: