From 795f7bb32eb1fda360741c8b023ce0e1104c5a7d 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 f2dba006357341..894201ab0786ae 100644 --- a/src/test/java/com/google/devtools/build/lib/server/BUILD +++ b/src/test/java/com/google/devtools/build/lib/server/BUILD @@ -49,6 +49,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 eea2ac4156770e..426a2e3f668d1e 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 @@ -45,6 +45,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",