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

+3 -1
View File
@@ -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
@@ -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);