Run

data class Run(val id: String, val outcome: RunOutcome, val steps: List<Step> = emptyList(), val symptoms: List<Symptom> = emptyList(), val capsule: Capsule? = null, val samples: List<Sample> = emptyList())(source)

One CI run: where it ended, the steps in log order and the symptoms read from its log. capsule holds whatever the log revealed about the environment, so it is usually partial.

Constructors

Link copied to clipboard
constructor(id: String, outcome: RunOutcome, steps: List<Step> = emptyList(), symptoms: List<Symptom> = emptyList(), capsule: Capsule? = null, samples: List<Sample> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard

The run:<field> facts a rule can read, as text. A field is present only when the run has evidence for it: signature (first 16 hex digits of the SHA-256 of the sorted distinct failure signatures), exit and signal (last one seen), step and duration-ms (the first failed step, from steps when one failed, else from the log), transport (distinct values, sorted, one per line).

Link copied to clipboard
fun hash(): String
Link copied to clipboard

samples is written only when a run recorded some, so older records keep their bytes.