Skip to content

kt — where it fails, and where it could but does not

Kepner-Tregoe Problem Analysis on a table of CI runs or jobs: WHAT, WHERE, WHEN and MAGNITUDE as IS against IS NOT. Each value of each dimension is compared with the rest (Fisher exact test, Holm correction); values with too few rows are refused. With a time column it also lists the changes between the last pass and the first failure.

When to use

"It fails sometimes" and you have a table of runs with their dimensions (os, python, shard, runner image, job).

When NOT to use this

  • To name the cause: a distinction is a clue; values that travel together cannot be told apart.
  • When it fails everywhere (no IS NOT side), or with a handful of failures.

Real case from the eval

642 build-job results of pytest's test.yml on main. Fails 48/54 on two runs, 0/588 elsewhere; not specific to os or python. 6 of 30 commits fall in the window, among them pytest#14210, which the fix names as the cause. KT cannot pick it out of the six. Details: evaluation.

Try it

clarent kt analyze methods/kt/examples/flaky-shard.csv --outcome failed --time started --changes methods/kt/examples/changes.json
clarent kt to-ach methods/kt/examples/flaky-shard.csv --outcome failed --time started --out ach.json
clarent ach score ach.json
Card: methods/kt/CARD.md.