mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(ci): prepare Cargo sidecar images before HTTP requests (#8512)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user