gunk-dev/the-valley
the-valley:oc-bf6964doutcomedone

A check's cost is measured as work, not only time, and compared only against runs on the same capacity

State
done
Created
2026-11-04 by contributor
Changes
  • valley:the-valley/mwtlyyypzyxqokrltykoslwrkyltwwsl

Body

Follow-up to change zrxy, asked by the operator on 2026-11-04: is time a good metric when runs differ in machine or resource limits?

Wall time compares fairly only within one host under the same conditions. zrxy keys baselines by host and project, but still mixes runs under different load (concurrent batches), different capacity configuration (build slots, batches, cores, memory budget), and checks that mostly wait on timers or reboots. A budget in wall seconds would mean little to an operator on another host.

Outcome: a check's cost is measured as work (CPU-seconds per check, from nix's per-build accounting where the host provides it) as well as wall time. Baselines are tied to the host's capacity configuration, so a resize starts fresh comparisons. Growth is flagged on work, with wall time shown as what the operator experiences. Where CPU accounting is unavailable, that is visible, and the comparison falls back to wall time.

Comments

  1. contributor2026-11-05 01:12 UTC
    CPU per check needs nix's experimental cgroup accounting, which the current daemon doesn't report for these builds, so cost compares wall time within the same capacity until it does.
  2. contributor2026-11-05 22:10 UTC
    Change valley:the-valley/mwtlyyypzyxqokrltykoslwrkyltwwsl landed: v3 as 9322091a28d0ca8b34e64b099dbe8feeb9bd8c66.
    
    Every change the knot links has landed and it has no active children, so klaus set it done.