You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lab: corpus repeat / probe --runs: what varies between runs of one binary #61
Lab issue (neospector lua/myemmylab*.lua in myvi). Part of #17, see also #44. From the 2026-11-19 retro (#59).
gndx emmylua corpus repeat LABEL BIN --trees=… --runs=N: run BIN N times on the trees (each run a normal labelled corpus run, LABEL-<n>) and print:
for each pair of runs, how many report lines differ;
the files that vary, with counts;
the varying lines, folded (file:line code, each message variant with its run count).
Plus probe --runs=N on fixtures: a histogram line → count per build. That is the red loop for a run-to-run bug.
Hand-rolled 5 times in the #59 session (loop.sh, a fixture histogram, a corpus run loop, a repeat loop with md5 summaries, per-file diff counts). Costs: a jq glob that also caught runs.json and errored, and a 32 KB diff dump read before counting. The upstream EmmyLuaLs#1437 evidence table came from these loops.
Also: corpus diff could take --repeat-base=N and mark a changed line base-flips when the base itself reports it differently across N runs. That replaces the manual "re-run the base a few times before counting a ±1 moved pair" rule in #1.
Done in myvi db4e0a8 (not pushed yet): gndx emmylua corpus repeat LABEL BINARY [--runs=N] [--trees=…] [--replace]. Runs are plain corpus runs LABEL-1..N. It prints each varying hit's count per run (tree: file:line code message [1 0 1]), the files that vary, and hits differing per pair of runs. Exit 0 = the same every run, 1 = varies, 2 = not comparable. A tree ending the same non-finished way in every run is skipped (mason refused); an outcome that varies is a line. Verdict: myemmylab.variance, ONest leaves in neospector/emmylab/variance.
Keys are corpus diff's (the message's first line), so a reason that varies only on the second line (upstream's "found nil" churn) does not count.
Still open here: probe --runs=N (fixture histogram) and corpus diff --repeat-base=N.
Activity
gndx emmylua, Lua-side gates) #17mareklangiewicz commentedon Nov 19, 2026
Done in myvi db4e0a8 (not pushed yet):
gndx emmylua corpus repeat LABEL BINARY [--runs=N] [--trees=…] [--replace]. Runs are plain corpus runsLABEL-1..N. It prints each varying hit's count per run (tree: file:line code message [1 0 1]), the files that vary, and hits differing per pair of runs. Exit 0 = the same every run, 1 = varies, 2 = not comparable. A tree ending the same non-finished way in every run is skipped (mason refused); an outcome that varies is a line. Verdict:myemmylab.variance, ONest leaves inneospector/emmylab/variance.Keys are
corpus diff's (the message's first line), so a reason that varies only on the second line (upstream's "foundnil" churn) does not count.Still open here:
probe --runs=N(fixture histogram) andcorpus diff --repeat-base=N.