skip to content

For a note-taking phone app released fortnightly in stages, which crash and hang signals should gate each rollout, and at what grain?

level: seniorimportance: must knowfreq 50%

answer

  1. the fleet average hides the new build
  2. users for breadth, sessions for frequency
  3. same rollout age, not yesterday
  4. no verdict below a minimum sample
  5. slice by model, OS, variant

basics

~20 s

Crash-free users and sessions plus hang and unexplained-exit rates, per version, each with a minimum sample, compared with the previous version at the same rollout age and sliced by device model, OS version and variant; a new top issue alerts alone.

solid answer

~50 s

An installed release cannot be recalled, so the signal must catch a bad version while it is on a few percent of devices. Measure **per version**, never on the fleet, where old installs drown the new build. Track **crash-free users** for breadth and **crash-free sessions** for frequency, plus hang and unexplained-exit rates, since hangs and kills never reach a crash handler. Compare version N with N−1 **at the same rollout age**, because early adopters and first-launch migrations skew the first days, and give no verdict below a **minimum sample**. Slice by device model, OS version, foreground or background and experiment variant, where a regression hides inside a healthy average, and alert per version on any new issue entering the top list. Whether to halt or roll forward is the release decision; this is the signal it reads.

code

json · 15 lines
json
{
  "gate": "release-health",
  "compare": { "against": "previous_version", "at": "same_rollout_age" },
  "min_sample": { "users": 20000, "per_slice_users": 3000 },
  "series": ["foreground", "background"],
  "metrics": {
    "crash_free_users":    { "min": 0.995, "max_drop_vs_previous": 0.001 },
    "crash_free_sessions": { "min": 0.999, "max_drop_vs_previous": 0.0005 },
    "hang_rate_users":     { "max": 0.004, "max_rise_vs_previous": 0.001 },
    "unexplained_exit_rate_users": { "max_rise_vs_previous": 0.001 }
  },
  "slices": ["device_model", "os_version", "experiment_variant"],
  "alert_on": ["new_issue_in_top_10", "threshold_breach"],
  "route_to": "owner_of_top_app_frame"
}

go deeper

for a junior

Recall that crash rates are judged per version, and that crash-free users and crash-free sessions are different measures.

for a middle

Explain what each of users and sessions hides, with a worked case, and why background sessions belong in their own series.

for a senior

Show the gate: same-rollout-age comparison, a minimum sample with numbers, slices by model, OS and variant, hangs and unexplained exits beside crashes, and per-version alerts.

for a principal

Set one gate that every team ships behind, decide who owns a breach, and weigh sensitivity against false alarms that would teach teams to ignore it.

## Why the signal must be per version A store release cannot be recalled: once a version is installed it stays until the user updates. The cheap moment to catch a bad version is while it is on a small share of devices. That shapes what is measured: - a **fleet-wide** crash-free rate cannot gate a release, because in the first days the new version is a few percent of sessions and the older versions dominate the average; - every crash, hang and unexplained exit is tagged with the **version and build** that produced it, which is what makes per-version rates possible; - reports are grouped into **issues** by the signature of their top app frames, with the same identity across releases, so "new in this version" and "regressed in this version" can be computed. ## Users versus sessions | Measure | What it counts | What it hides | |---|---|---| | **crash-free users** | share of users with no crash in the window | how often each affected user crashes: ten crashes count as one | | **crash-free sessions** | share of sessions with no crash | breadth: heavy users' many clean sessions dilute a crash that hits many light users | Worked example: one user opens the app three times in a day and it crashes once. Per user, that user is not crash-free for the day; per session, two of three sessions were crash-free. One store's own quality figures count per daily user, which is one reason its rates and a session-based reporter's disagree for the same app. A note-taking app adds **background sessions**: a widget refresh or a background sync can start the process without the user, and can crash it. Counted with foreground sessions, they inflate the denominator and dilute foreground crashes; ignored, a sync crash that leaves notes half-merged goes unseen. Report them as their own series. Hangs and unexplained foreground exits sit beside crashes, since none of them reach a crash handler. ## Same rollout age and a minimum sample The first users of a staged release are not typical: they update automatically and open the app often, and their first launch after an update runs migrations against caches that were just invalidated. Compare version N on day two of its rollout with version N−1 on day two of its own rollout, not with the settled fleet. Small samples are noise. Assume, for this scenario, that 0.5 % of a version's users crash on a given day: - with **2,000** users on the new version, the standard error of that rate is about 0.16 percentage points, so a 95 % interval spans roughly ±0.31 points — a rise to 0.7 % cannot be told apart from bad luck; - with **20,000** users the interval narrows to about ±0.10 points, and the same rise stands out. The gate therefore states a **minimum sample** before it passes or fails a version. Choosing the test properly is a statistics question; the design's job is to have the rule and refuse early verdicts. ## The grain A regression usually hides in a slice: - **device model and OS version** — one store also judges crash rates per phone model, not only overall; - **foreground and background** sessions; - **flag value and experiment variant**, from the reports' custom keys; - **new issues** — an issue absent in N−1 that enters the top list in N alerts on its own, whatever the overall rate. Alerts are per version and go to the team that owns the code in the issue's top frames. ## A gate written down 1. Per version: crash-free users, crash-free sessions, hang rate and unexplained-exit rate, foreground and background separately. 2. A threshold for each — this scenario's assumption, not an industry figure — both absolute and relative to N−1 at the same rollout age. 3. No verdict before the minimum sample. 4. Slices by device model, OS version and variant, each with its own minimum sample. 5. A new top issue alerts immediately. ## What the gate does not decide, and what it cannot see The gate produces a signal: version N is worse than N−1 on these slices, with this confidence. Whether to halt the staged release, roll forward with a fix or turn a feature off remotely is the release decision that reads it. Name the blind spots too. An in-app reporter misses crashes that happen before it is armed and exits that leave no marker; the figures the OS collects come only from users who agreed to share diagnostics. Compare like with like — version against version, from one source — and treat a gap between the two sources as information rather than as an error to explain away.

  • Why compare a new version with the previous one at the same rollout age instead of with the whole fleet today?
    The first users differ from the settled fleet — automatic updaters, frequent openers — and their first launch after an update does one-off work such as migrations and cache rebuilds. The previous version went through the same early phase, so comparing day two with day two cancels most of that bias, while the fleet average is dominated by old builds.
  • Why do the in-app reporter's numbers and the store's crash figures disagree?
    The OS-collected figures include crashes before the in-app reporter starts, but only from users who agreed to share diagnostics, and one store counts per daily user while many reporters count per session. Neither is wrong; the gate should compare versions within one source and use the gap as a hint, for example of crashes early in launch.
  • What happens to the gate when the new version is on only 1 percent of a small user base?
    It may never reach the minimum sample within the rollout stage, so it must say 'not enough data' rather than pass. The options are to wait longer at that stage, widen the stage, or lean on beta and internal users, while accepting that small regressions will be invisible.

  • A fleet-wide crash-free rate is enough to judge a new version.
  • Crash-free users and crash-free sessions always move together.
  • There is an industry-standard crash-free threshold every app should use.
  • A few hundred users of a new version can reveal a small rise in crash rate.
  • Crash-free rates already include hangs and OS kills.