Skip to content

Migrating to v4

aryehcitron@gmail.com edited this page Sep 30, 2026 · 2 revisions

Migrating to v4

Kronikol 4.0.0 changes three defaults and removes one opt-in control. Nothing else in the public API changes: code that builds against 3.36.0 without a CS0618 warning builds against 4.0.0 unchanged. Each default can be set back to what 3.x did.

What changed

3.x 4.0.0 To keep the 3.x behaviour
Large payloads in TestRunReport.json Text Compressed in place CompressTestRunReportPayloads = false, or kronikol ingest --payloads plain
Request and response headers in diagram notes Shown Hidden until a reader shows them TestRunReportToggleDefaults.HeadersShown = true, or kronikol ingest --headers shown
JSON payloads in diagram notes Drawn as JSON Drawn as YAML NotePayloadFormat = NotePayloadFormat.Json, or kronikol ingest --note-format json
Monospace note control Opt-in, ShowNoteFontControls Removed None: notes use the diagram's own font

To keep all three 3.x defaults:

var options = new ReportConfigurationOptions
{
    CompressTestRunReportPayloads = false,
    NotePayloadFormat = NotePayloadFormat.Json,
    TestRunReportToggleDefaults = { HeadersShown = true },
};

Compressed payloads

A body or a diagram's PlantUML source of 8,192 characters or more (512 in 4.0.0 and 4.0.1) is written as {"$h": "b:…", "$n": length, "$z": "…"} in its place when that is smaller, and a file holding one declares formatVersion 2 (#85). The file is still JSON, and every kronikol query verb answers as it does on an uncompressed copy of the same run. On BreakfastProvider's xUnit lane the file came to 4,345,421 bytes, 74% of the 5,855,252 that 3.34.2 wrote. 4.0.2 compresses from 8,192 characters, not 512: zipped as a CI artifact, or served gzipped as GitHub Pages serves it, a report whose payloads are mostly under a few kilobytes had come out larger than with nothing compressed, since each payload gzipped on its own no longer compresses against the others. On BreakfastProvider's in-memory xUnit lane the zip of the file went from 44.6% larger than with nothing compressed to 8.5% larger, and the file stays 20% smaller than with nothing compressed. See Generated Reports › Compressed payloads.

What reads it:

  • kronikol 3.35.0 and later. An older kronikol refuses the file by its formatVersion rather than half-reading it. Update the tool: dotnet tool update -g Kronikol.Tool.
  • kronikol merge takes 3.x and 4.0.0 shards together. The merge is compressed when any shard was.
  • query.py. The copy Kronikol writes into a repository reads compressed payloads from 3.35.0 on. A copy made before 3.35.0 fails on one: refresh it with kronikol init-agents, or copy it again from the project template.
  • The history action. The tool its VERSION file installs has to read formatVersion 2, so a workflow that pins the action to a tag before v3.35.0 has to move it on, to v4.0.0 or later.
  • Your own scripts. $z is the base64 of the gzip of the text's UTF-8: decode it and gunzip it. $h is the payload's b: address and $n its length. The report's JSON schema describes the wrapper.
  • Kronikol4J writes its own file and is not affected.

Headers start hidden

Diagrams start without the grey header lines of each request and response note. The Headers toolbar button shows them for the whole report or for one scenario, as it always has; only the state a report opens in has changed.

Notes start as YAML

A JSON payload in a note is drawn as YAML, so a multi-line string such as a SQL query reads with its real line breaks. A payload that cannot be drawn as YAML stays JSON. Readers switch a note, a scenario or the whole report between JSON and YAML as before.

The monospace note control is removed

ReportConfigurationOptions.ShowNoteFontControls, ReportToggleDefaults.NoteFont, ResolvedToggleDefaults.NoteFont, ResolvedToggleDefaults.ShowNoteFontControls and the NoteFontFamily enum are gone. 3.36.0 marked them obsolete, so a build with no CS0618 warning on 3.36.0 has nothing to change. Code that still sets them does not build on 4.0.0: delete those lines. The note width control stays; see PlantUML Browser Rendering › Note Appearance.

kronikol ingest

kronikol ingest follows the library's defaults, so without flags it now writes compressed payloads, headers hidden and YAML notes. --payloads plain, --headers shown and --note-format json write what 3.x wrote. See Ingesting External Captures.

Home · 🔍 Search this wiki Full-text search across every page. The “Pages” list above matches page and heading names, not page content.


Demo


Getting Started

Common Tasks

Integration Guides

Uninstrumentable / polyglot backends

Extensions

Configuration

Features

Reference

Clone this wiki locally