You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhance Test Improver with Flaky Test Detection and Mitigation #413
Flaky tests are a major problem in large codebases. New tests and functionality are added and modified at a high rate. Running a test once or twice might succeed, but for various reasons it may not be completely stable. Adding new tests and improving coverage is always welcome, but it also risks introducing flakyness. This usually only becomes apparent after the PR is merged and CI runs the tests more frequently.
It would be beneficial to include a flaky test detection or mitigation strategy as part of the test steps. For example, running each test multiple times instead of just once can help ensure stability and surface intermittent failures earlier.
There are tools specifically designed for this purpose. In Go, for instance, you can use https://pkg.go.dev/golang.org/x/tools/cmd/stress
or the -test.count flag to execute tests repeatedly. Running tests multiple times as separate processes can also reveal different classes of flakiness, since process-level isolation may expose issues that in-process reruns do not.
Activity
mauri870 commentedon Feb 26, 2026
cc @strawgate
strawgate commentedon Feb 26, 2026
Need to land #406 and then will propose an update