Files
openwaf/scripts
Pavlo Ratushnyi a8f440b933
ci / lint the workflow and the shell (push) Successful in 10s
ci / build, test, smoke (push) Successful in 2m17s
ci / the operator page in a real browser (push) Successful in 2m41s
ci / build the image and smoke it (push) Successful in 4m48s
ci / the same smoke on an image with no base (push) Successful in 4m43s
a write that never reached the edge stops taking four assertions down with it
Measured 2026-10-06 (/tmp/compose-diag.log, recorded in the README's Gates
section): one POST of a /29 answered 000 while the edge container reported
running/healthy — the gate could not reach a live edge, with another project's
dotnet suite running on the same daemon — and four assertions about a range went
red about a row that was never written. One of those four was worse than red: a
bare `next()` over the block listing raised StopIteration into the log, the
OPEN-48 shape again in a third place.

OPEN-77 asked which rule the gate should have here. The rule it has now: a write
whose request got no answer at all is retried, three times, and each retry prints
the container's own state; a refusal is an answer, so 400 and 403 come back after
one attempt untouched; and the retry is bounded, so a surface that is really
closed still goes red rather than spinning. Retrying a write that got no response
is safe on this surface because every write it takes is keyed and idempotent —
the six-parallel-POSTs scene asserts that one address lands as one row, the
transfer scene asserts that importing the same document twice adds nothing — and
both of those are assertions, not assumptions.

All 33 admin writes in the gate now go through admin_write; the three bare
next() reads answer no-pillar / no-record / no-such-row instead of tracebacks;
and the dead-edge scene asserts the retry against a container that is really
stopped: the write still answers 000, and it says so three times. Two assertions,
373 -> 375.

Measured here: compose-smoke 375 passed / 0 failed against the chiseled image and
375 / 0 against the scratch image, same arm64 host; readme-counts agrees
(375=375); shellcheck 0.11.0 clean over scripts/*.sh. Against a stubbed `code`
that answers 000 twice and then 204, admin_write returns 204 after three attempts
with two retry lines; a 400 comes back after one attempt with none. Neither green
run printed a retry line — the host was quiet — which is why the rule is asserted
by a scene that stops the edge rather than by waiting to catch another flake.
2026-10-06 20:43:53 +02:00
..