Green-Software-Foundation / hack

Carbon Hack 24 - The annual hackathon from the Green Software Foundation
https://grnsft.org/hack/github
14 stars 1 forks source link

Extending the Impact Framework to consider CI pipelines #59

Open FergusKidd opened 3 months ago

FergusKidd commented 3 months ago

Type of project

Enhancing the Impact Framework

Overview

The Impact Framework from the GSF is working hard and making strides to measure the real carbon intensity of compute resources, to give us developers a chance at understanding the impacts of our software and cloud architecture. Wouldn't it be great if we could contribute to the framework's roadmap by unlocking GitHub actions or other CI technologies. This could allow every developer to have the IF at their fingertips when writing code and deploying cloud resources, and could significantly increase the number of developers who are aware of the carbon impact of their software.

Since the IF measures, simulates and models the environmental aspects of software, it could be a great addition to allow you to assess the SCI of software during your own CI process.

We believe this would be a highly beneficial addition to the roadmap of the IF in terms of driving usage, but also increasing awareness of SCI, and allowing developers to take action to reduce their environmental impact.

We need to consider popular tools and approaches to, to get the most use from developers, and also consider what data is most useful for developers to be able to take action to reduce their SCI.

IF: https://github.com/Green-Software-Foundation/if

Questions to be answered

Can we improve the IF by considering CI pipelines? What data can we extract and use? Is the integration of the IF and a CI pipeline a sustainable approach in itself, or does it drive up the SCI of a solution with limited impact? How should this information be displayed to a user as part of a CI process?

What CI pipeline tools can we use? What popular platforms could be investigated:

GitHub Actions GitLab CI Travis CI Circle CI SourceHut Builds

Have you got a project team yet?

No, we would like your help to find team-mates

Project team

No response

Terms of Participation

jawache commented 3 months ago

Hey @FergusKidd! Great to see you here 😄

So a few questions back at you, what are you looking to measure? The carbon cost of a GitHub action perhaps, something like that?

My gut is telling me given where we are with the framework, that perhaps a plugin is the right way to start engaging IF with CI.

IF is a pipeline of computation to convert observations to impacts.

For CI (say actions) you could build an importer plugin to query GH API and suck in the number of actions that were executed with whatever other observations you can gather.

Then either use existing plugins to convert that data to carbon or you might need to create an adapter plugin to help a little bit in that computation.

So essentially I think a CI hack soln here might just be a plugin that tries to compute the carbon impact of your GH actions.

If that existed it could be used by others to compute the total carbon cost of an application including it's ci/cd.

Does that align somewhat to your thinking?

avachong commented 2 months ago

Hi @FergusKidd @Sophietn @jawache, I am interested in helping out!

Sophietn commented 2 months ago

Hi @FergusKidd

Would you be interested in taking a segment on any of our Weekly Live Hackathon Prep and Q&A Sessions taking place every Monday 2.30 GMT, to discuss your idea and attract participants?

Sophietn commented 2 months ago

Hi @FergusKidd Are you looking for additional team participants? Would you like to attend our Launch event on the 18th March 2.30pm GMT, to discuss your project idea and attract team members?

pchan2 commented 2 months ago

Hello, are you looking for additional members as I am looking for a team to join. 2-3 years experience in software eng, polyglot (JS, C#, Java, Python). Thanks

russelltrow commented 1 month ago

Hi @FergusKidd please don't forget to register your project: https://hack.greensoftware.foundation/register/

This provides you direct access to the Impact Framework team for your questions and also benefits from our community partners (Microsoft & Electricity Maps).

You must register your project before you can submit your solution for judging.