From b24b72a7e4e44abff5881549c06396fa9f845f56 Mon Sep 17 00:00:00 2001 From: Aditya Ramani Date: Tue, 1 Jul 2025 17:58:40 -0700 Subject: [PATCH] Reference image via sha for test (#190) CI was failing since the test image we use had a tag re-pushed. Pinning the test to reference the image version by its sha --------- Signed-off-by: Aditya Ramani --- .../ImageTests/ImageStoreImagePullTests.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/ContainerizationTests/ImageTests/ImageStoreImagePullTests.swift b/Tests/ContainerizationTests/ImageTests/ImageStoreImagePullTests.swift index 0fc3287a..045bdd8f 100644 --- a/Tests/ContainerizationTests/ImageTests/ImageStoreImagePullTests.swift +++ b/Tests/ContainerizationTests/ImageTests/ImageStoreImagePullTests.swift @@ -69,7 +69,8 @@ final class ImageStoreImagePullTests { (nil, imagePullTestAllLayers), ]) func testPullSinglePlatform(platform: Platform?, expectLayers: [String]) async throws { - let img = try await self.store.pull(reference: "ghcr.io/linuxcontainers/alpine:3.20", platform: platform) + let img = try await self.store.pull( + reference: "ghcr.io/linuxcontainers/alpine:3.20@sha256:0a6a86d44d7f93c4f2b8dea7f0eee64e72cb98635398779f3610949632508d57", platform: platform) let rootDescriptor = img.descriptor let index: ContainerizationOCI.Index = try await contentStore.get(digest: rootDescriptor.digest)! var foundMatch = false