Verification and release
cargo test -p ergo-sbe --all-features
cargo test -p ergo-sbe --doc --all-features
RUSTDOCFLAGS="-D warnings" cargo doc -p ergo-sbe --all-features --no-deps
cargo clippy -p ergo-sbe --all-targets --all-features -- -D warnings
ergo-sbe-inspect has its own lane (test-lanes.tsv): cargo test -p ergo-sbe-inspect --all-features runs its oracle-parity tests (every field the
generated Display prints must appear in the runtime output), corpus,
property and robustness tests, the sbe-inspect filter’s tests (input it
does not recognise comes out byte for byte, streams cut at every byte give the
same output), the schema-URL tests against a local server the test starts,
and the tests that write the output shown in the
inspect chapters. Its fuzz targets inspect_bytes and
inspect_filter are built with the other fuzz targets and are not among the six
replayed at release.
ergo-aeron-tools has its own lane too, run in three builds: the default
one, which links Aeron in like every crate in the repository (just check-aeron-tools, also part of just check-local), the dynamic one, which
loads libaeron at run time from the loader path cargo sets (just check-aeron-tools-dynamic, part of just test), and the one without the archive control reader (just check-aeron-tools-no-archive, part of just test). Each is clippy with -D warnings and cargo test -p ergo-aeron-tools -- --test-threads=1, the second
with --no-default-features --features cli,tui,archive, the third with
--no-default-features --features cli,tui,static. The workspace-wide
--all-features runs exclude the crate, because they would turn static on and
leave the other two builds untested. All three compile Aeron’s C sources, so all
need CMake and a C compiler; the first two need a JDK 17 or newer for rusteron’s
archive client (the feature archive), the third needs none. None needs the
Aeron jars of just fetch-aeron-jars. The lane runs its core tests
(every tab’s view state driven by actions alone, with no terminal), the key-table and terminal
drawing tests, property tests over hostile values in a read (any counter
value, time or text), crafted-file tests (copies of a live driver’s files with
a label length, an error log entry or a loss report entry made to lie, and a
heartbeat that cannot be read: the binary must refuse or note them, not
crash), and reader and command-line tests against an embedded C media driver
the tests start. The passive tap is tested there too: messages read whole and
in order, reassembled, skipped and counted once the driver has cleaned them
(never torn), on a publication and on an image of a second driver, and a
lying log file refused. T14 publishes four term windows with a paused tap
attached and asserts no back pressure and no new counter, beside a control
that attaches a subscription that stops polling and must see back pressure;
messages --follow into a pipe nobody reads is held to the same test.
The log inspector is tested on a live driver’s log, which pins the metadata
offsets, and on hand-built logs with lying frame lengths, metadata and tail
counters. driver terminate runs only against drivers the tests start in
their own directories: one whose termination validator allows the request
(it must stop), one that denies it (it must still run, exit 1), and T15 walks
the action table, giving each action every refused combination of --write
and --confirm, and checks that the allowing driver never heard a request.
Aeron’s C readers trust the lengths in a file, so read
checks the counter label lengths, the error log entries and the loss report
entries itself before calling them; the other cnc.dat fields are checked
only by Aeron (its file-size and version checks), and a file rewritten by
something other than the driver between the check and the read is not covered.
just policy checks that the crate with no features has no terminal or
command-line crate in its dependency tree. The archive tabs’ offline reader is
tested on a fixture archive a real Java archive made (tests/archive/fixture/):
its reading must equal what ArchiveTool printed for it (descriptors, states,
counts, the mark file, every frame), every archive-dir command must succeed on a
read-only copy and change no byte or modification time, and catalogue, mark file,
segment and frame lengths that lie, FIFOs and symbolic links must be refused or
noted. The crate’s java-tests lane (just test-aeron-tools-archive, part of
just test, after just fetch-aeron-jars) starts its own Java archive per test:
it checks that ArchiveTool still prints the stored outputs for the fixture
(ERGO_AERON_BLESS=1 remakes both), that the online reader lists what the
catalogue holds, and, with a subscription on the archive’s control stream, that
the tool sent read requests only and the archive’s files did not change.
just test in the monorepo also runs doctests, docs_validation_test (README
fences + generated-API smoke), and rustdoc with -D warnings.
Release path
Before tagging, run ./scripts/check-book-diagrams.sh. It names each
diagram in book/diagrams.tsv whose verified sources changed since its stamp. For each one, re-check every label and number against
the code, update the diagram, then run
./scripts/check-book-diagrams.sh --restamp <diagram>. Step 8/9 runs the same
check and fails on any diagram left stale.
just release and just release-verified run each gate once on the
release commit:
| Step | What runs once |
|---|---|
| start | just release only: _reset-sources resets the simple-binary-encoding submodule to its pinned commit and removes the gitignored sample codecs so cargo regenerates them (just release-verified instead starts at 0/8, checking the benchmark evidence for HEAD). Cargo target directories are kept (cargo fingerprints source, flags and toolchain); run just clean first for a cold build |
| 2/8 | just test, including the sbe-tool reference check, rustdoc and bench compilation |
| 4/8 | fuzz replay: one cargo fuzz build, then all six targets at once, 30 s each (scripts/run-fuzz-replay.sh) |
| 5/8 | bench gates with --noplot (gates read only the JSON estimates). The parity and cluster gates reject estimates from another run id; bench-historic deletes earlier historic estimates first |
| 8/9 | _release-check-extras: coverage, book checks, publish dry runs, packaged checks. just release-check is just test plus this |
| 8b/9 | just test-fix-sbe-conformance: the FIX SBE conformance suite at its pinned commit and the Java RLValidator over ergo-sbe’s responses (also weekly in nightly.yml). Not in release-check, which the hosted release workflow runs on Java 25 |
| 8c/9 | just test-nri-published: installs the published ergon-shared-cpus chart and image into a throwaway kind cluster (Latency pods). Needs Docker with 6 CPUs, which a hosted runner lacks. Last run on kind: chart 0.1.6, in the 0.1.43 release |
check-publish-set.sh fails if _release-pre stops running just test, if
a release recipe skips _release-pre, or if either path stops reaching the
dry runs.
What the workspace publishes, what it takes from crates.io, and the order of the steps:
crates.io; Aeron 1.54.3
cluster tests and ergo-aeron's driver
rusteron-archive
ergo-aeron's optional control client
experimental Aeron Cluster
client
SBE schema → Rust codecs;
build- and runtime dep
host and NIC checks;
library and CLI
Helm chart 0.1.6
(NRI plugin)
run-time SBE decoding;
uses ergo-sbe
driver and archive viewer;
uses ergo-sbe-inspect, rusteron
cluster-test-harness, sbe/benchmarks, samples/*, cpus,
sbe/fuzz, sbe/miri-fixtures,
sbe/inspect/oracle
by hand: version,
CHANGELOG, notes.
Notes file checked:
_check-release-notes
_reset-sources:
submodule to its pin
(release only)
cargo deny check
cargo audit
clippy, tests, samples,
Java cluster and archive,
rustdoc, benches built
UB check on the
miri fixtures
six targets,
30 s each
cluster, parity and
historic; or, in
release-verified,
evidence for HEAD
configuration only;
the full run is
manual
the benchmark
reference reproduces;
sbe-tool's ran in 2/8
coverage, book
checks, publish
dry runs, packages
pinned conformance
suite, Java
RLValidator
the published
ergon-shared-cpus
chart and image
bench archives,
fail closed
cargo publish
unpack and build
against crates.io
ergo-aeron-cluster
ergon-tune, then
ergo-sbe-inspect,
ergo-aeron-tools
v<version>, GitHub
release with the
bench archives
8/9 runs check-book-diagrams.sh: a
diagram whose sources changed since
its stamp fails the release until it is
re-checked and restamped.
The same gates, without the bench
re-run: 0/8 and 9/9 refuse bench
evidence that was not made for HEAD.
Bench HEAD on a quiet machine first.
The full mutation run,
just check-mutation (about 16 h),
stays manual; 6/8 checks its
configuration.
The publish order is ergo-sbe, ergo-aeron-cluster, ergon-tune,
ergo-sbe-inspect, ergo-aeron-tools. ergo-sbe, ergo-sbe-inspect and
ergo-aeron-tools are dry-run in one cargo publish, because neither
dependency is on crates.io at the new version yet. The ergo-aeron-tools
verify build compiles Aeron’s C and runs its Gradle, so it needs CMake, a C
compiler, libclang and a JDK 17 or newer.
just policy and the cheap gates in just preflight run at the same time
(scripts/run-parallel.sh); every script runs to the end and any failure
fails the recipe. The coverage ratchet runs ergo-sbe tests at default threads.
Performance method: Benchmarks (not in the crates.io package).
SBE parity gate artifacts (1.0 streak)
release.yml runs just bench and just bench-cluster, then attaches the
Criterion archives (*.tar.gz) and sbe-bench-gate-no-lto.txt to the GitHub
release. That output is the record for
Road to 1.0 criterion 2. Run the same locally after a
material codegen change:
just bench # stamps target/bench-runs/<run-id>/ and runs the gate
Do not raise ceilings to pass.