When a preview devVersion and a daily devVersion for the same image resolve to the same version string, bakery currently builds both as distinct targets. This happens for Workbench today — both channels default release_branch to "latest" and hit the same URL — but it can also happen if two entries explicitly share a release_branch.
The consequences:
- Identical images built twice, with
daily and preview floating tags pointing at the same digest.
- In CI, the extra build pushes overwrite
tmp:latest an additional time, orphaning more image digests from the tag and increasing the number of goss test runs that must fetch images by raw digest (which currently fails due to Docker's signature validation behavior for single-arch manifests).
Bakery should detect when two devVersions within the same image resolve to the same version and handle the case explicitly rather than silently building duplicates.
When a
previewdevVersion and adailydevVersion for the same image resolve to the same version string, bakery currently builds both as distinct targets. This happens for Workbench today — both channels defaultrelease_branchto"latest"and hit the same URL — but it can also happen if two entries explicitly share arelease_branch.The consequences:
dailyandpreviewfloating tags pointing at the same digest.tmp:latestan additional time, orphaning more image digests from the tag and increasing the number of goss test runs that must fetch images by raw digest (which currently fails due to Docker's signature validation behavior for single-arch manifests).Bakery should detect when two devVersions within the same image resolve to the same version and handle the case explicitly rather than silently building duplicates.