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: an INCONCLUSIVE red (timeouts only) reruns the timed-out tests alone, like the green half #88
Lab issue (neospector lua/myemmylab.luared_verdict, myemmylabcli.lua red run). Part of #17.
What happened
#85 made a filter that is red only by its ntest::timeout INCONCLUSIVE (exit 2). Both times it came up on 2026-11-24 (#86), the next step was the same by hand: run the red tree's test binary alone N times, filtered to the timed-out test, to tell "hangs on red" from "slow machine". The green half already reruns its timeouts alone.
Proposed (unprobed)
After an INCONCLUSIVE red verdict, rerun the timed-out tests alone in the red tree, the same way and the same number of times as the green half. A test that times out every time is RED (by timeout, stated as such). One that passes at least once stays INCONCLUSIVE, with its pass count.
One judge for both halves.judge_run reruns a run's ntest timeouts in ONE alone run (--tests -- --exact --test-threads=1) in the same tree. The red half calls it inside run_red, before the scratch tree is reset, so the rerun has the red change applied. The pure lab.judge_failures rules: a failure that is no timeout, or a timeout that fails again alone, is real; a timeout that passed alone was load. The green half's inline copy of that logic is gone.
Simpler verdict.lab.red_of builds the RedRun as {ran, failed, failed_names, passed_alone}. red_verdict loses the lab: test --red-*: a filter red only by an ntest timeout reads NOT RED when another filter failed #85 INCONCLUSIVE timeout branches and the timeout_names bookkeeping. A timeout that also times out alone on the red tree is red. One that passed alone is NOT RED for its filter, and the line adds "N timed out under load and passed alone". The only no-verdict cases left are a filter that matched nothing and an alone rerun that ran the wrong number of tests (exit 2, as on the green half).
Rerun count. One alone rerun, the same as the green half (the issue asked for parity, not N runs).
Driven. I made a mutant that spins at the top of cast_type_mismatch's check and ran test --filter=test_return_union_with_repeated_member_no_hang --red-patch=<it>. It printed FAILED (timeout, also alone) on the red tree, then red-patch: RED -> GREEN, exit 0. The old code would have stopped at INCONCLUSIVE, exit 2. The bisect scratch worktree was clean afterwards.
Seen, not chased (unprobed): in the tree, re-binding code, line = lab.red_verdict(…) (a function returning integer, string) after local code, line = … got need-check-nil: line may be nil on the next line:find. Fresh locals don't. This may be an engine quirk in multi-assignment from a call. I haven't checked it on the three builds.
Activity
gndx emmylua, Lua-side gates) #17mareklangiewicz commentedon Nov 24, 2026
Fixed: neospector myvi de3a29c (unpushed).
judge_runreruns a run's ntest timeouts in ONE alone run (--tests -- --exact --test-threads=1) in the same tree. The red half calls it insiderun_red, before the scratch tree is reset, so the rerun has the red change applied. The purelab.judge_failuresrules: a failure that is no timeout, or a timeout that fails again alone, is real; a timeout that passed alone was load. The green half's inline copy of that logic is gone.lab.red_ofbuilds the RedRun as{ran, failed, failed_names, passed_alone}.red_verdictloses the lab: test --red-*: a filter red only by an ntest timeout reads NOT RED when another filter failed #85 INCONCLUSIVE timeout branches and thetimeout_namesbookkeeping. A timeout that also times out alone on the red tree is red. One that passed alone is NOT RED for its filter, and the line adds "N timed out under load and passed alone". The only no-verdict cases left are a filter that matched nothing and an alone rerun that ran the wrong number of tests (exit 2, as on the green half).cast_type_mismatch'scheckand rantest --filter=test_return_union_with_repeated_member_no_hang --red-patch=<it>. It printedFAILED (timeout, also alone)on the red tree, thenred-patch: RED -> GREEN, exit 0. The old code would have stopped at INCONCLUSIVE, exit 2. The bisect scratch worktree was clean afterwards.aTimeoutIsRealOnlyWhenItFailsAgainAlone,aRedRunCountsTheRealFailuresAndTheTimeoutsThatPassedAlone,aTimeoutThatPassedAloneOnTheRedTreeIsNotRed, andaFilterRedByATimeoutThatAlsoTimesOutAloneIsRed(the lab: test --red-*: a filter red only by an ntest timeout reads NOT RED when another filter failed #85 case, rewritten) were all red before the change.gndx gatePASS (1278 nodes).Seen, not chased (unprobed): in the tree, re-binding
code, line = lab.red_verdict(…)(a function returninginteger, string) afterlocal code, line = …gotneed-check-nil: line may be nilon the nextline:find. Fresh locals don't. This may be an engine quirk in multi-assignment from a call. I haven't checked it on the three builds.