-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uses /env to run python file #444
Conversation
Old Energy EstimationEco-CI Output: |Label|🖥 avg. CPU utilization [%]|🔋 Total Energy [Joules]|🔌 avg. Power [Watts]|Duration [Seconds]| |---|---|---|---|---| |Total Run|16.0564|1803.74|2.59905|702| |Measurement #1|16.1049|1803.74|2.59905|696|📈 Energy graph:
7.77 ┤ ╭─╮
7.17 ┤ ╭╮ ╭╮╭╮ ╭╮ │ │
6.56 ┤ ││ ╭╮ │╰╯│ ╭╮ │╰╮│ │
5.96 ┤ ╭─╮ ││ ╭╮ ││ │ │ ╭╯╰╮ │ ││ │
5.35 ┤ │ │ │╰╮ ╭╯│ ││ │ │ │ ╰─╮ ╭╯ ╰╯ │
4.75 ┤ │ │ │ │ │ ╰╮│╰╮ ╭╮ ╭╮ ╭╮ ╭╮ ╭╯ ╰╮ │ │ │ │ ╭╮ ╭╮
4.15 ┤ │ │╭╮╭─╮╭─────────╮╭─────────╯ ╰───────────╯ ╰╯ ╰───╮╭╯╰────╮ │╰──╯│ ││ │ ╰──────────╮ │ ╰───╮│ │ ││ ││ ╭╮ ╭╮ ╭╮ ╭╮ ╭╮ ╭
3.54 ┤ ╭╮ │ ╰╯╰╯ ││ ╰╯ ││ │╭╯ │ ││ ╭╮ │ │ ╭╯ ││ │ ││ ╭─╮││ ╭╮ ╭╮ ││ ╭╮ ╭╮ ││ ╭╮ ╭╮ ╭╮ ╭╮ │╰╮ ╭╮ ╭╮╭╮ ╭╮ │╰╮ ╭╮ ╭╮╭╮ ╭─╮ ╭╮ ╭╯╰╮ ╭──╮ ╭╮ ╭╮ ╭╮ ╭╮ ╭╮ ╭╮ ╭╮ ╭─╮╭╮ ╭╮ ╭╯
2.94 ┤ ╭╯│╭──╯ ╰╯ ╰╯ ││ ╰─╯╰╮╭╮ │╰─╯ ╰──╮│ ╰╯ │ ╭╯│╭╯ ││╰╮ ╭╮││╭╮ ╭╯│ │╰╮ │╰╮ ╭──╮ ╭──╮ │╰╮ │╰╮ │╰╮ ╭─╮ │╰╮ ╭╯╰╮ ╭─╮ ╭─╮ │╰╮ ╭──╮ ╭╯ │ ╭╮ ╭╮ ││ │╰╯╰╮ ╭╮ ╭╯│╭╯ ╰╮ ╭╮ │╰╮│╰╯╰╮ ╭──╮╭╮ ╭─╮╭╯ ╰╮ ╭─╯│╭╮ ╭─╮│ │ ╭────╮ ╭─╮│ ╰╮ ╭─╯│╭╮ ╭─╮╭──╮ ╭─╮ ╭╯╰╮ ╭╮ ╭─╮ ╭╯╰╮ ╭╮╭╯│╭╮╭╮ │╰╮ ╭──╮ ││ ╭─╯│╭╮ ╭╮╭╯ ╰╯│ ╭─╯│╭╮ ╭─╮╭╯
2.34 ┤ ╭─╯ ╰╯ ╰╯ ╰╯╰─╯ ╰╯ ╰╮ │ ╰╯ ╰╯ │ ╭╮ │╰╯╰╯│ │ │╭╯ ╰╮ ╭╮ │ │ ╭╮ ╭╯ │ │ ╰╮ │ ╰╮ ╭╮ │ │ ╭╯ │ │ │ │ │╭╮ │ │ │ │ │ ╰╮ │ │ │ │ │ ╰╮ ││ ││ ╭╯│╭╯ │ ││ │ ││ │ ╭╯│ │ ││ │ │ ╰╯│ │ ││ │ │ ╰╯│ │ ││ ╰╮ │ │ │ ││ │ │ ╰╯│ │ ││ │ │ │ │ │ ╭╯│ │ │ ╭╯ │ │╰╯ ╰╯╰╯│ ╭╮ ╭─╮│ │ ╭─╯ │ ╭╮ │╰╮ ╭╮│ ╰╯│ │││ ╰╮ │ ╰╯│ │ ││
1.73 ┼────╯ ╰──────╯ ╰─╯╰────╯ ╰───────╯ ╰╯ ╰─────╯╰─╯ ╰───╯╰──╯ ╰────────╯ ╰───────╯ ╰────╯╰──╯ ╰────────╯ ╰────────╯ ╰─────────╯ ╰╯╰──────╯ ╰────────╯ ╰────────╯ ╰────────╯ ╰────────╯ ╰────────╯ ╰────╯╰──╯╰───────╯ ╰╯ ╰────────╯╰───────╯ ╰╯ ╰────────╯ ╰───────╯ ╰╯ ╰───────╯ ╰───────╯ ╰╯ ╰───────╯ ╰───────╯ ╰╯ ╰───────╯ ╰───────╯ ╰╯ ╰───────╯ ╰───────╯ ╰╯ ╰────────╯ ╰────────╯ ╰────────╯ ╰────────╯ ╰───────╯ ╰───────╯ ╰──╯╰───╯ ╰╯ ╰───────╯ ╰───────╯╰─╯ ╰─────╯╰╯ ╰───────╯╰╯ ╰───────╯ ╰───────╯ ╰╯
Watts over time
```</details> |
LGTM. Two remarks:
|
|
The so far made fixes should not be necessary now that we force a venv and Python is always running in venv mode. The |
This is still open as I need to move the hardware_info file to another file to make it owned by root |
Ready to merge IMHO @ArneTR ping |
* main: (110 commits) Adding report url instead of just ID (#531) Makes error optional except if there is data we need (#530) Bump uvicorn[standard] from 0.23.2 to 0.24.0.post1 (#526) Adding current clocksource in linux according to timing problems outlined here: https://www.brendangregg.com/blog/2021-09-26/the-speed-of-time.html (#524) Bump orjson from 3.9.9 to 3.9.10 (#519) Bump pandas from 2.1.1 to 2.1.2 (#520) Update Dockerfile - Removed playwright version pinning (#523) Bump fastapi from 0.104.0 to 0.104.1 (#522) Casts everything to bigint in hog api Qol Updates (#521) build containers workflow: removed conditional from job scope and moved to step added options for build containers manual run to specify which container to build fix file permissions for build-containers script Bump playwright/python in /docker/auxiliary-containers/gcb_playwright (#513) Bump pytest from 7.4.2 to 7.4.3 (#515) Added lshw to hardware_info_root (#514) Tag dockerhub containers (#518) Update XGBoost model Update README.md Bump pylint from 3.0.1 to 3.0.2 (#512) ...
The version commited works "by accident". Actually the code suggests that actually the Python in the venv is used. That is not the case though. WIth our new venv setup with correct include paths actually the To check that not the correct venv is used:
The expected line should be the same as when the venv is active:
I commited a fix to this. When using venvs though one could actually notice that it does not understand the /usr/bin/venv logic:
|
Old Energy EstimationEco-CI Output: |Label|🖥 avg. CPU utilization [%]|🔋 Total Energy [Joules]|🔌 avg. Power [Watts]|Duration [Seconds]| |---|---|---|---|---| |Total Run|9.10167|33336.7|49.6822|678| |Measurement #1|9.16753|33336.7|49.6822|672|📈 Energy graph:
122 ┤ ╭╮ ╭╮
114 ┤ ││ ││
106 ┤ ││ ││
98 ┤ ╭╯│ ╭──╮ ││
90 ┤ │ │ │ ╰╮ │╰─╮
83 ┤ ╭──╮ ╭╮ │ ╰─╮╭───╮ │ │ │ ╰╮ ╭╮
75 ┤ ╭─╯ │ │╰╮ ╭╮ ╭╮ ╭╮ │ ╰╯ │ │ ╰─╯ │ ╭╮ ││ ╭╮ ╭╮ ╭╮ ╭╮ ╭╮ ╭╮ ╭╮ ╭╮
67 ┤ │ ╰╮ ╭╯ ╰────╮ ╭╯╰────────────╯╰────────╯╰╮ │ ╰╮ ╭╯ │ │╰─╯╰╮ ╭╮ ╭╮ ╭─╮ ╭─╮ ╭─╮ ╭─╮ ╭╮╭╮ ╭─╮ ╭─╮ ╭╮ ╭──╮ ╭─╮ ╭─╮ ╭─╮ ╭─╮ ╭──╮ │╰╮ ╭╯╰╮ ╭╮ ╭╯╰╮ ╭╮ ╭─╯╰╮ ╭╮ ╭╮ ╭╯╰╮ ╭╮ ╭╮ ╭╯╰╮ ╭╮ ╭─╮ ╭╮ ╭──╮ ╭─╮ ╭╮ ││╭╮ ╭─╮ ╭╮╭╮ ╭─╮ ╭───╯╰╮ ╭╮ ╭╮ ╭─╮
59 ┤ ╭╯ │ │ │ │ ╰─╮╭╮│ │ │ │ ╭╯ │ ╭╯│╭╮ ╭╮╭─╯╰╮ │ │ │ ╰╮ │ │ ╭╯ │ │╰╯│ │ │ │ ╰╮ ╭─╯│ │ │ │ │ │ │ │ ╰╮ ╭╯ │ │ ╰╮ ╭─╮╭─╯ │ ╭╮╭╯ ╰╮ ╭╮ ││ │ │ ││╭╮ ╭╮│ │ ╭╯│ ││ │ ╰╮ ││╭╮ ││ │ │ ││╭╮ ╭╮╭╯ │ ╭╯│ │ │ │ │ ╭╯│ │╰╯│ ╭╯ │╭╮ │╰╯│ ╭─╮ │ ╰╮ ╭─╮ │ │ ╭╯│ ││ │ │ ╭
51 ┤ │ │ │ │ │ ╰╯╰╯ ╰╮│ │ │ ╰╮ │ │││ ╭╯││ │ ╭╯ │ │ │ ╭╯ ╰╮ │ │ │ │ │ │ │ │ ╭╮ │ │ │ │ │ │ │ ╰╮ │ │ │ ╰╮ │ │ ╭─╮ ╭╮│ ││ ╰╮ ╭╮ ╭╯││ │ ││ ╭╯│ │ ╰╮ ╭╯│││ ╭╯││ │ │ ╰╮ │╰╮│ │ ╭╯╰╯│ ││ │ ╰╮ ╭╯│││ ╭╯││ ╰╮ │ ╰╮ │ │ ╭╯ │ │ │ │ │ │ ╰╯│ ╭╮│ │ ╭╯ ╰╮ │ │ ╭╯ ╰╮ ╭╮ │ ╰╮ │ ╰╮ ││ │ │ │
43 ┼────╯ ╰──╯ ╰────╯ ╰╯ ╰───────╯ ╰───────╯ ╰╯╰───────╯ ╰╯ ╰────────╯ ╰─────────╯ ╰────────╯ ╰────────╯ ╰─────────╯ ╰─────────╯ ╰─────────╯ ╰──╯╰────╯ ╰─────────╯ ╰─────────╯ ╰─────────╯ ╰────────╯ ╰────────╯ ╰────────╯ ╰────────╯ ╰─────╯╰╯ ╰╯ ╰────────╯╰───────╯ ╰╯ ╰────────╯╰───────╯ ╰─╯ ╰───────╯ ╰╯╰───────╯ ╰╯ ╰────────╯ ╰────────╯ ╰╯ ╰───────╯ ╰────────╯╰─╯ ╰───────╯ ╰╯╰───────╯ ╰╯ ╰────────╯ ╰────────╯ ╰────────╯ ╰─────────╯ ╰─────────╯ ╰────────╯ ╰────────╯╰╯ ╰────────╯ ╰──────────╯ ╰───────╯ ╰───────╯╰─╯ ╰───────╯ ╰────────╯╰─╯ ╰────────╯
Watts over time
```</details> |
Eco-CI Output:
📈 Energy graph:
123 ┤ ╭╮
115 ┤ ││ ╭╮
107 ┤ │╰╮ ╭╮ ╭╯│╭╮
99 ┤ │ │ ││ │ │││
91 ┤ ╭╮ ╭╮ ╭╮ │ │ ╭─╯╰╮ │ │││
83 ┤ │╰─╯│ ╭╮ ││ │ │ ╭────╮ │ ╰╮│ ╰╯│ ╭╮
75 ┤ ╭╯ ╰╮ ╭─╮ ╭╮ ││ ╭╮ ╭╯│ ╭╯ ╰─╯ ╰╮ │ ││ │ ╭╮ ││ ╭╮ ╭╮ ╭╮ ╭╮ ╭╮ ╭╮ ╭╮ ╭╮
67 ┤ ╭╮│ ╰──────╯ ╰───────────────────╯╰──╯╰──╮╭╮╭╯╰─────────────────────╯ ╰───────────╯ │ │ ╰╯ │ │╰──╯╰╮ ╭╮ ╭─╮ ╭─╮ ╭─╮ ╭──╮ ╭╮╭╮ ╭─╮ ╭──╮ ╭─╮ ╭╮ ││╭╮ ╭─╮ ╭╮ ╭─╮ ╭╮╭╮ ╭╯╰╮ ╭╮ ╭───╮ ╭╯╰╮ ╭╯╰╮ ╭╮ ╭╯╰╮ ╭╮ ╭╯╰╮ ╭╮ ╭╮ ╭─╯╰╮ ╭╮ ╭╮ ╭─╮ ╭╮ ╭─╮ ╭╮ ╭╮ ╭─╮ ╭──╮ ╭─╮ ╭─╮ ╭╮ ╭──╯╰╮ ╭╮ ╭╮
59 ┤ ╭╯╰╯ ││││ │ │ ╰╮ │ │ ╭╯│╭╮ ╭─╮╭─╯ │ │ ╰╮ ╭╯ │ │ │ │╰╯│ │ ╰╮ │ │ │ │ ╭─╯│ │╰╯│ │ │ ╭╯╰╮ │ │ │╰╯│ │ │ ╭╮ ││ │ │ ╭╮ ╭╮╭╯ │ ╭╮ │ │ ││╭╮ ╭╮╭╯ │ ╭╯│ ╭─╮╭╯ │ │╰─╮ ││ │ │ ││╭╮ ││ │ ╰╮ │╰╮ ╭╯ │ ╭╯│ ╭╯│ ╭╯ ╰╮ │ │╭╮ │ ╰╮ ╭╮ │ │ ╭╯│ ╭╯ ╰╮ ╭─╮ ││ │╰╮ ╭
51 ┤ │ ╰╯││ ╰╮ │ │ ╭╯ ╰╮ │ │││ │ ││ │ │ │ │ ╰╮ │ │ │ │ │ │ │ │ │ ╰╮ │ │ │ │ │ ╰╮ │ │ ╭╮ ╭╯ │ │ │ ╭╯ ╰╮ ││ ││ │ ╰╮ ││ ╭╯││ ╰╮ ╭╮ ╭╯│╭╯ ╰╮ ╭╯│││ ╭╯││ ╰╮ │ │╭╮ │ ││ │ │ │ ││ │ │ ╭╮││││ ╭╯│╭╯ │ │ │ │ ╰╮ │ ╰╮ │ ╰╮ │ │ ╭╯ │││ ╭╮ │ │ ╭╯╰─╮ │ ╰╮ │ │╭╮ ╭╮│ │ ╭╯ ╰╮ ╭╯│╭╯ ╰╮ ╭╮ │
43 ┼────╯ ╰╯ ╰───────╯ ╰──────╯ ╰───────╯ ╰╯╰───────╯ ╰╯ ╰─────────╯ ╰────────╯ ╰────────╯ ╰─────────╯ ╰─────────╯ ╰────────╯ ╰─────────╯ ╰────────╯ ╰─────────╯ ╰─────────╯ ╰────────╯ ╰───╯╰───╯ ╰─────────╯ ╰────────╯ ╰────────╯╰────────╯╰─╯ ╰────────╯╰───────╯ ╰╯ ╰────────╯╰───────╯ ╰╯ ╰───────╯ ╰╯╰───────╯ ╰╯ ╰───────╯ ╰╯╰───────╯ ╰╯ ╰────────╯ ╰────────╯╰─╯ ╰───────╯╰╯╰╯╰───────╯ ╰╯ ╰─────────╯ ╰────────╯ ╰────────╯ ╰────────╯ ╰────────╯ ╰───────╯ ╰╯╰───────╯╰─╯ ╰───────╯ ╰──────────╯ ╰───────╯ ╰╯╰───────╯╰╯ ╰───────╯ ╰───────╯ ╰╯ ╰──╯╰───╯
Watts over time |
Closes #438