If a worker returns unparseable output, print it to the terminal. When a persistent worker returns a WorkResponse that cannot be parsed by protobuf, it probably means that the worker has encountered an error and mistakenly printed a stack trace or error message to stdout. For users who want to know why their compiler crashes and for developers of tools that support the worker mode, it is extremely helpful to actually see these error messages, so let's print them. -- PiperOrigin-RevId: 141176835 MOS_MIGRATED_REVID=141176835
diff --git a/src/test/java/com/google/devtools/build/lib/BUILD b/src/test/java/com/google/devtools/build/lib/BUILD index 7c1b7a4..55e7d82 100644 --- a/src/test/java/com/google/devtools/build/lib/BUILD +++ b/src/test/java/com/google/devtools/build/lib/BUILD
@@ -1215,7 +1215,7 @@ name = "ExampleWorker-lib", srcs = glob(["worker/ExampleWorker*.java"]), visibility = [ - "//src/test/shell/bazel:__pkg__", + "//src/test/shell/integration:__pkg__", ], deps = [ "//src/main/java/com/google/devtools/common/options", @@ -1228,7 +1228,7 @@ name = "ExampleWorker", main_class = "com.google.devtools.build.lib.worker.ExampleWorker", visibility = [ - "//src/test/shell/bazel:__pkg__", + "//src/test/shell/integration:__pkg__", ], runtime_deps = [ ":ExampleWorker-lib",