Video in progress

If you see a problem nobody owns (for example, flaky tests across all services), how do you take it on?

I measure the problem and make it visible, agree with my manager on getting time, take the first step myself, and then turn it into a process with a permanent owner. Just complaining is not ownership.

📖 Answer

Flaky tests are a classic "everyone's, which means nobody's" problem. Everyone clicks "re-run" and nobody fixes it.

The reaction expected from a senior:

  1. I measure: from the CI history, the list of flaky tests over the last month, how many times each failed, how much time the team lost. "An average of 6 re-runs a day, 15 minutes each" is now a number.
  2. I send this number to the team channel and to the lead. Often everyone feels the problem but doesn't know its size.
  3. I get time: "For the next two sprints I'll give 20% of my time to this", agreed with my manager. Not doing it in secret.
  4. I fix the 10 worst tests myself. The causes are often the same: Thread.sleep, shared test data, time zones, dependence on ordering.
  5. Then I make it systemic: a CI rule that automatically quarantines a flaky test, a weekly report, a rotating duty person in the teams. That way the problem keeps getting solved after I'm gone.

Ownership doesn't mean doing everything yourself. It means raising the problem and bringing it to a state where it gets solved. Sometimes the right step is to hand it to the right team and check that they actually accepted it.