How To Make Build Failures Reproducible Before They Become CI Mysteries

Build failures become expensive when they stop being reproducible. The first failure is usually just a problem. The third person saying "it only happens in CI" is when the problem starts turning into folklore. Someone reruns the job. Someone else clears a cache. A third person changes an unrelated file …