Detecting faulty deployments: Our journey from unlabeled data to supervised learning

David Asker, Sebastien Levy3 Jun 2025

Problem

Deployments cause roughly 70 percent of incidents (per Google SRE, as cited by the authors), so teams need to flag a bad release fast. There is no ground-truth dataset: people define "faulty" differently, and the definition depends on the application. Faulty releases are rare, so random annotation yields almost no positives, and even a low false positive rate can leave precision low. Services also differ widely: seasonal traffic, very low traffic, new versions every couple of hours.

Example from the article: A statistical ensemble needed 60 minutes of post-deployment data to give a confident verdict, which is too late when the error spike is obvious.

Solution in brief

Start with a high-recall set of statistical checks and tighten it by labeling only the predicted positives. Use the slow, accurate ensemble to label past deployments, then train early models (10 and 20 minutes after a release) to predict that verdict. Replace the labels with weak-supervision output that also uses rollbacks and new error signatures.

Questions this case answers
  • How to detect rare failure events early when ground-truth labels do not exist and the definition of failure differs between units
  • How to trade off precision, recall and time to detection when evidence about an event accumulates gradually
  • How to build training labels for a rare-event classifier from imperfect rules and side signals instead of manual annotation
  • How to detect a bad software release early when nobody has labeled which releases were faulty?

Tools and methods

  • Ensemble of statistical checks — unanimous vote on impact, temporal correlation and persistence of the error-rate increase
  • Sequence of models at 10, 20 and 60 minutes — obvious failures are caught early, subtle ones later
  • Random forest — early models trained on features computed at 10 and 20 minutes
  • Weak supervision — combines imperfect rules and side signals into stronger labels
Continue reading — it's free

Google or a one-time email code. No password.