fix(ci): prepare Cargo sidecar images before HTTP requests (#8512)

This commit is contained in:
Andre Kurait authored and GitHub committed 2026-11-15 17:56:14 -04:00
1 parent 160c45bf2d
commit 5d40c565d4
2 files changed
+8 -1

No files matched your search

@@ -1,6 +1,8 @@
package io.floci.aws.testing;
import io.floci.aws.services.lambda.launcher.ImageCacheService;
import io.floci.aws.testutil.FreePorts;
import io.quarkus.arc.Arc;
import io.quarkus.test.junit.QuarkusTestProfile;
import org.eclipse.microprofile.config.ConfigProvider;
import org.junit.jupiter.api.Assumptions;
@@ -184,6 +186,9 @@ public class SidecarContainersProfile implements QuarkusTestProfile {
private static boolean imageUsable(String image) {
if ("true".equals(System.getenv("CI"))) {
// A cold pull can exceed the HTTP client's deadline. Finish the manager's bounded
// image preparation in class setup, before any request starts that manager.
Arc.container().instance(ImageCacheService.class).get().ensureImageExists(image);
return true;
}
return run("docker", "image", "inspect", image);