Words in a report
The words nk prints and what each one means in plain terms. The pages use plain words where they can, and the report's own word where you will need to search for it.
This page defines the words a report uses. Search it for a word you meet in a report.
What a compare is made of #
| Word | What it means |
|---|---|
| Build | One image of your app. Nikasa compares an old build with a new one. |
| Run | One start of a build in its own sandbox, from nothing, with the same requests. A compare is several runs. |
| Sandbox | The private Docker network a run happens on. |
| Driver | The container that sends your requests. |
| Scenario | One request or input, numbered in the order sent, as in 0002 POST /. A change no request caused names where it was seen instead, so in the run's logs means the service's logs and in the run's files its files. |
| App file | nk/, the compose file Nikasa starts. nk init drafts it for you. See The app file. |
| Pack | A folder holding a recorded session, made by nk record, that is sent again on every run. |
| Cassette | A recorded answer from an outside service, kept in a pack. |
| Golden | A saved starting database, as the report names it. |
Folders and keys #
| Word | What it means |
|---|---|
| Output folder | The folder you give nk compare, shown as <out-dir> in commands, by default out/. It holds the reports and one run folder for each run. |
| Run folder | One run's own folder inside the output folder, named old-1, new-1 and so on. It holds that run's capture, TLS keys and the sandbox's credentials. The What a run folder holds section of Security reference lists its files. |
| Secret key | A random key that makes the markers hiding secrets, and encrypts saved baselines. Nikasa makes one for you on a machine, and in CI you make one and keep it as a secret. See The secret key. |
| Baseline | The old build's runs, saved so that a later compare can read them instead of running the old build again. See Saved baselines. |
| Gate | A CI job that fails on a change, which is what --fail-on-change turns on. Without it the job passes with the report. |
The top of a report #
The line learned from 8 runs: 314 values fixed, 5 varying, 2 sometimes present, 0 links says what the old runs taught Nikasa. Each part means this:
| Word | What it means |
|---|---|
| Fixed | Values that were the same in every old run. A change to one is a change. |
| Varying | Values that differed between identical old runs, such as ids and timestamps. These do not count as changes. |
| Sometimes present | Places that were there in only some old runs. |
| Links | Pairs of values that matched each other, such as an id one call returned and the next one sent. |
The changes #
| Word | What it means |
|---|---|
| Change | Something the new build did differently in every new run, on a point where all the old runs agreed. |
| Unstable | A difference only some new runs showed. See Changes that show only sometimes. |
| Place | The path to what changed, such as /. Flags such as --ignore <place> take it as the report writes it. |
| Left behind | The state a run ends with: database rows, changed files and how containers ended. |
| In short | The block that sums up, in a line each, what the rest of a long report lists. |
| Folded | Grouped under one line of the report, and still counted. See One cause, one change. |
| Told, never counted | Shown in the report for information, and left out of the change count and of --fail-on-change. See Shown but never counted. |
| Provenance | The last block of a report, naming exactly what was compared. See Provenance. |
Related pages #
- Reading the report: how each part of a report fits together.
- The sample report: a real report to read the words against.
Written for nk 0.3.14. Something wrong or unclear? Write to hello@nikasa.dev.