Tech Tip #55: Put energy in your definition of done

Energy is in almost nobody's definition of done.

Video created by explainapaper.com

The problem

Sustainability stays incidental because nothing in the delivery process asks for it. Changes pass review on features, tests and security, and energy regressions ship unnoticed.

The fix you can use today

  • Add an energy check for performance-critical changes to your definition of done.
  • Gate releases on an energy regression test for key scenarios.
  • Review energy trends in the same meeting as performance and cost.

GreenCode researchers found that energy is almost never part of a team's definition of done.

Tools that help

  • Eco CI: estimates the energy of CI pipeline runs on GitHub Actions and GitLab, per step
  • Green Metrics Tool: measures the energy of whole software scenarios run in containers, so runs can be repeated and compared

How GreenCode helps

GreenCode helps tackle this by building the energy test for you: a load test generated from the system's own endpoints that records energy as well as speed and ranks the hotspots by the energy they use. More on this.

Tags

#governance#ci-cd#testing

Sources

All GreenCode Tech Tips

  • Tip #55
  • For CTOs and technical leads
  • Category Testing, CI and code quality
  • Format short video
GreenCode

Want this checked on your own system? Talk to the GreenCode team.

Get in touch