Liking cljdoc? Tell your friends :D
Clojure only.

hive-compose.pipeline.flaky

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.
raw docstring

flakyclj

(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).
sourceraw docstring

record-run!clj

(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}>.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close