Bug 2588044 - Review Request: energy-tracker - CPU and GPU energy and electricity cost tracker
Summary: Review Request: energy-tracker - CPU and GPU energy and electricity cost tracker
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/izdrail/energy.izd...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-12-01 16:43 UTC by Stefan Bogdanescu
Modified: 2026-12-01 19:39 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
The .spec file difference from Copr build 11416254 to 11418417 (1.18 KB, patch)
2026-12-01 19:39 UTC, Fedora Review Service
no flags Details | Diff

Description Stefan Bogdanescu 2026-12-01 16:43:50 UTC
Spec URL: https://github.com/izdrail/energy.izdrail.com/releases/download/v0.1.2/energy-tracker.spec
SRPM URL: https://github.com/izdrail/energy.izdrail.com/releases/download/v0.1.2/energy-tracker-0.1.2-1.fc44.src.rpm
Description: Energy Tracker records CPU (RAPL) and NVIDIA GPU energy use in the background through a systemd user service, prices it at the user's tariff and shows per-session, daily and lifetime usage in a GUI. Sensors that cannot be read are shown as unavailable.
Fedora Account System Username: laravelcompany

This is my first package and I need a sponsor. I introduced myself on devel.org: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/VMUPDZTSZS3ZI67I5TQGIUL5JHPH3Z44/
I am the upstream author (MIT). Upstream: https://github.com/izdrail/energy.izdrail.com
COPR build (F43, F44, rawhide): https://copr.fedorainfracloud.org/coprs/laravelcompany/energy-tracker/
Notes: Go program built with go-vendor-tools (vendor archive, license expression and bundled(golang(...)) provides generated). The Fyne GUI needs cgo. A sysusers group and tmpfiles rule let that group read the RAPL energy counters (otherwise root-only), documented in the README.
Status: fedora-review has not been run yet. So far only rpmbuild and rpmlint were run (0 errors).

Reproducible: Always

Comment 1 Fedora Review Service 2026-12-01 16:53:52 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/11416254
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2588044-energy-tracker/fedora-rawhide-x86_64/11416254-energy-tracker/fedora-review/review.txt

Found issues:

- Systemd user unit service file(s) in energy-tracker
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_user_units

Please know that there can be false-positives.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 2 Stefan Bogdanescu 2026-12-01 19:29:04 UTC
Updated the package to Release 2.

Spec URL: https://github.com/izdrail/energy.izdrail.com/releases/download/v0.1.2/energy-tracker.spec
SRPM URL: https://github.com/izdrail/energy.izdrail.com/releases/download/v0.1.2/energy-tracker-0.1.2-2.fc44.src.rpm

Changes in -2:
- Added %systemd_user_post and %systemd_user_preun for the user unit energy-tracker.service.
- Changelog entries added for -1 and -2.

rpmlint on the SRPM and the built RPMs: 0 errors, 3 warnings (no manual page for the binary, Source1 is not a URL, empty %pre).

I ran fedora-review locally in mock. It still lists the systemd user unit scriptlet check as an issue. I believe that is a false positive in the tool: it builds its regex from the full macro expansion including the trailing whitespace, and rpm strips that whitespace from the stored scriptlet, so it can't match the current macro. The built RPM does contain the scriptlets: %post runs systemd-update-helper install-user-units energy-tracker.service and %preun runs remove-user-units energy-tracker.service.

Comment 3 Fedora Review Service 2026-12-01 19:39:28 UTC
Created attachment 2164631 [details]
The .spec file difference from Copr build 11416254 to 11418417

Comment 4 Fedora Review Service 2026-12-01 19:39:30 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/11418417
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2588044-energy-tracker/fedora-rawhide-x86_64/11418417-energy-tracker/fedora-review/review.txt

Found issues:

- Systemd user unit service file(s) in energy-tracker
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_user_units

Please know that there can be false-positives.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.


Note You need to log in before you can comment on or make changes to this bug.