Re:Show HN: FlakyBot – Identify and suppress flaky tests
by ankitdce on Thursday October 28, 2021 @03:59PM
(#29031059)
Curious, how often do you see a flaky test in your system? In my past experience at one of the mid-size startups, we used to get a new flaky test almost on a weekly basis in a monorepo. We started the process of actually flagging them as ignored (we created a separate tag for flaky tests), but later realized that the backlog of fixing flaky test never came down.
In another case observed, devs just got used to rerunning the entire suite (the flakiness here was about 10-20%)
Once the test is skipped, a domain expert can come back and take a look and figure out why it was flaky, and fix it.
If it's urgently broken (e.g. there is real impact), we treat it like an incident and gather people with the right context to fix it quickly.
As long as everyone agrees to these norms, it's not a huge burden to keep this up with thousands of tests. People generally write their tests to be more resilient when they know they're on the hook for them not being flaky, and nobody stays blocked for long when they are permitted to skip a flaky test.