Release Notes — v1.2.1¶
Released: 2026-06-03 Type: Patch Release — Bug Fixes & Security Updates
Summary¶
v1.2.1 is a quality-of-life and security patch release addressing compatibility bugs, API vulnerabilities, and alignment issues identified in the v1.2.0 release.
Changes & Fixes¶
1. Robust Windows RAM Detection¶
Replaced deprecated wmic with PowerShell Get-CimInstance for Windows RAM speed detection, resolving issues on Windows 11 24H2 where wmic has been removed. Added robust local exception handling for dmidecode on Linux to ensure fallback to sudo -n works seamlessly even if non-sudo execution raises environment errors.
2. Machine Learning Tracker Enhancements (EcoTraceML)¶
- Constructor Parameters: Added missing
project_name,epochs,batch_size, anddataset_sizeparameters to bothEcoTraceMLcontext manager and@ecotrace_mldecorator as documented in v1.2.0. - CSV Headers Alignment: Aligned the logging header and columns produced by
EcoTraceMLwith the mainEcoTracecore format, resolving parse errors duringecotrace analyzeCLI and JSON export phases.
3. Security Hardening¶
- Switched the user region check API from HTTP (
http://ip-api.com) to HTTPS (https://ip-api.com) to prevent MITM tampering. - Made the
USER_AGENTresolve dynamically based on the installed package version. - Updated supported releases in
SECURITY.MDto includev1.2.xandv1.1.x.
4. Code & Lifecycle Improvements¶
- Renamed the misleading
WATTS_PER_KILOWATTvariable toMILLIWATTS_PER_WATTin GPU NVML power scaling. - Implemented class-level
atexitregistration withWeakSetinEcoTraceto avoid duplicate session summaries when handling multiple concurrent tracking instances.