From 75ee8221de958b69ef25dff15d03e793856944e2 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Fri, 2 Oct 2026 23:04:24 +0200 Subject: [PATCH] 165 compose assertions now, and the numbers describe the tree that has them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every gate was re-run on this tree and the README and the ci.yml header were rewritten from what those runs printed, not from the last time someone wrote a number down: host all (unit 132/132, integration 173/173, smoke 28/0, image 261 MB, compose 165/0), host console (70/0), Linux rehearsal (source PASS, compose 165/0 with 44 ms enforcement lag, console 70/0), and act (5 jobs succeeded, 0 failed, console-evidence.zip 685,878 bytes). Two numbers were stale in ways a reader could not see. The console paragraph said the gate "asserts 58 things" while the gate itself printed 70; and the paging paragraph described behaviour that had only recently become an image-level measurement, so it now says which layer proves it and how the scene proves it. The failures found on the way are written down rather than dropped. Two act runs failed before the green one: lint refused three SC2086 findings that a local `shellcheck -S warning` had passed over — the workflow pins 0.11.0 with no severity filter and no local gate runs lint at all, filed as OPEN-44 — and in the run after the fix, image died on a TLS timeout to auth.docker.io while console read an empty observation listing in a run where the same table had shown 11 rows a minute earlier, filed as OPEN-43. A host console run at the previous commit answered 68/2 for the same reason OPEN-41 already describes, and one compose run read banWriteFailures as 0 while the same scene's log and readyz said otherwise, filed as OPEN-42. --- .github/workflows/ci.yml | 15 +++++++---- README.md | 58 +++++++++++++++++++++++++++------------- 2 files changed, 50 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 566c53a..8b763c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,8 +25,8 @@ # scripts/ci-linux-rehearsal.sh runs the gates in containers. Source gates # (restore, build, unit, integration, smoke) in mcr.microsoft.com/dotnet/sdk:10.0 # - Ubuntu 24.04.5, SDK 10.0.401 resolving the pinned global.json: unit 132/132, -# integration 173/173, smoke 28/28, first try (at 9383362). Compose gate in docker:cli against -# the host daemon: 132/132 on Linux. Console gate in +# integration 173/173, smoke 28/28, first try (at 0f17d32). Compose gate in docker:cli against +# the host daemon: 165/165 on Linux. Console gate in # mcr.microsoft.com/playwright:v1.63.0-noble - the stack seeded by docker:cli, # the same console-check.cjs driving it in a real Linux Chromium: 70/70. The # only wall clock ever measured for the source job is 1:02.81 cold (first @@ -35,9 +35,14 @@ # number. What it does not have is a runner: the repository has no remote, so # this file has never executed on GitHub. It has been executed by a local # Actions-compatible runner (nektos/act 0.2.89, catthehacker/ubuntu:act-latest) -# at 9383362: 5 jobs succeeded, 0 failed - lint, source (132/132, 173/173, smoke -# 28/0), image (261 MB, compose smoke 132/0), console (70 assertions, screenshot -# artifact, 682,072-byte zip) and freshness (pin 2026-10 = newest 2026-10). +# at 0f17d32: 5 jobs succeeded, 0 failed - lint, source (132/132, 173/173, smoke +# 28/0), image (261 MB, compose smoke 165/0), console (70 assertions, screenshot +# artifact, 685,878-byte zip) and freshness (pin 2026-10 = newest 2026-10). +# The two runs before that one failed for reasons worth naming: lint refused three +# SC2086 findings the local shellcheck run had passed over (no local gate runs lint +# at all - OPEN-44), and in the next run image died on a TLS timeout to auth.docker.io +# while console read an empty observation listing in a run that had shown 11 rows +# a minute earlier (OPEN-43). name: ci diff --git a/README.md b/README.md index bbe3c09..2472a4c 100644 --- a/README.md +++ b/README.md @@ -299,7 +299,11 @@ the answer read like the whole window; `?limit=0` and `?limit=-1` each answered `X-Truncated`, with a comment saying that is what stops a page reading like a complete answer; the two listings the console reads most carried neither. They do now, all three take an `offset` that reaches the rest, and a limit outside -its range is refused by name — `limit must be 1..1000; got 0`. +its range is refused by name — `limit must be 1..1000; got 0`. All of it is now +measured on the shipped image rather than only in-process: the compose gate seeds +five sources one second apart, reads them back one row at a time, and requires +the five pages to be five different sources and exactly the first five rows of +the whole listing, with the same total on every page. `/admin-api/streaks` had the opposite fault: it measured truncation against the size of the streak map, and the map keeps a source whose streak a clean answer ended while the listing leaves those out on purpose — with two standing streaks @@ -682,7 +686,7 @@ consequence was always observable and nothing on any surface pointed at it. The console gate starts the stack, seeds a source sitting at 2 of a threshold of 3 and an operator block with a reason, four 502s from an address chosen for this run (`/boom`, see the alerting note above), drives `/admin` in a real Chromium, -and asserts 58 things. The read side: it authenticated, listed the streak as +and asserts 70 things. The read side: it authenticated, listed the streak as current-over-threshold rather than as a historical maximum, listed the operator block with its reason, listed observations and countries with bars that have real pixel widths, said how many recorded sources the observation table is only @@ -734,11 +738,11 @@ macOS working tree make the next `--no-build` try to exec an ELF file — inside `mcr.microsoft.com/dotnet/sdk:10.0`. The compose gate runs in `docker:cli` against the host daemon, so the image build and the stack are Linux. -Rehearsed 2026-10-02, most recently at `9383362`, each stage run on its own, so +Rehearsed 2026-10-02, most recently at `0f17d32`, each stage run on its own, so the numbers below describe the tree at the head of this file rather than a -commit several fixes behind it. The same suite on the macOS host at `9383362` +commit several fixes behind it. The same suite on the macOS host at `0f17d32` gives the same counts: unit **132/132**, integration **173/173**, smoke **passed -28, failed 0**, compose **132 passed, 0 failed**, console **70 assertions, 0 +28, failed 0**, compose **165 passed, 0 failed**, console **70 assertions, 0 failed**, image 261 MB, 0 containers left behind. Source gates: Ubuntu 24.04.5, SDK **10.0.401** resolving `dotnet/global.json` (pinned `10.0.100`, `rollForward: latestFeature` — which is also the answer to whether @@ -747,26 +751,32 @@ failed**, image 261 MB, 0 containers left behind. Source gates: Ubuntu rehearsal of this pipeline timed a cold container and a cold NuGet cache at **1:02.81**; the runs after it were not re-timed, so that is the only wall clock measured here, and the source job's 25-minute timeout is not close either way. -Compose gate on Linux: **132 passed, 0 failed** (27 before the geo-pin and +Compose gate on Linux: **165 passed, 0 failed** (27 before the geo-pin and alerting assertions, 41 before the alert-edge ones, 47 before the pillar-health ones, 53 before the write-health ones, 63 before the ban-write ones, 72 before the scenes were made non-vacuous, 74 before the query surface was refused rather than dropped, 81 before the retry loop, 86 before the write-endpoint guard, 94 before the streak map learned the source filter, 100 before the policy bounds were driven from the image, 107 before the redirect target an edge cannot send was refused by the image, 113 before the -provenance a caller mistyped and the bounds an entry has were refused by the image), +provenance a caller mistyped and the bounds an entry has were refused by the image, +132 before the image said which part of a listing it is and how far it reached), enforcement lag 0 ms, 12 ms and 36 ms in three runs, 12 ms at `a77ab53`, 13 ms at `6e6461a`, 11 ms at `c97c7a1`, 12 ms at `7e081da`, 12 ms at `7b57c56`, 14 ms at `1bcc086`, 12 ms at `336c2f7`, 13 ms at `dcf8a73`, 11 ms at `ac672d9`, 17 ms at `17b764e`, 12 ms at `cfe47d1`, 30 ms at -`b75888f`, 56 ms at `24e329d`, 29 ms at `d871d57`, 18 ms at `5c44b7c`, 15 ms at -`9383362`. One Linux run at `d871d57` +`b75888f`, 56 ms at `24e329d`, 29 ms at `d871d57`, 18 ms at `5c44b7c`, 15 ms at `9383362`, 44 ms at +`0f17d32`. One Linux run at `d871d57` answered **112 passed, 1 failed** — the geo-restore assertion got `000`, which the gate prints for a request that blew its 10 s budget, for a container that had exited and for -any other curl error, all as the same three characters — and the run after it was 113/0; the Linux runs at `5c44b7c` and `9383362` were -113/0 and 132/0, so it has not reproduced in the four runs since. +any other curl error, all as the same three characters — and the run after it was 113/0; the Linux runs at `5c44b7c`, `9383362` and `0f17d32` were +113/0, 132/0 and 165/0, so it has not reproduced in the five runs since. Filed as OPEN-39 rather than smoothed over: a gate that fails once for an unexplained -reason makes the next real regression indistinguishable from it. Console gate on Linux: +reason makes the next real regression indistinguishable from it. +The same class showed up again in the same cycle: in one run the ban-write scene read +`banWriteFailures` as 0 while that same scene logged "the ban was not persisted" three +times and answered `/readyz` 503 with the storage error quoted. Filed as OPEN-42 — and +the scene prints only yes/no today, which is why "the counter is 0" and "the field is +not in the answer" look identical in the log. Console gate on Linux: **70 assertions, 0 failed** — described below, 0 containers left behind. `scripts/geo-db-freshness.sh` was run in `mcr.microsoft.com/dotnet/sdk:10.0` too: current pin answers 0, and a forced `PIN=2026-05` answers 1 with the bump command, so the gate that decides whether @@ -794,7 +804,12 @@ on the next request from that address. The driver also refuses to report success the markup seed never reached it: unsetting SEED_MARKUP_PATH and SEED_MARKUP_BLOCK used to drop four assertions to 65 ok / 0 failed and still print "all assertions passed"; the same run now exits 1 naming both empty values, and the Linux rehearsal refuses the stage -outright. All three scenes in one cold run: +outright. The gate is still a sampler, though: at `ff70c64` a host run answered +**68 ok, 2 failed** — the click-a-source-key assertion read the observation table after +the filter had applied and found nothing recorded for that key — and the run after it +was 70/0 on the same tree. Recorded on OPEN-41 rather than smoothed into the +re-run: same root, an assertion that reads a table once while the row it wants +arrives on a coalesced write. All three scenes in one cold run: **2:14.33** (measured at that earlier commit; the stage has not been re-timed since). @@ -810,13 +825,20 @@ the stage re-run after it leaves 0 containers. Honest status of the workflow itself: it has never executed on a GitHub-hosted runner, because the repository has no remote. It *has* been executed start to finish by a local Actions-compatible runner — `nektos/act` 0.2.89 on -`catthehacker/ubuntu:act-latest`, most recently at `9383362` — 5 jobs +`catthehacker/ubuntu:act-latest`, most recently at `0f17d32` — 5 jobs succeeded, 0 failed: `lint` (both pinned tools download, verify their checksums and find nothing), `source` (unit 132/132, integration 173/173, smoke 28/28), -`image` (`openwaf:ci` 261 MB, compose smoke 132 passed / 0 failed), `console` +`image` (`openwaf:ci` 261 MB, compose smoke 165 passed / 0 failed), `console` (70 assertions / 0 failed with `playwright@1.63.0` and `chromium-1243`, -screenshot artifact published, 682,072-byte zip) and the `freshness` job (pin -2026-10 = newest 2026-10). That is a stronger claim than +screenshot artifact published, 685,878-byte zip) and the `freshness` job (pin +2026-10 = newest 2026-10). The two act runs before +that one failed, and both failures were real: `lint` refused three SC2086 findings +in the new compose scene, which a local `shellcheck -S warning` had passed over in +silence — the workflow pins 0.11.0 and runs with no severity filter, and no local +gate runs lint at all (filed as OPEN-44); and in the run after the fix, `image` +died on a TLS handshake timeout to `auth.docker.io` while `console` read an empty +observation listing (`X-Total-Count: 0`) in a run where the same table had 11 rows +a minute earlier (filed as OPEN-43). That is a stronger claim than "the steps were run by hand", and a weaker one than "CI is green": it proves the YAML executes and the pinned tools resolve, not that GitHub's image agrees. The gap is not hypothetical — running the file that way is what turned `lint` red, @@ -860,7 +882,7 @@ dotnet/ OpenWaf.Tests.Unit/ 132 tests over the decision logic and the durability counters OpenWaf.Tests.Integration/ 173 tests driving the real pipeline against a fake upstream scripts/smoke.sh 28 assertions against a running edge + a real upstream -scripts/compose-smoke.sh 132 assertions against the built image (compose + nginx) +scripts/compose-smoke.sh 165 assertions against the built image (compose + nginx) scripts/console-check.cjs 70 assertions against the page, in a real Chromium scripts/geo-db-freshness.sh the pinned geo database vs the vendor (0/1/2) .github/workflows/ci.yml runs the gates on every push