Skip to content

Handle duplicate dev builds when two channels resolve to the same version #632

Description

@bschwedler

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dockerRelated to container images we produce

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions