Eco-CI: CO2 emissions and energy consumptions of pipelines #393
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✅ I have read the contributing file
Summary
This pull requests is a bit out of the ordinary ... I guess :)
I work for an open source company called Green Coding Solutions in Germany and we started with the mission to increase awareness and actionability around digital CO2 emissions.
We have recently created an open source CI/CD plugin called Eco-CI.
It integrates into the Github Actions pipeline and estimates the energy and CO2 consumption of the pipeline by utilizing a Machine Learning model trained on real server energy data from SPECpower
The tool creates awareness of the energy cost and carbon emissions of CI/CD pipelines and empoweres developers to create action for more sustainability.
It can separate steps of the pipeline and create detailed drill-downs which step has increased / decreased in carbon emissions and provider great insights into pipeline performance in general.
I am currently reaching out to open source projects who do adjacent work to us by making tools and information in the sustainability space with the intention to get feedback and opinions.
In this PR I have made a sample integration into the
.github/workflows/test.yml
pipeline.I hope this PR and the information that Eco-CI provides is interesting for you and I am super interested in your feedback on it.
Changelog
.github/workflows/test.yml
pipelinesend-data: true
flag. This will send data to be used as historical data view on https://metrics.green-coding.io/ci-index.html . If this is not desired it must be set to false.Demo
@ribalba @MichelleGruene