Cause of test flakiness for SWE-bench Lite instance astropy__astropy-6938
Ascertain the exact cause of the non-deterministic behavior of the unit test suite for the SWE-bench Lite instance astropy__astropy-6938 that is flaky on some machines but not others, and determine the environment and dependency conditions under which this flakiness occurs.
References
An additional instance, astropy__astropy-6938, was flaky on some machines and not others. The authors of SWE-bench were able to reproduce the flakyness; however, we were unable to. Our prelimiary investigation indicates this specific issue is due to unpinned versions of dependencies in the docker environments that run the unit tests.
Three questions our data could not settle remain open: whether detection improves materially as the execution budget grows past the $\sim$170-rerun threshold of \citeauthor{gruber2021empirical}; whether stress-ng configurations tuned for Python's execution model, rather than inherited from Java and Android, recover the concurrency cases the default configuration misses; and whether running each test within its suite, rather than in isolation, restores part of the flakiness that did not reproduce here.