The logic in https://github.com/dotnet/docker-tools/pull/1367 for waiting for MAR ingestion of annotations is incorrect. The input to that command as it was defined is using the digests of the images to be annotated. It should be using the digests of the annotations that were created. This can be just a flat list of digests. There's no need for structured data here.
To do this, I've modified the AnnotateEolDigestsCommand class to output a file containing the list of annotation digests that were created. This is then fed to the WaitForMarAnnotationIngestionCommand so that it can query the correct digest values.
The logic in https://github.com/dotnet/docker-tools/pull/1367 for waiting for MAR ingestion of annotations is incorrect. The input to that command as it was defined is using the digests of the images to be annotated. It should be using the digests of the annotations that were created. This can be just a flat list of digests. There's no need for structured data here.
To do this, I've modified the
AnnotateEolDigestsCommand
class to output a file containing the list of annotation digests that were created. This is then fed to theWaitForMarAnnotationIngestionCommand
so that it can query the correct digest values.