Survey true upstream default branch instead of local abra checkout

This commit is contained in:
notplants
2026-11-23 22:46:29 +00:00
parent 7ead707989
commit 4223ef4c7a
4 changed files with 117 additions and 18 deletions
+17 -10
View File
@@ -155,15 +155,22 @@ ssh cc-ci 'export PATH=/run/current-system/sw/bin:$PATH; R=<r>; \
script -qec "abra recipe upgrade $R -m -n" /dev/null; \
git -C ~/.abra/recipes/$R stash pop >/dev/null 2>&1 || true'
```
**Mandatory registry cross-check for EVERY recipe and EVERY image, even if abra says current:** after
reconciling the mirror and refreshing the recipe checkout, run
`python3 /srv/cc-ci/scripts/cc-ci/resolve-images.py <recipe> --recipe-dir /root/.abra/recipes`
on cc-ci. Read the JSON `images`, `upgrades_available`, `unresolved`, and `all_resolved` fields.
The candidate list is the **union** of abra's upgrades and the resolver's upgrades. CryptPad's
`version-YYYY.M.D` app tag is a known counterexample: abra only reports a parse warning, while the
resolver finds the newer image. A warning is never evidence that an image is current. Inspect both
`newest_same_shape` and `newest_within_major`; a newer major is still a candidate for planning,
though it must not be applied without a compatibility check.
**Authoritative baseline for EVERY recipe and EVERY image:** after reconciling the mirror, run
`python3 /srv/cc-ci/scripts/cc-ci/resolve-images.py <recipe> --recipe-dir /root/.abra/recipes --upstream-default`
on cc-ci. It queries the true coop-cloud remote's symbolic HEAD (main OR master), fetches that
exact commit without changing the local checkout, and reads compose from the fetched commit. Read
`source.branch`, `source.commit`, `images`, `upgrades_available`, `unresolved`, and
`all_resolved`. If upstream cannot be fetched or has no images, mark the recipe unverified and
investigate; never use the mirror default branch or local abra HEAD as a substitute.
Abra's upgrade output is a **tag availability hint only**: it may compare against an older local
checkout and therefore show a false upgrade (keycloak 26.8.1→26.8.2), or miss a real one (n8n
and matrix-synapse). Confirm every candidate against the upstream-default resolver's baseline;
the authoritative candidate list comes from that baseline plus any useful open PR relative to it.
CryptPad's `version-YYYY.M.D` app tag is a known counterexample: abra only reports a parse
warning, while the resolver finds the newer image. A warning is never evidence that an image is
current. Inspect both `newest_same_shape` and `newest_within_major`; a newer major is still a
candidate for planning, though it must not be applied without a compatibility check.
Build `RECIPES_TO_UPGRADE` from every recipe with at least one candidate **or an open recipe PR
that still differs from current upstream**. The second case is a PR reconciliation candidate even
@@ -174,7 +181,7 @@ Do not call it GREEN based on CI for an old head, or leave an unmergeable PR as
fix. Count its CVEs only from the useful change still absent from current upstream.
Only label a recipe
`up-to-date` if abra completed successfully **and** the resolver checked every relevant image
`up-to-date` if the upstream-default resolver checked every relevant image
(`all_resolved: true`) **and** neither found a candidate **and no open PR needs reconciliation**.
If an image is unresolved, templated,
floating, or lacks comparable tags, investigate it directly and record the evidence. Otherwise