Files
AiSOC/docs/operations
Beenu Arora 51ac48fa7c fix(ci): the published-images gate compares the commit, not just VERSION (#1705)
fix(ci): the published-images gate compares the commit, not just VERSION

`--require-fresh` reads `org.opencontainers.image.revision` off each image
and compares `git show <revision>:VERSION` against the tree. VERSION moves on
a release commit and on no other, so two different commits of the same
release compare equal and the check passes — every commit landing after a
release was invisible to it.

v22.0.0 was tagged at 95bad815c; the jobs publishing the moving tags then
failed on a drained Actions token, leaving :latest on all 16 images at
95e397f7b, seven commits behind main. `make up` served a stack missing three
of the five security fixes published hours earlier, two of them for
advisories rated 9.1 and 7.7 — while the gate printed OK and exited 0,
because VERSION at the stale revision was already 22.0.0.

--require-current compares the commit instead, for tags that move. An
immutable vX.Y.Z stays on VERSION; comparing it against today's head would
red every release tag forever. A moving tag must hold the tip of main, and is
tolerated behind it only while the head is inside a 240-minute publish window
(above the slowest of the last 100 successful publish runs, 168 minutes) and
the lag is at most 40 commits (above the 24 that is the most ever to land
inside one such window — the window alone has a hole, because publishes
cancel in progress and a stream of merges keeps the head young). Ahead of the
head is a race, not drift. Off-branch, absent or unplaceable is a finding and
never a pass.

Passed by the daily image-availability run, which is what can see a tag that
went stale with no commit to trigger anything, and by publish-images after it
pushes its manifests. Deliberately not by release.yml, whose checkout is a
tag rather than a branch tip; the reason is recorded there so it is not added
for symmetry.

Self-test 30 -> 59 assertions, both directions, including the real incident
commits. Four injected breaks were each caught by the assertion covering it.
2026-11-04 18:57:08 -08:00
..