With a flaky test, one failure is proof.
transcript
A flaky test fails only some of its runs. A pass proves nothing. A failure proves everything.
A version has three runs. The first run passes. The second run fails. Stop here. The version is bad.
A good version never fails. A bad version fails one run at least. A bad version stays bad.
Say a run fails three times in ten. All five runs pass about one time in six. So choose the runs from the rate.
A scan needs about half a million runs. In the worst case measured, a bisect needed eighty three. Good versions cost the most.
Only the first run? A bad version can pass it. A majority vote? One failure in three loses. Both return version nine, not six.
A bad version stops at its first failure. A good version needs every run. So good probes cost the most.
State the assumption. Then bisect the history. Full breakdown in the lecture.