Liking cljdoc? Tell your friends :D

hive-compose.boundary.runs

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

bundle-pathsclj

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

CellKeyclj

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

CellResultclj

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

file-slugclj

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

OomFindingclj

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

PathPartclj

A suite or project directory name: one path segment, never . or ..

A suite or project directory name: one path segment, never . or ..
sourceraw docstring

read-resultclj

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

read-resultsclj

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

result-fileclj

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

result-filesclj

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

result-pathclj

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

RunDirclj

A run directory's name: a RunId (hive-compose.schema/RunId).

A run directory's name: a RunId (hive-compose.schema/RunId).
sourceraw docstring

runs-dirclj

(runs-dir state-dir)
source

summary-fileclj

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

summary-pathclj

(summary-path state-dir run)

<state-dir>/runs/<run>/summary.edn.

`<state-dir>/runs/<run>/summary.edn`.
sourceraw docstring

write-bundle!clj

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

write-result!clj

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

write-summary!clj

(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.
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