Files
cozystack/hack
Adham Kiwan 589c895d59 test(migrations): build each migration test image once per file
Every test in the migration 54, 55, 57, 58, 59 and 61 bats files called
prep(), and prep() ran `docker build -t` for one fixed tag. Tests in a
file run concurrently under bats -j, so on a cold cache several builds
of that tag ran at once. With the containerd image store a retag to a
different image deletes the old one before creating the new one, and a
sibling's `docker run` that resolved the tag in between found nothing
locally and fell back to a pull of an image that does not exist.

Build the image in setup_file, before any test of the file starts.
prep() keeps a fallback build for a run without setup_file, taken only
when the tag is missing.

Closes: #5299
Assisted-by: LLM
Signed-off-by: Adham Kiwan <adhamkiwan@outlook.com>
2026-11-19 15:16:30 +02:00
..