The files a test run leaves under the state directory:
<state-dir>/runs/<run>/<suite>/<project>/result.edn the hc-8 cell result <state-dir>/runs/<run>/why/<case>.md and .edn hc-10 failure bundles
result.edn is the one codec shared by hc-8 and hc-10: the suite runner
writes a CellResult with write-result!, why reads it with
read-result/read-results. Both validate against CellResult; the run
directory's name is the authority on the run id, and a file naming another
run is skipped. Reads answer Results; an unreadable or invalid result file
is skipped and reported, never thrown.
The files a test run leaves under the state directory: <state-dir>/runs/<run>/<suite>/<project>/result.edn the hc-8 cell result <state-dir>/runs/<run>/why/<case>.md and .edn hc-10 failure bundles result.edn is the one codec shared by hc-8 and hc-10: the suite runner writes a CellResult with `write-result!`, `why` reads it with `read-result`/`read-results`. Both validate against `CellResult`; the run directory's name is the authority on the run id, and a file naming another run is skipped. Reads answer Results; an unreadable or invalid result file is skipped and reported, never thrown.
(bundle-paths state-dir run case-id){:md :edn} paths of the bundle of case-id in run.
{:md :edn} paths of the bundle of `case-id` in `run`.
A cell's suite dir: a PathPart suite id, or <suite>@<variant> for a
variant cell (hc-8 promote.suite/cell-key).
A cell's suite dir: a PathPart suite id, or `<suite>@<variant>` for a variant cell (hc-8 promote.suite/cell-key).
What result.edn holds: hc-8 hive-compose.promote.suite/cell-result.
Open: extra keys are kept. :report is a Report
(hive-compose.promote.report/Report), checked here only for its cases.
:oom is the runner's OOM finding (hc-16b), present only when it was
OOM-killed.
What result.edn holds: hc-8 `hive-compose.promote.suite/cell-result`. Open: extra keys are kept. `:report` is a Report (hive-compose.promote.report/Report), checked here only for its cases. `:oom` is the runner's OOM finding (hc-16b), present only when it was OOM-killed.
(file-slug s)s as a file name: every char outside [A-Za-z0-9._-] made _, at most
120 chars, never empty, never . or ...
`s` as a file name: every char outside [A-Za-z0-9._-] made `_`, at most 120 chars, never empty, never `.` or `..`.
An OOM kill of the cell's runner (hc-16b hive-compose.promote.oom):
which service, at which cap, and the line why prints.
An OOM kill of the cell's runner (hc-16b `hive-compose.promote.oom`): which service, at which cap, and the line `why` prints.
A suite or project directory name: one path segment, never . or ..
A suite or project directory name: one path segment, never . or ..
(read-result path)Result<CellResult> of the EDN file at path: unreadable EDN is
:compose/result-unreadable, a value that is no CellResult
:compose/invalid-result.
Result<CellResult> of the EDN file at `path`: unreadable EDN is :compose/result-unreadable, a value that is no CellResult :compose/invalid-result.
(read-results state-dir run){:results [cell-result (with :result/path)] :skipped [{:path :error}]} of
every result file under state-dir (of run when given).
{:results [cell-result (with :result/path)] :skipped [{:path :error}]} of
every result file under `state-dir` (of `run` when given).The name of a cell's result file inside its run dir (agreed with hc-8).
The name of a cell's result file inside its run dir (agreed with hc-8).
(result-files state-dir run)[{:run :suite :project :path}] of every result file under state-dir,
narrowed to run run when given. Sorted by run, suite, project.
[{:run :suite :project :path}] of every result file under `state-dir`,
narrowed to run `run` when given. Sorted by run, suite, project.(result-path state-dir run suite project)<state-dir>/runs/<run>/<suite>/<project>/result.edn, the same dir as
hc-8 hive-compose.promote.suite/run-dir.
`<state-dir>/runs/<run>/<suite>/<project>/result.edn`, the same dir as hc-8 `hive-compose.promote.suite/run-dir`.
A run directory's name: a RunId (hive-compose.schema/RunId).
A run directory's name: a RunId (hive-compose.schema/RunId).
The name of a test run's matrix summary inside its run dir (hc-8).
The name of a test run's matrix summary inside its run dir (hc-8).
(summary-path state-dir run)<state-dir>/runs/<run>/summary.edn.
`<state-dir>/runs/<run>/summary.edn`.
(write-bundle! state-dir run case-id bundle markdown)Result<{:md :edn}>: markdown and bundle (as EDN) written beside each other.
Result<{:md :edn}>: `markdown` and `bundle` (as EDN) written beside each other.
(write-result! state-dir res)Result<path>: cell result res (a CellResult) written atomically to its
result-path under state-dir. A value that is no CellResult is
:compose/invalid-result, nothing written.
Result<path>: cell result `res` (a CellResult) written atomically to its `result-path` under `state-dir`. A value that is no CellResult is :compose/invalid-result, nothing written.
(write-summary! state-dir run summary)Result<path>: the matrix summary summary of run run written atomically
to its summary-path, so a caller that lost the answer still finds it.
Result<path>: the matrix summary `summary` of run `run` written atomically to its `summary-path`, so a caller that lost the answer still finds it.
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 |