Skip to content

boil: "data loss" when building multiple images for the same product at the same time #1612

Description

@soenkeliebau

I just built three nifi images at once (almost killed my computer) with cargo boil build nifi (configured versions are: 2.6.0, 2.7.2 and 2.9.0) and all three images were built, but the log line at the end read:

Successfully built 1 image:
nifi:
  oci.stackable.tech/sdp/nifi:2.9.0-stackable0.0.0-dev-amd64

I've had Claude look at the code, and it pointed out, that we collect the built images into a BTreeMap keyed by image name here: https://github.com/stackabletech/docker-images/blob/main/rust/boil/src/core/bakefile.rs#L346
The image name is the same for all three images here though: 'nifi' so only one of them will remain in that list, hence the wrong log line containing only one image.

The log line is purely cosmetic, but this map also drives the content of --write-image-manifest-uris which we potentially use in CI downstream for signing images etc...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions