Skip to content

Correctness tests fail on wall-clock time: hang guards, not speed budgets #2371

Closed

Description

@ehartford

Problem

Several correctness tests fail on wall-clock time, so their verdict depends
on how loaded the machine is and how fast it is, not on whether the compiler
is right.

target checks limit observed
issue61-regression check src/main.w on a perturbed tree says ok 180 s 109 s alone, 182.6 s in the battery (red)
invariance-* (5 targets) the same check, under 5 benign edits 240 s 185–222 s in the battery (green, barely)
WIPE targets.w builds the targets 120 s 70 s on eric-5090, 160 s on the Steam Deck

(eric-5090, at PR #2361 / 4716e86, before 2b4a12e cut about a third of
check src/main.w.)

The battery runs these targets in parallel with each other, so it supplies
the very load that pushes them past their limits. A red here says nothing
about issue61's invariant (#2362).

Proposal

  1. A correctness target gets a hang guard, not a speed budget: a limit that
    only a genuine hang reaches (for example 10× the measured time), so a
    slow host or a loaded battery cannot turn it red.
  2. Speed is measured separately as a benchmark: check src/main.w wall
    and user time per host, recorded in build-times, with a regression budget
    compared against main's own number on the same host. Speed regressions
    stay visible without making correctness flaky.
  3. Audit the remaining run_capture* timeouts in build.w and build/*.w
    for the same pattern.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): does not reproduce. The correctness checks now use hang guards, not speed budgets: build.w:1850 ("A hang guard (#2371), not a speed budget: the battery runs this beside …"), build.w:1880 and build/selfhost.w:7414 say the same, and no 180 s or 240 s limit remains in build.w or build/. The battery itself became one scheduled graph in 7f81d1e (#2408).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions