Repeat

object Repeat(source)

The repeated executions of one command read as a History: the samples in the order they ran, one run each. History.state then says whether the outcomes were mixed and how, with the same flip rule as for CI runs. Nothing here classifies on its own.

Functions

Link copied to clipboard
fun history(label: String, samples: List<Sample>): History
Link copied to clipboard
fun intermittent(who: String, label: String, samples: List<Sample>): String?

A sentence for drift diagnose when samples mix passes and failures; null otherwise.

Link copied to clipboard
fun percent(part: Int, total: Int): Int

Whole percent of part in total, rounded half up.

Link copied to clipboard
fun summary(label: String, samples: List<Sample>): List<String>

The lines drift run --repeat prints: pass rate, the history state and the spreads.