fix(verdict): a rebuild that regresses is never an improvement (#3) #4

Merged
christianmanivong merged 1 commits from fix/verdict-base-os-regression into main 2026-11-15 23:42:45 +00:00
Owner

A rebuild that is worse than the pin anywhere is no longer judged an improvement (NetOrk/netork#2523).

What changes

  • image_tools/verify.py: a new verdict regressed (the pin stays, improved is false), whatever else the candidate closes or changes, when
    • it is built on an older base-os than the pin (VERSION= of /etc/netork/base-os, which every image on base-os inherits; compared as numbers, 13-20261108.10 is newer than .9),
    • Debian's point release goes back (a point release counts only forwards now),
    • it brings a critical or high CVE the pin does not have and that has a fix (the CVE gate's rule; one without a fix is still only listed).
  • The report leads with **Regressed** (the pin stays) and a ### Regressions list ("base-os goes back: 13-20261108.1 → 13-20261025.1", "CVE-2026-76844 (zlib, high) is new and has a fix: …"), and names moved components and a base-os move.
  • actions/verdict takes changes, a file with one moved component per line. Each is an improvement on its own, only without a regression. This is how postgres, valkey and signal-api hand over a new package instead of skipping the matcher, which is what let #2523's candidate out unjudged.
  • verdict.json carries base_os, changes and regressions. A base-os version that cannot be read is no verdict (the step fails), not a guess.

Tested

pytest -q (160 passed), ruff format --check . && ruff check . with the CI pins (ruff 0.14.0). New tests: the #2523 case through judge and verify, base-os ordering, unreadable base-os, fixable new CVE, point release backwards, changed components, the report's order, the changes input of the action.

Docs

README (Verdict row, example), CHANGELOG.

After the merge

Please merge with a merge commit, not squashed: the image repositories' pull requests pin this branch's head commit 015c6e18cbc0a4fa8fa984ddd495941d6bb9665b, so it has to stay reachable from main. They drop the "a new component skips the matcher" shortcut (postgres, valkey, signal-api), make apt-cacher-ng's code change refuse a named regression, and move every image repository to this commit.

Dependent pull requests, each pinning 015c6e1: NetOrk/postgres#6, NetOrk/valkey#5, NetOrk/signal-api#8, NetOrk/bunkerweb#4 (a new component goes through the verdict), NetOrk/apt-cacher-ng#9 (a code change refuses a named regression), NetOrk/unbound#6, NetOrk/bind#3, NetOrk/base-python#5, NetOrk/base-os#6 (pin only); docs in NetOrk/netork#2563.

Closes #3

A rebuild that is worse than the pin anywhere is no longer judged an improvement (NetOrk/netork#2523). ## What changes - `image_tools/verify.py`: a new verdict **regressed** (the pin stays, `improved` is false), whatever else the candidate closes or changes, when - it is built on an older base-os than the pin (`VERSION=` of `/etc/netork/base-os`, which every image on base-os inherits; compared as numbers, `13-20261108.10` is newer than `.9`), - Debian's point release goes back (a point release counts only forwards now), - it brings a critical or high CVE the pin does not have and that has a fix (the CVE gate's rule; one without a fix is still only listed). - The report leads with `**Regressed** (the pin stays)` and a `### Regressions` list ("base-os goes back: 13-20261108.1 → 13-20261025.1", "CVE-2026-76844 (zlib, high) is new and has a fix: …"), and names moved components and a base-os move. - `actions/verdict` takes `changes`, a file with one moved component per line. Each is an improvement on its own, only without a regression. This is how postgres, valkey and signal-api hand over a new package instead of skipping the matcher, which is what let #2523's candidate out unjudged. - `verdict.json` carries `base_os`, `changes` and `regressions`. A base-os version that cannot be read is no verdict (the step fails), not a guess. ## Tested `pytest -q` (160 passed), `ruff format --check . && ruff check .` with the CI pins (ruff 0.14.0). New tests: the #2523 case through `judge` and `verify`, base-os ordering, unreadable base-os, fixable new CVE, point release backwards, changed components, the report's order, the `changes` input of the action. ## Docs README (Verdict row, example), CHANGELOG. ## After the merge Please merge with a merge commit, not squashed: the image repositories' pull requests pin this branch's head commit `015c6e18cbc0a4fa8fa984ddd495941d6bb9665b`, so it has to stay reachable from `main`. They drop the "a new component skips the matcher" shortcut (postgres, valkey, signal-api), make apt-cacher-ng's code change refuse a named regression, and move every image repository to this commit. Dependent pull requests, each pinning `015c6e1`: NetOrk/postgres#6, NetOrk/valkey#5, NetOrk/signal-api#8, NetOrk/bunkerweb#4 (a new component goes through the verdict), NetOrk/apt-cacher-ng#9 (a code change refuses a named regression), NetOrk/unbound#6, NetOrk/bind#3, NetOrk/base-python#5, NetOrk/base-os#6 (pin only); docs in NetOrk/netork#2563. Closes #3
christianmanivong added 1 commit 2026-11-15 21:44:12 +00:00
fix(verdict): a rebuild that regresses is never an improvement
CI / Tests, lint (pull_request) Successful in 18s
015c6e18cb
A candidate on an older base-os than the pin, with Debian's point release
going back, or with a critical or high CVE the pin does not have and that
has a fix (the CVE gate's rule) is now "regressed": the pin stays, whatever
else it closes, and the report names each regression first.

The verdict action takes the components a nightly says moved (changes);
each is an improvement on its own, but only through the verdict, so a new
PostgreSQL minor on an older base-os is judged instead of waved through
(NetOrk/netork#2523). verdict.json carries base_os, changes and regressions.
A base-os version that cannot be read is no verdict.

Closes #3
christianmanivong merged commit e8b867e5ba into main 2026-11-15 23:42:45 +00:00
christianmanivong deleted branch fix/verdict-base-os-regression 2026-11-15 23:42:45 +00:00
Sign in to join this conversation.