From 5e278882e798f784452551d5383e91f63130d659 Mon Sep 17 00:00:00 2001 From: Jin Seop Kim Date: Thu, 29 Oct 2026 13:45:13 -0400 Subject: [PATCH 1/2] chore(vision): disable flaky ITSystemTest.detectFacesGcsTest --- .../src/test/java/com/google/cloud/vision/it/ITSystemTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java b/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java index 0931fe32a9d6..3c9108faefee 100644 --- a/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java +++ b/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java @@ -78,6 +78,7 @@ import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; public class ITSystemTest { @@ -295,6 +296,7 @@ public void detectFacesTest() throws IOException { } } + @Ignore("Flaky test: b/579436201") @Test public void detectFacesGcsTest() throws IOException { AnnotateImageResponse res = From 0dc9468d7caa39026a412109be93b43d07512237 Mon Sep 17 00:00:00 2001 From: Jin Seop Kim Date: Thu, 29 Oct 2026 18:23:48 -0400 Subject: [PATCH 2/2] chore(vision): remove flaky ITSystemTest.detectFacesGcsTest --- .../com/google/cloud/vision/it/ITSystemTest.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java b/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java index 3c9108faefee..2fc09ae028bd 100644 --- a/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java +++ b/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java @@ -78,7 +78,6 @@ import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; -import org.junit.Ignore; import org.junit.Test; public class ITSystemTest { @@ -296,19 +295,6 @@ public void detectFacesTest() throws IOException { } } - @Ignore("Flaky test: b/579436201") - @Test - public void detectFacesGcsTest() throws IOException { - AnnotateImageResponse res = - requestAnnotatedImage("face/face_no_surprise.jpg", Type.FACE_DETECTION, true); - for (FaceAnnotation annotation : assertNotEmpty(res, res.getFaceAnnotationsList())) { - assertThat(annotation.getAngerLikelihood()).isAnyOf(Likelihood.LIKELY, Likelihood.POSSIBLE); - assertEquals(Likelihood.VERY_UNLIKELY, annotation.getJoyLikelihood()); - assertThat(annotation.getSurpriseLikelihood()) - .isAnyOf(Likelihood.LIKELY, Likelihood.POSSIBLE); - } - } - @Test public void detectLabelsTest() throws IOException { AnnotateImageResponse res = requestAnnotatedImage("wakeupcat.jpg", Type.LABEL_DETECTION, false);