-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eco-CI - Estimating the cost of CI pipelines #736
Eco-CI - Estimating the cost of CI pipelines #736
Conversation
Hi @ArneTR thanks for this PR and sorry for the slow response. |
Signed-off-by: Arne Tarara <[email protected]>
Hey @jmcook1186 ,
|
@narekhovhannisyan quick reminder to review and approve if you are happy |
Hi @ArneTR - curious whether the energy/carbon data you predict using EcoCI is exposed via an API? If so, we would love to have a system where your app is part of our CI/CD but we can also query the estimates using an IF plugin to give a neat way to include our CI/CD in estimates of our project's overall impact. |
There are two ways:
|
f332aa5
into
Green-Software-Foundation:main
Thanks for the merge. For the sake of completeness:
Super happy for any feedback as soon as you have aquired some data! |
Thanks @ArneTR , this is very cool. I've looked at the dashboard data and it's very useful - much kudos to your team! I'm really keen to have an IF plugin that hits the API so that the environmental costs of the CI/CD can be included in a broader LCA for the project. I haven't been able to make a successful request yet, even just using curl, so I must be making some basic syntax error, but I haven't been able to sit and dig in properly yet. If I keep having problems maybe I could connect with one of your team for some support? |
This is the full API endpoint: https://api.green-coding.io/v1/ci/measurements?repo=Green-Software-Foundation/if&branch=main&workflow=66389738&start_date=2024-06-11&end_date=2024-07-11 You can even open it in the browser |
please note that the "branch" and "workflow" parameter changes for every branch and PR that is targeted |
got it - thanks a lot! |
Types of changes
A description of the changes proposed in the Pull Request
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.
In this PR I have made a sample integration into the
.github/workflows/nodejs-ci.yml
pipeline.The PR is also for the Open Source WG meeting with @seanmcilroy29 that we are invited in on Thursday to have some example discuss.
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/nodejs-ci.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