Skip to content

Read Elixir 1.20's test summary in the flake hunt - #96

Merged
HackTuah merged 1 commit into
mainfrom
ci/flake-hunt-elixir-1-20
Oct 20, 2026
Merged

HackTuah merged 1 commit into
mainfrom
ci/flake-hunt-elixir-1-20

Conversation

@HackTuah

Copy link
Copy Markdown
Member

Tooling only. Nothing a consumer of the package can hit changes.

Why. The first flake hunt measured the floor and pinned legs (40 runs, 0 failures) but counted every run on the head and box legs as failed. Elixir 1.20 prints its summary as Result: 798 passed (11 properties, 787 tests), and Result: 797/798 passed when a test fails. Elixir 1.17 and 1.18 print 786 tests, 0 failures. The script found no summary in the newer form, and it counts a run without a summary as failed, so 40 green runs read red. The guard did what it is for: it did not call an unmeasured run green.

What changes

  • tools/flake_hunt.sh: the summary read accepts both forms. The verdict is still the exit code; the summary only shows that the suite reported.
  • tools/probe_flake_hunt.sh: the fake mix speaks Elixir 1.20's form, green and red.

Evidence

  • The probe's two new cases fail before the change and pass after.
  • On Elixir 1.20.4, the real suite with a planted failing test is named with its replay command (exit 1), and two runs on a clean tree exit 0.

Not yet measured

  • A hunt on CI with this change. It is dispatched after the merge.

The first weekly hunt measured the floor and pinned legs (40 runs, 0
failures) but counted every run on the head and box legs as failed:
Elixir 1.20 prints its summary as "Result: 798 passed (...)", and
"Result: 797/798 passed" when a test fails, where 1.17 and 1.18 print
"786 tests, 0 failures". The script found no summary in that form, and
a run with no summary is counted as failed, so 40 green runs read red.

- tools/flake_hunt.sh: the summary read accepts both forms. The verdict
  is still the exit code; the summary only shows the suite reported.
- tools/probe_flake_hunt.sh: the fake mix speaks 1.20's form, green and
  red.

Measured locally: the probe's two new cases fail before the change and
pass after. On Elixir 1.20.4 the real suite with a planted failing test
is named with its replay (exit 1), and two runs on a clean tree exit 0.

Signed-off-by: Ayla Croft <aylacroft@proton.me>
@HackTuah
HackTuah merged commit d1b9e05 into main Oct 20, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant