ci: smoke-containers must fail, not skip, when it cannot resolve an image #615
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra#615
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
What
scripts/smoke-containers.pyloads each Quadlet unit and checks its capabilities against the pinned image.resolve()only substitutes plain{{ var }}references (:57-69).caddy_runtime_imageis a Jinja conditional (roles/caddy/defaults/main.yml:63-66). It resolves to None.main()treats None as internal and printsSKIP, exit 0 (:199-203).Related to #103: moving values into
group_vars/prodwould hit the same silent skip, becauseload_varsonly readsgroup_vars/all.Why
The script exists to catch the #94 failure class (a capability or option the image cannot run with).
Failing case
Remove
NET_BIND_SERVICEfromroles/caddy/templates/caddy.container.j2. The smoke printsSKIP caddy ... unresolved imageand CI passes.Fix
Smoke the stock base image for Caddy (
{{ caddy_image }}:{{ caddy_image_tag }}) through a small per-role override map. Make an unresolved image a FAIL. Only a literallocalhost/orgit.bitborg.se/prefix may skip.Done when
NET_BIND_SERVICEfrom the Caddy unit fails CI.