Skip to content

v0.2.1 — trustworthy verdicts on OCPP 1.6, the v0.2 milestone closed

Latest

Choose a tag to compare

@juherr juherr released this 17 Aug 07:31
· 349 commits to main since this release
00e5050

Trustworthy verdicts on OCPP 1.6 — the v0.2 milestone, closed.

Read this first

An observation-window extension was added and removed inside this release.
It was built on the reading that flaky scenarios were losing a late CSMS frame;
it was guarded, mutation-tested, shipped, and then measured on a live sweep,
where every scenario it extended hit its cap and failed anyway with the same
check counts as before. So the headline of this release is not a timing fix. It
is the ability to find out why a sweep was red — and the first finding that
ability produced.

The install guard no longer red-lights the branch that triggers it

tests/documented-install-ref.sh used to demand, at the moment it went red, an
action nobody can take from an unmerged branch: cutting a tag. It now accepts a
documented ref in either of two shapes — a released tag whose tck/driver.ts
matches the tree, or v<manifest version> ahead of every existing tag, the
clone having at least one so a tagless CI checkout cannot satisfy it. Changing
the driver contract is now a thing a pull request can finish. (#50)

It also caught a gap it was previously blind to: a documentation page and the
manifest disagreeing about the next release.

A flake now leaves evidence

Two defects meant no red sweep in this project's history could be diagnosed
afterwards, and both are fixed:

  • the isolated retry overwrote the wire log of the attempt it was
    adjudicating
    — the sweep keeps results/<template-id>.log, a re-run writes
    <template-id>.retry.log (#52);
  • CI never captured the CSMS's own log — docker compose logs now runs when
    any scenario row goes red, not merely when the job fails, which is the case
    that matters: an adjudicated flake leaves the job green (#52, #54).

tools/flake-report.ts aggregates archived results/ artifacts into a
per-scenario flake record. Over 119 artifacts it turned "some scenarios seem
flaky" into a table.

The first finding

One SteVe scenario flaked in 16 of 21 archived sweeps. With both logs in hand,
the first red run after the fix gave the cause: concurrent
StatusNotification(connectorId=0) from several charge points deadlock on
insert into evse (MariaDB error 1213), and SteVe returns the deadlock to the
charge point as a CALLERROR instead of retrying it. Three stations arriving
718 µs apart, two losing the race.

Reported upstream as steve-community/steve#2107 and recorded in the new
drivers/steve/README.md gap table. The suite needed no change: the isolated
retry already adjudicates it correctly, and declaring it would have been wrong.

Documentation that was saying the wrong thing

tck/expected.ts and CONTRIBUTING.md told driver authors that a scenario
which sometimes passes has a timing bug and the fix is the scenario. This
release is the counter-example: the fix was upstream, and re-tuning the timing
is exactly what was tried and measured to change nothing. The rule stands —
never declare a flake — with its diagnosis corrected.

Compatibility

tck/driver.ts is byte-identical to v0.2.0, so the driver contract has not
moved and the exports map is unchanged. Upgrading is safe for anyone who has
written a driver against v0.2.0.

bun add github:juherr/open-ocpp-tck#v0.2.1