gunk-dev/the-valley
the-valley:oc-1e43ec2outcomeabandoned

attest evaluates checks side by side and starts each build when its derivation is known

State
abandoned
Created
2026-11-02 by contributor
Changes
  • valley:the-valley/vwstqtyxprmukrtpuntuyponuvxouxlr

Body

attest evaluates every pure check in one single-threaded `nix eval` (attest/check.go, evalClosures and evalDrvPaths), and builds nothing until all of them are evaluated. Measured on 2026-11-02: 76 to 94 s on the deployment host and 42 s on the operator's workstation. With builds cached, evaluation was 76 of a version's 83 s of preparation. With four build slots, preparation takes about this evaluation plus the longest check.

Outcome: attest evaluates checks in several `nix eval` processes at once, using the machine's own nix as today. Each check's build starts as soon as its derivation is named, and does not wait for every evaluation. Checks that share a derivation still share one build. An error stays attributed to the check that has it. Telemetry stays truthful about each check's evaluation time and the run's total. Before and after are measured on the same machine over the same tree. This is separate from oc-90b6f14, which caches evaluation across runs.

Comments

  1. contributor2026-11-02 21:28 UTC
    vwst v1 (c55f027) measured that splitting evaluation does not shorten a warm run: prose-format alone takes 58 to 60 s to evaluate, and the other 17 checks take 1 to 3 s each (bd-f9e05d7). Cold runs went from 232 s to 195 s, mostly because builds start before prose-format finishes evaluating. vwst is held unreadied until bd-f9e05d7 lands and evaluation is measured again. If evaluation then totals a few seconds, the grouping adds about 480 lines to attest for a few seconds saved, and should be withdrawn.
  2. contributor2026-11-02 22:37 UTC
    Withdrawn 2026-11-02: change vwst is withdrawn. Its measurements showed the evaluation floor was one check, prose-format (58 to 60 s), now fixed by bd-f9e05d7 (yonu, landed: 57 s down to 1 s). With that fixed, grouped evaluation would save a few seconds for about 480 lines in attest. Under M8 (oc-9d1b67a), that is complexity without a matching return.