Liking cljdoc? Tell your friends :D

hive-compose.boundary.files

The two files the addon reads and writes: the profiles file and the state file holding the active map.

The two files the addon reads and writes: the profiles file and the state
file holding the active map.
raw docstring

hive-compose.boundary.history

The flake history file: an append-only EDN-lines file in the state dir, one CaseOutcome row per line (see hive-compose.schema).

An append writes every row of the call as one write under an exclusive file lock (a second JVM sharing the file waits) and forces it to disk, so a run is either all in the file or, when the process dies mid-write, ends in one torn last line. A reader skips a line it cannot read and counts it under :skipped in the meta of the rows; nothing is ever rewritten.

The flake history file: an append-only EDN-lines file in the state dir,
one CaseOutcome row per line (see `hive-compose.schema`).

An append writes every row of the call as one write under an exclusive
file lock (a second JVM sharing the file waits) and forces it to disk, so
a run is either all in the file or, when the process dies mid-write, ends
in one torn last line. A reader skips a line it cannot read and counts it
under `:skipped` in the meta of the rows; nothing is ever rewritten.
raw docstring

hive-compose.boundary.report

Test report files: the JDK XML parser, hardened, and the reading of a runner's report directory. The folding into a Report is pure, in hive-compose.promote.report; here XML text becomes a plain element tree {:tag :attrs :content :text} and files become text.

The parser forbids DOCTYPE declarations outright, so neither external entities (XXE) nor entity expansion (billion laughs) can happen, and loads no external DTD or schema.

Test report files: the JDK XML parser, hardened, and the reading of a
runner's report directory. The folding into a Report is pure, in
`hive-compose.promote.report`; here XML text becomes a plain element tree
{:tag :attrs :content :text} and files become text.

The parser forbids DOCTYPE declarations outright, so neither external
entities (XXE) nor entity expansion (billion laughs) can happen, and loads
no external DTD or schema.
raw docstring

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

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