Files
openwaf/scripts
Pavlo Ratushnyi 1bcc086195 The log assertion sampled one instant, and the log line had not landed yet
The compose gate passed 74/0 on the macOS host and failed "and the log says
what actually happened" on the first Linux rehearsal of the same tree. The
wording was not the problem and neither was the platform: the grep over
`docker compose logs edge` was run immediately after the burst that produced
the line. Measured on the shipped image with the stack still up — the grep
right after the five refusals answered 0, the same grep two seconds later
answered 3. The /state field is updated synchronously on the request path;
the line reaches the daemon's log store a moment later, so the state
assertions passed and the log assertion failed on timing.

Both log assertions now poll, and both print the count they saw, so a passing
log assertion shows the number rather than an absence. The race-line count is
taken after the wait, so the before/after pair describes one moment: this
scene demonstrably produced 3 lines saying the ban was not persisted, and 0
lines calling it a concurrency race.

Linux rehearsal at this tree: 74 passed, 0 failed (was 73/1).
2026-10-02 09:52:47 +02:00
..