The README says which run it describes, and which commit that run was on
The listing-completeness fix (0e2aee6) is documented in the admin API section: ?limit= clamped instead of refusing (1000 rows of 1103 recorded sources with no total and no flag; limit=0 and limit=-1 each returning one row), X-Total-Count and X-Truncated now on /observations and /alerts as well as /blocks, an offset that reaches the rest, and /streaks measuring truncation against standing streaks instead of the size of the map. The rehearsal paragraph is the part that was at risk of becoming a lie. The Linux rehearsal has not been re-run past8fba844- the approval step for scripts/ci-linux-rehearsal.sh failed three times this cycle and the run was not attempted any other way - so the paragraph now says so in the open and names the commit its numbers belong to. What was measured at0e2aee6is the same suite on the macOS host: unit 128/128, integration 89/89, smoke passed 19 failed 0, compose 43 passed 0 failed, console 42 assertions 0 failed, image 261 MB. The same sentence was added to the header comment of .github/workflows/ci.yml, which quoted 126/73/39 as if it described the current tree. Shape block: 126 -> 128 unit tests, 73 -> 89 integration tests. actionlint exit 0; shellcheck 0.11.0 exit 0.
This commit is contained in:
@@ -33,7 +33,10 @@
|
||||
# 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.
|
||||
# this file has never executed on GitHub. And the Linux numbers are as of
|
||||
# 8fba844: the rehearsal has not been re-run since, so a suite count quoted
|
||||
# above (126/73/39) is one behind the tree at the head of this file, where the
|
||||
# host run measured 128 unit, 89 integration and 42 console assertions.
|
||||
|
||||
name: ci
|
||||
|
||||
|
||||
@@ -290,6 +290,26 @@ never), and `reason`/`note` are bounded at 512 characters, the budget the
|
||||
attacker-written path field already gets, after a 1 MB note and a 1 MB reason
|
||||
were both accepted and made the listings return ~1 MB each.
|
||||
|
||||
Every capped listing now says how much it cut, and a limit nobody meant is
|
||||
refused instead of reinterpreted. `?limit=` used to be clamped: with 1,103
|
||||
sources recorded, `GET /admin-api/observations?limit=100000` answered 200 with
|
||||
1000 rows, no total and no flag, so 103 recorded sources were unreachable and
|
||||
the answer read like the whole window; `?limit=0` and `?limit=-1` each answered
|
||||
200 with one row. The block listing already carried `X-Total-Count` and
|
||||
`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`.
|
||||
`/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
|
||||
and one reset source, `?limit=1000` returned 2 rows and answered
|
||||
`X-Truncated: true` although nothing had been cut. It measures against standing
|
||||
streaks now and reports `standingStreaks` beside `trackedSources`. On the page,
|
||||
the same run prints "newest 25 of 42 recorded sources" and "Newest 25 of 274
|
||||
alerts": the data volume survives `compose down`, which is precisely where a
|
||||
table that looks like a window stops being honest.
|
||||
|
||||
`redirectTo` on a block is the one field that ends up in a response header, and
|
||||
the shipped image used to accept any string in it — `POST /admin-api/blocks`
|
||||
answered 204 for all of these, and the next request from that source paid:
|
||||
@@ -364,10 +384,12 @@ deployment.
|
||||
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 39 things. The read side: it authenticated, listed the streak as
|
||||
and asserts 42 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, listed the alert this run's seeding wrote (by source and
|
||||
real pixel widths, said how many recorded sources the observation table is only
|
||||
a page of, and counted the streak note against standing streaks rather than
|
||||
against the size of the map, listed the alert this run's seeding wrote (by source and
|
||||
count, not just "a row exists"), said in words that a server error is never a
|
||||
reason to ban, kept the token out of the markup, and threw no javascript.
|
||||
The write side, checked on the wire and not just in the table: an address
|
||||
@@ -407,7 +429,12 @@ 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 `8fba844`. Source gates: Ubuntu
|
||||
Rehearsed 2026-10-02, most recently at `8fba844` — the rehearsal has **not**
|
||||
been re-run past that commit, so every Linux number in this paragraph describes
|
||||
`8fba844`, not the tree at the head of this file. What was measured at the head
|
||||
(`0e2aee6`) is the same suite on the macOS host: unit **128/128**, integration
|
||||
**89/89**, smoke **passed 19, failed 0**, compose **43 passed, 0 failed**,
|
||||
console **42 assertions, 0 failed**, image 261 MB. 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 **126/126**, integration
|
||||
@@ -495,8 +522,8 @@ dotnet/
|
||||
OpenWaf.Domain/ pure decision core: source key, streak, ordered decision
|
||||
OpenWaf.Infrastructure/ EF Core (sqlite/postgres), snapshot store, writers, MMDB geo
|
||||
OpenWaf.Edge/ the deployable: guard, observer, admin API, healthcheck mode
|
||||
OpenWaf.Tests.Unit/ 126 tests over the decision logic
|
||||
OpenWaf.Tests.Integration/ 73 tests driving the real pipeline against a fake upstream
|
||||
OpenWaf.Tests.Unit/ 128 tests over the decision logic
|
||||
OpenWaf.Tests.Integration/ 89 tests driving the real pipeline against a fake upstream
|
||||
scripts/smoke.sh 19 assertions against a running edge + a real upstream
|
||||
scripts/compose-smoke.sh 43 assertions against the built image (compose + nginx)
|
||||
scripts/console-check.cjs 39 assertions against the page, in a real Chromium
|
||||
|
||||
Reference in New Issue
Block a user