From 924a5a8cef673537b60787f947052d1de0d6fc69 Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 18 Jan 2024 03:13:01 -0800 Subject: [PATCH] Allow network for two Java tests to avoid binding issue on macOS sandbox https://buildkite.com/bazel/bazel-bazel/builds/26312#018d1722-0e79-47b4-82ed-9cc47487e05a Related issues: - https://github.com/bazelbuild/bazel/issues/20743 - https://github.com/bazelbuild/bazel/issues/5206 PiperOrigin-RevId: 599452705 Change-Id: I2fdccd9df513064e5bc9add4f1802d4c1ce9c6da --- src/test/java/com/google/devtools/build/lib/server/BUILD | 1 + .../com/google/devtools/build/lib/starlarkdebug/server/BUILD | 1 + 2 files changed, 2 insertions(+) diff --git a/src/test/java/com/google/devtools/build/lib/server/BUILD b/src/test/java/com/google/devtools/build/lib/server/BUILD index c5d1a19e4064f8..e58d642c3516df 100644 --- a/src/test/java/com/google/devtools/build/lib/server/BUILD +++ b/src/test/java/com/google/devtools/build/lib/server/BUILD @@ -50,6 +50,7 @@ java_library( java_test( name = "ServerTests", size = "medium", + tags = ["requires-network"], # https://github.com/bazelbuild/bazel/issues/20743 test_class = "com.google.devtools.build.lib.AllTests", runtime_deps = [ ":ServerTests_lib", diff --git a/src/test/java/com/google/devtools/build/lib/starlarkdebug/server/BUILD b/src/test/java/com/google/devtools/build/lib/starlarkdebug/server/BUILD index d89a1d454c2569..ac2531233bf12c 100644 --- a/src/test/java/com/google/devtools/build/lib/starlarkdebug/server/BUILD +++ b/src/test/java/com/google/devtools/build/lib/starlarkdebug/server/BUILD @@ -46,6 +46,7 @@ java_test( java_test( name = "DebugServerTransportTest", srcs = ["DebugServerTransportTest.java"], + tags = ["requires-network"], # https://github.com/bazelbuild/bazel/issues/20743 deps = [ "//src/main/java/com/google/devtools/build/lib/events", "//src/main/java/com/google/devtools/build/lib/starlarkdebug/proto:starlark_debugging_java_proto",