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

Eco CI Energy estimation for Github Actions Runner VMs
MIT License
48 stars 10 forks source link

github api-base is now an input parameter, for github enterprise users #51

Closed dan-mm closed 7 months ago

github-actions[bot] commented 7 months ago
Old Energy EstimationEco-CI Output: |Label|🖥 avg. CPU utilization [%]|🔋 Total Energy [Joules]|🔌 avg. Power [Watts]|Duration [Seconds]| |---|---|---|---|---| |Total Run|6.80304|26.6326|1.90233|25| |Measurement #1|5.92|12.3823|1.7689|9| |Sleep #2|7.42125|14.2503|2.03576|9| 📈 Energy graph: ```bash 3.64 ┤ ╭╮ 3.45 ┤ ││ 3.26 ┤ ││ 3.08 ┤ ││ 2.89 ┤ ││ 2.70 ┤ ││ 2.52 ┤ ││ 2.33 ┤ ││ 2.14 ┤ ││ 1.96 ┤ ││ 1.77 ┼──────╯╰───── Watts over time ```
ArneTR commented 7 months ago

What about this line?

API_URL="${{ github.api_url }}/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"

github-actions[bot] commented 7 months ago
Eco-CI Output: Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run 4.70905 24.7645 1.7689 23
Measurement #1 6.215 12.3823 1.7689 8
Sleep #2 5.4875 12.3823 1.7689 8

📈 Energy graph:


 2.00 ┼─────────────
       Watts over time
ArneTR commented 7 months ago

lgtm