Skip to content

Commit feaccef

Browse files
committed
Temporarily disable tests for image building with bind caches
See gh-40760
1 parent f24d4e4 commit feaccef

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/BootBuildImageIntegrationTests.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import org.apache.commons.compress.utils.IOUtils;
3737
import org.gradle.testkit.runner.BuildResult;
3838
import org.gradle.testkit.runner.TaskOutcome;
39+
import org.junit.jupiter.api.Disabled;
3940
import org.junit.jupiter.api.TestTemplate;
4041
import org.junit.jupiter.api.condition.EnabledOnOs;
4142
import org.junit.jupiter.api.condition.OS;
@@ -300,8 +301,10 @@ void buildsImageWithVolumeCaches() throws IOException {
300301
}
301302

302303
@TestTemplate
303-
@EnabledOnOs(value = OS.LINUX, disabledReason = "Works with Docker Engine on Linux but is not reliable with "
304-
+ "Docker Desktop on other OSs")
304+
@EnabledOnOs(value = OS.LINUX,
305+
disabledReason = "Works with Docker Engine on Linux but is not reliable with "
306+
+ "Docker Desktop on other OSs")
307+
@Disabled("gh-40760")
305308
void buildsImageWithBindCaches() throws IOException {
306309
writeMainClass();
307310
writeLongNameResource();

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/BuildImageTests.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import java.util.Random;
2626
import java.util.stream.IntStream;
2727

28+
import org.junit.jupiter.api.Disabled;
2829
import org.junit.jupiter.api.TestTemplate;
2930
import org.junit.jupiter.api.condition.EnabledOnOs;
3031
import org.junit.jupiter.api.condition.OS;
@@ -401,8 +402,10 @@ void whenBuildImageIsInvokedWithVolumeCaches(MavenBuild mavenBuild) {
401402
}
402403

403404
@TestTemplate
404-
@EnabledOnOs(value = OS.LINUX, disabledReason = "Works with Docker Engine on Linux but is not reliable with "
405-
+ "Docker Desktop on other OSs")
405+
@EnabledOnOs(value = OS.LINUX,
406+
disabledReason = "Works with Docker Engine on Linux but is not reliable with "
407+
+ "Docker Desktop on other OSs")
408+
@Disabled("gh-40760")
406409
void whenBuildImageIsInvokedWithBindCaches(MavenBuild mavenBuild) {
407410
String testBuildId = randomString();
408411
mavenBuild.project("build-image-bind-caches")

0 commit comments

Comments
 (0)