diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5fca046..82d2387 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,19 +25,19 @@ # 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 170/170, smoke 28/28, first try (at cfe47d1). Compose gate in docker:cli against -# the host daemon: 94/94 on Linux. Console gate in +# integration 173/173, smoke 28/28, first try (at b75888f). Compose gate in docker:cli against +# the host daemon: 100/100 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: 58/58. The +# the same console-check.cjs driving it in a real Linux Chromium: 69/69. The # only wall clock ever measured for the source job is 1:02.81 cold (first # rehearsal); later rehearsals were not re-timed, so that number is quoted as # measured once, not as current. So every gate this file runs has a Linux # 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 cfe47d1: 5 jobs succeeded, 0 failed - lint, source (132/132, 170/170, smoke -# 28/0), image (261 MB, compose smoke 94/0), console (58 assertions, screenshot -# artifact) and freshness (pin 2026-10 = newest 2026-10). +# at b75888f: 5 jobs succeeded, 0 failed - lint, source (132/132, 173/173, smoke +# 28/0), image (261 MB, compose smoke 100/0), console (69 assertions, screenshot +# artifact, 665,222-byte zip) and freshness (pin 2026-10 = newest 2026-10). name: ci diff --git a/README.md b/README.md index 81f9e1e..5f362b7 100644 --- a/README.md +++ b/README.md @@ -325,7 +325,16 @@ the parameter and listing what that endpoint accepts, and `/observations` and exact match, with `X-Total-Count` counting the filtered set rather than the table, so the truncation flag cannot claim a cut that never happened. An empty `?source=` is refused rather than read as "every source"; a source with no rows -answers `[]` with a total of 0. `?token=` stays accepted, because the admin +answers `[]` with a total of 0. `/admin-api/streaks` learned the same filter in +the same shape: exact match, `standingStreaks` counting the **filtered** set +while `trackedSources` stays the size of the map, and `sourceFilter` echoed in +the body — `null` when unfiltered, so a reader never has to guess whether an +absent key means "unfiltered" or "this build forgot to say". The operator page +asks the question now: a box under "Sources the edge is watching", and every +source key the page prints is a button that asks it, narrowing the observation +and streak tables together and printing the filtered total under each. A key +with nothing recorded is answered in words — `no recorded observations for +` — rather than with an empty box that looks like a loading failure. `?token=` stays accepted, because the admin auth layer reads it out of the query string and that transport is deliberate — and the guard's first run broke three tests that were right to send it, which is the worse failure mode for a guard of this kind: refusing a request that @@ -725,26 +734,28 @@ 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 `cfe47d1`, each stage run on its own, so +Rehearsed 2026-10-02, most recently at `b75888f`, 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 `cfe47d1` -gives the same counts: unit **132/132**, integration **170/170**, smoke **passed -28, failed 0**, compose **94 passed, 0 failed**, console **58 assertions, 0 +commit several fixes behind it. The same suite on the macOS host at `b75888f` +gives the same counts: unit **132/132**, integration **173/173**, smoke **passed +28, failed 0**, compose **100 passed, 0 failed**, console **69 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 `setup-dotnet` with `10.0.x` satisfies the pin), unit **132/132**, integration -**170/170**, smoke **28/28**, first try, nothing to fix. The first +**173/173**, smoke **28/28**, first try, nothing to fix. The first 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: **94 passed, 0 failed** (27 before the geo-pin and +Compose gate on Linux: **100 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), enforcement lag 0 ms, 12 ms and 36 ms in +than dropped, 81 before the retry loop, 86 before the write-endpoint guard, 94 before the streak map learned the +source filter), 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`. Console gate on Linux: **58 +`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`. Console gate on Linux: **69 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 @@ -766,7 +777,7 @@ and the stack is torn down afterwards. That image ships the browsers but not the npm package, so the script installs `playwright-core` into `/tmp` and points `PLAYWRIGHT_CORE` at it, mounting the repository read-only so the install never lands in the working tree. Rehearsed the same day on Linux 7.0.12-linuxkit -aarch64, node v24.20.0, `chromium-1243`: **58 assertions, 0 failed**, including +aarch64, node v24.20.0, `chromium-1243`: **69 assertions, 0 failed**, including the round-trip the page alone cannot fake — a ban drawn on the page answers 301 on the next request from that address. All three scenes in one cold run: **2:14.33** (measured at that earlier commit; the stage has not been re-timed @@ -784,12 +795,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 `cfe47d1` — 5 jobs +`catthehacker/ubuntu:act-latest`, most recently at `b75888f` — 5 jobs succeeded, 0 failed: `lint` (both pinned tools download, verify their checksums -and find nothing), `source` (unit 132/132, integration 170/170, smoke 28/28), -`image` (`openwaf:ci` 261 MB, compose smoke 94 passed / 0 failed), `console` -(58 assertions / 0 failed with `playwright@1.63.0` and `chromium-1243`, -screenshot artifact published, 547,433-byte zip) and the `freshness` job (pin +and find nothing), `source` (unit 132/132, integration 173/173, smoke 28/28), +`image` (`openwaf:ci` 261 MB, compose smoke 100 passed / 0 failed), `console` +(69 assertions / 0 failed with `playwright@1.63.0` and `chromium-1243`, +screenshot artifact published, 665,222-byte zip) and the `freshness` job (pin 2026-10 = newest 2026-10). 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 @@ -832,10 +843,10 @@ dotnet/ OpenWaf.Infrastructure/ EF Core (sqlite/postgres), snapshot store, writers, MMDB geo OpenWaf.Edge/ the deployable: guard, observer, admin API, healthcheck mode OpenWaf.Tests.Unit/ 132 tests over the decision logic and the durability counters - OpenWaf.Tests.Integration/ 170 tests driving the real pipeline against a fake upstream + 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 94 assertions against the built image (compose + nginx) -scripts/console-check.cjs 58 assertions against the page, in a real Chromium +scripts/compose-smoke.sh 100 assertions against the built image (compose + nginx) +scripts/console-check.cjs 69 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 .github/workflows/geo-freshness.yml the same check on a schedule