Files
cozystack/hack
IvanHunters 609a014cc4 fix(ci): make the clean-run overlay test able to fail, and narrow the key branch
`! grep -q …` is a pipeline preceded by `!`, which POSIX exempts from set -e,
and hack/cozytest.sh appends `return 0` to every converted test function, so a
failed negation was discarded twice over. That line was the only assertion in
'no annotation when nothing drifted': mutating the drift>0 guard to `true` left
the suite green under both runners. Replace all three negations with an
explicit if/exit; the mutation now reddens test 19.

The prefixed *Image branch matched any key ending in image, including
operator-settable ones the build never stamps: vddkImage (core/platform,
migration-controller) defaults to "" and a change there was absorbed from the
artifact in silence, the opposite of what this script is for. Require the value
to hold a repository path, which a ref always does and "" does not.

The annotation counted ref-bearing files while naming deduplicated dirnames, so
one package with a drifted values.yaml and a drifted images/*.tag read as two,
and named <pkg>/images, which is not a package. Count the named list instead.

Assisted-by: LLM
Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
2026-09-15 14:49:52 +03:00
..
2026-02-17 22:54:12 +01:00