Closed ribalba closed 2 months ago
@ArneTR feedback incorporated
Thanks for the clarification that the token is optional.
I am not a fan however of the multiple ways to submit input. All other info is supplied via arguments. Only the Electricitymaps Token is now an exported environment var.
What is the rationale behind this?
In any case: I would favor for supplying it as argument and also making it a secret by default. Not a classic ENV.
Carbon Intensity for this location: 99 (g / kg / tons per Wh, J , kwH ?) CO2eq emitted for this job: 0.002452 (g, kg, ton ?)
The problem is that when we do it with a secret/ not as env we will need to add it as a parameter to the display_results.sh
and then it will be visible in the logs. Which is not ideal. Secrets are only available in the action yml file.
TBD tomorrow
Eco-CI Output: | Label | 🖥 avg. CPU utilization [%] | 🔋 Total Energy [Joules] | 🔌 avg. Power [Watts] | Duration [Seconds] |
---|---|---|---|---|---|
Total Run | 8.02074 | 26.7165 | 1.90832 | 28 | |
Measurement #1 | 9.95 | 14.3342 | 2.04774 | 9 | |
Sleep #2 | 5.7475 | 12.3823 | 1.7689 | 9 |
📈 Energy graph:
3.72 ┤ ╭╮
3.53 ┤ ││
3.33 ┤ ││
3.14 ┤ ││
2.94 ┤ ││
2.74 ┤ ││
2.55 ┤ ││
2.35 ┤ ││
2.16 ┤ ││
1.96 ┤ ││
1.77 ┼─────╯╰──────
Watts over time
🌳 CO2 Data: City: Phoenix, Lat: 33.448376, Lon: -112.074036 Carbon Intensity for this location: 171 gCO₂eq/kWh CO2eq emitted for this job: 0.004568 gCO₂eq
@ArneTR ready to merge
Old Energy Estimation
Eco-CI Output: |Label|🖥 avg. CPU utilization [%]|🔋 Total Energy [Joules]|🔌 avg. Power [Watts]|Duration [Seconds]| |---|---|---|---|---| |Total Run|5.57227|24.7645|1.7689|24| |Measurement #1|5.81|12.3823|1.7689|8| |Sleep #2|6.05625|12.3823|1.7689|9| 📈 Energy graph: ```bash 2.00 ┼───────────── Watts over time ```