Flake history: record a suite run's case outcomes, rank the cases by how intermittently they fail.
ctx keys read: :history (an IFlakeHistory), :now (0-arity epoch ms)
and [:settings :compose/flaky] (thresholds, see
hive-compose.promote.flaky).
Integration point for hc-8 (suites): once a runner's report is parsed,
hand the run result {:run/id :suite/id :project :report Report :exit n}
to record-run!; nothing else is needed for compose flaky to rank it.
Flake history: record a suite run's case outcomes, rank the cases by how
intermittently they fail.
ctx keys read: `:history` (an IFlakeHistory), `:now` (0-arity epoch ms)
and `[:settings :compose/flaky]` (thresholds, see
`hive-compose.promote.flaky`).
Integration point for hc-8 (suites): once a runner's report is parsed,
hand the run result {:run/id :suite/id :project :report Report :exit n}
to `record-run!`; nothing else is needed for `compose flaky` to rank it.(flaky {:keys [history settings]} query limit)Result<{:cases [CaseReport] :total n :classes {class n} ..}>: every case
the history holds for query {:suite :project}, ranked (see
flaky/rank), the first limit of them (all when nil).
Result<{:cases [CaseReport] :total n :classes {class n} ..}>: every case
the history holds for `query` {:suite :project}, ranked (see
`flaky/rank`), the first `limit` of them (all when nil).(record-run! {:keys [history now]} run)Append the case outcomes of run result run (see flaky/run-outcomes)
to the history. Every row is checked against CaseOutcome first; one that
does not conform refuses the whole run, naming the problems, and nothing
is written. Result<{:run :suite :project :appended n}>.
Append the case outcomes of run result `run` (see `flaky/run-outcomes`)
to the history. Every row is checked against CaseOutcome first; one that
does not conform refuses the whole run, naming the problems, and nothing
is written. Result<{:run :suite :project :appended n}>.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |