green-coding-solutions / eco-ci-energy-estimation

Eco CI Energy estimation for Github Actions Runner VMs
https://metrics.green-coding.io/ci-index.html
MIT License
55 stars 16 forks source link

Add test workflow to test the action on changes #11

Closed rajbos closed 1 year ago

rajbos commented 1 year ago

Closes #8

To discuss: I've just included a simple run with a 10 second wait to have something to measure. We could add an extra job that skips the sleep, but it seemed like a waste of energy to not really proof anything (we know how long the sleep takes 😄).

ArneTR commented 1 year ago

Sweet, thx!

The sleep is fine. Actually we need at least 1 s of delay, so we have some metrics to produce estimations on.

The reporter runs at a 1s interval polling for the CPU utilization.

I merged it in and am giving it a test drive now. I will change the frequency to daily for now though and later put our eco-ci-activity-checker on top to reduce frequency dynamically