by rwmj ยท 3y ago ยท 0 comments
Maybe it would have failed on the 292,613rd boot ...
But in order to contribute something useful, as a rule of thumb you want to have 10 times as many passes than failures in order to reject a commit. If a bug has taken up to 2500 runs to reproduce, don't consider it a pass until 30000 runs have succeeded.
It's something to do with Poisson distributions. If you have ๐ runs before a failed run on average, and you want to be ๐ % certain that a fix (including a revert or moving beyond the bug in a bisect) reduced the failure rate, you can use the formula โ ๐ ln (1 โ ๐ /100) for how long to run, and the factor for ๐=99.99 is about 10.
In fact that means that once you had landed on a merge commit it was probably much better to switch to a linear backwards search because it might have fewer passing runs and passing runs are 10-15 times more expensive as failures. Is that what you did?
Ha ha, nope! I tested each commit starting at the earliest, and it was the last one in the merge :-(
It's particularly comforting when the reason for the failure/fix/change in behavior isn't completely understood.