jouleclaw-energy: advance the scripted RAPL tree in step with the probe #228
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/rapl-probe-test-in-step"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
rapl::tests::the_production_probe_needs_every_package_to_keep_advancingfailed on loaded hosts. It drove a fake two-socket tree from a writer thread on a 2 ms timer and expected the production probe to call the tree live inside one budget. When the host starves the writer, the samples stop changing and the probe correctly judges the scripted tree frozen. The test was failing on load, not on behaviour.Change
liveness::probe_stepping: the production probe with a closure run at the start of every tick, ahead of the burn.probecalls it with an empty closure, so the shipped path is unchanged.rapl::probe_packages_stepping: the same for the package probe.Verification
On the Linux x86_64 host,
cargo test -p jouleclaw-energy --features rapl,nvml --lib:The module is Linux-only and feature-gated, so a macOS run or a run without
--features raplcompiles none of these tests.🤖 Generated with Claude Code