Skip to content

When manifest list publishing fails, the images/manifest lists are left in a half-published state #1681

Closed

Description

@lbussell

It is possible for image publishing to fail after copying images to the public ACR, and before creating and publishing manifest lists.

This causes a build to be left in a half-published state, where:

  • individual images have been published
  • manifest lists have not been published
  • no publish notification was posted
  • EOL annotations were not updated
  • image info was not updated

This most commonly happens when filtering out images that are part of a manifest list tag. Here is an example build of dotnet-framework-docker where this happened: https://dev.azure.com/dnceng/internal/_build/results?buildId=2694908&view=results

We should re-arrange the publishing steps in the following order to prevent this from happening:

  1. create manifest lists
  2. push manifest lists to staging location (e.g. build-staging/<build ID>/dotnet/...)
  3. copy all images to public acr location
  4. copy all manifest lists to public acr location
  5. proceed as usual with the rest of publishing

This would ensure that we fail the build early, before publishing any images, if there is a misconfiguration with manifest lists.

Related:

Activity

  1. mthalman commented on Apr 25, 2025

    @mthalman
    Member

    This is a bit tricky in those situations where a partial set of the manifest list is being published, which is ultimately the scenario that this is intended for. In that scenario the logic needs to know that it never built and staged a certain subset of the manifest list. So we actually need to pull down that set of missing images to the staging location from MAR. That will then allow you to construct the manifest list, targeting the full set of images in the staging location.

  2. lbussell commented on Apr 25, 2025

    @lbussell
    MemberAuthor

    I don't want to get this mixed up with #1511. My point is that if anything at all goes wrong in manifest list creation, then the build will be half-published which is bad. If anything goes wrong in manifest list creation, I would like the build to fail before pushing any images. That is what this issue is about.

    Supporting situations where a partial set of the manifest list is being published should be covered by #1511.

  3. changed the title [-]Publishing can fail, resulting in images/manifest lists being in a half-published state[/-] [+]When manifest list publishing fails, the images/manifest lists are left in a half-published state[/+] on Apr 25, 2025
  4. lbussell commented on Apr 25, 2025

    @lbussell
    MemberAuthor

    I updated the title to hopefully make the intention a little clearer.

  5. added theissue type on Apr 28, 2025
  6. lbussell commented on Jun 15, 2026

    @lbussell
    MemberAuthor

    This is fixed by #2030

  7. moved this from Backlog to Done in .NET Dockeron Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions