Hiding problems
Hiding problems
Posted Sep 5, 2026 12:45 UTC (Sat) by iabervon (subscriber, #722)In reply to: Hiding problems by LtWorf
Parent article: Deterministic testing for multithreaded Python
One possibility would be to get random orders, with the advantage that you're not affected by the time duration of the window for a race, and that the test can just tell you the order that led to a failure, and repeat it when you think you've fixed it. The next step would be to introduce some sort of fuzz testing method searching for an order that results in properties that haven't been tested yet. We've got better methodology around finding problems with particular inputs than finding problems with thread ordering, so reducing the latter to the former is useful, even if it isn't a solution by itself.
