diff --git a/.github/ci/prefetch-images.sh b/.github/ci/prefetch-images.sh index 3ed2857c54..2edb88e426 100755 --- a/.github/ci/prefetch-images.sh +++ b/.github/ci/prefetch-images.sh @@ -174,7 +174,7 @@ DSQL_IMAGE="$(awk '/^ dsql:/ { in_dsql=1; next } in_dsql && /^ [a-z]/ { ex starts DsqlDataPlaneIntegrationTest DsqlClusterPolicyIntegrationTest DsqlTransactionAgeIntegrationTest \ && [ -n "$DSQL_IMAGE" ] && pull "$DSQL_IMAGE" # CodeArtifact's real registry fixtures each use one configured sidecar image. -# Keep unrelated unit-test shards from pulling all four registries. +# Keep unrelated unit-test shards from pulling registries they do not use. starts CodeArtifactMavenDockerIntegrationTest CodeArtifactMavenExternalConnectionDockerIntegrationTest \ && configured_image codeartifact maven-image starts CodeArtifactNpmDockerIntegrationTest CodeArtifactNpmExternalConnectionDockerIntegrationTest \ @@ -182,6 +182,8 @@ starts CodeArtifactNpmDockerIntegrationTest CodeArtifactNpmExternalConnectionDoc starts CodeArtifactNuGetDockerIntegrationTest CodeArtifactNuGetExternalConnectionDockerIntegrationTest \ && configured_image codeartifact nuget-image starts CodeArtifactPypiDockerIntegrationTest && configured_image codeartifact pypi-image +starts CodeArtifactCargoDockerIntegrationTest CodeArtifactCargoExternalConnectionDockerIntegrationTest \ + CodeArtifactCargoUpstreamRepositoryDockerIntegrationTest && configured_image codeartifact cargo-image # RDS's engine fixture starts MySQL at the default and explicitly requested versions. # Read both sources rather than duplicating their version pins here. if starts RdsParameterGroupEngineIntegrationTest; then diff --git a/src/test/java/io/floci/aws/testing/SidecarContainersProfile.java b/src/test/java/io/floci/aws/testing/SidecarContainersProfile.java index 8848ab6842..cd28306653 100644 --- a/src/test/java/io/floci/aws/testing/SidecarContainersProfile.java +++ b/src/test/java/io/floci/aws/testing/SidecarContainersProfile.java @@ -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);