diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b763c8..fc4472e 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 0f17d32). Compose gate in docker:cli against -# the host daemon: 165/165 on Linux. Console gate in +# integration 173/173, smoke 28/28, first try (at dc88f36). Compose gate in docker:cli against +# the host daemon: 185/185 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,9 @@ # 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 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). +# at dc88f36: 5 jobs succeeded, 0 failed - lint, source (132/132, 173/173, smoke +# 28/0), image (261 MB, compose smoke 185/0), console (70 assertions, screenshot +# artifact, 685,222-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 diff --git a/README.md b/README.md index 2472a4c..7617ad9 100644 --- a/README.md +++ b/README.md @@ -404,6 +404,22 @@ remove. That second half matters because a rule used to be permanent: the console gate's own comment read "a country rule cannot be deleted, only overwritten", and the residue outlived `compose down` in the data volume. +That was proven in-process first, which is the wrong layer: the shipped image +had four country assertions in it, every one of them about a rule that had +already been written correctly. It now has nineteen, seeded from the country +this run's geo database actually resolves for the probe IP, and the scene +refuses to run against leftovers (it counts the junk rows before it starts and +requires zero). The teeth were measured, not assumed, and measured +on both halves: putting the validation back to a length check answers **179 +passed, 6 failed** on the image (`/tmp/c25_mutA_compose.log`) against **5 +failed** in-process, and moving the DELETE route off `/countries/{code}` +answers **179 passed, 6 failed** (`/tmp/c25_mutB_compose.log`) against **2 +failed** in-process. Two of the six in the first case are rows the image would +have kept forever (`and none of the four wrote a row` reads 3, and the closing +`the junk that used to be eternal is still not in the table` reads 3), which is +the sentence the whole ticket is about. That gap — 2 in-process versus 6 on the +image for the delete half — is the reason the image-level scene exists. + A write that could not happen does not get to answer like one that did. Measured on two images of one stand — the tree before the fix (`b46f5c20`) and after (`08bebf43`) — with the block and policy tables dropped out from under a running @@ -738,11 +754,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 `0f17d32`, each stage run on its own, so +Rehearsed 2026-10-02, most recently at `dc88f36`, 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 `0f17d32` +commit several fixes behind it. The same suite on the macOS host at `dc88f36` gives the same counts: unit **132/132**, integration **173/173**, smoke **passed -28, failed 0**, compose **165 passed, 0 failed**, console **70 assertions, 0 +28, failed 0**, compose **185 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 @@ -751,7 +767,7 @@ 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: **165 passed, 0 failed** (27 before the geo-pin and +Compose gate on Linux: **185 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 @@ -759,24 +775,34 @@ than dropped, 81 before the retry loop, 86 before the write-endpoint guard, 94 b 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, -132 before the image said which part of a listing it is and how far it reached), +132 before the image said which part of a listing it is and how far it reached, +165 before the image refused a country code that is not a code, and 184 before the +ban scene stopped reading the pillar at one instant), 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`, 44 ms at -`0f17d32`. One Linux run at `d871d57` +`0f17d32`, 20 ms at `dc88f36`. 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`, `9383362` and `0f17d32` were -113/0, 132/0 and 165/0, so it has not reproduced in the five 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`, `0f17d32` and +`dc88f36` were 113/0, 132/0, 165/0 and 185/0, so it has not reproduced in the six +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. 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: +times and answered `/readyz` 503 with the storage error quoted. Filed as OPEN-42. The read side of that is +fixed: the scene now polls the pillar for up to 20 s and prints the trajectory +(`failures/notWritten: 0/0 1/1 ...`) and the reason string it quoted, so "the +counter is 0" and "the field is not in the answer" are no longer the same word +in the log, and the wait itself is an assertion (`the ban pillar reached its +failure state within the wait budget`). Breaking it on purpose — threshold 3 → 99, +so no ban is ever attempted — answers 178/7 with that assertion first +(`/tmp/c25_mutD_banteeth.log`). What OPEN-42 still owns is the product half: the +pillar is only updated on the request path, so a quiet edge reports a stale +failure count for as long as it stays quiet. 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 @@ -825,12 +851,12 @@ 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 `0f17d32` — 5 jobs +`catthehacker/ubuntu:act-latest`, most recently at `dc88f36` — 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 165 passed / 0 failed), `console` +`image` (`openwaf:ci` 261 MB, compose smoke 185 passed / 0 failed), `console` (70 assertions / 0 failed with `playwright@1.63.0` and `chromium-1243`, -screenshot artifact published, 685,878-byte zip) and the `freshness` job (pin +screenshot artifact published, 685,222-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 @@ -882,7 +908,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 165 assertions against the built image (compose + nginx) +scripts/compose-smoke.sh 185 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