diff options
author | 2016-12-06 15:42:05 +0000 | |
---|---|---|
committer | 2016-12-06 18:28:24 +0000 | |
commit | ce03c02eabad95d4a02e6938f26215b6584e09d8 (patch) | |
tree | 5c82d7f592b75dd52f25771b5a97e9bf1c589b39 /src/test/shell/integration/BUILD | |
parent | 304da48921ebca7a1948dac787c7cb95e31cc381 (diff) |
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
Diffstat (limited to 'src/test/shell/integration/BUILD')
-rw-r--r-- | src/test/shell/integration/BUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/test/shell/integration/BUILD b/src/test/shell/integration/BUILD index 6e41530ed1..4571d032b1 100644 --- a/src/test/shell/integration/BUILD +++ b/src/test/shell/integration/BUILD @@ -213,6 +213,38 @@ sh_test( data = [":test-deps"], ) +sh_test( + name = "bazel_worker_test", + size = "large", + srcs = ["bazel_worker_test.sh"], + args = [ + "--worker_sandboxing=no", + "non-sandboxed", + ], + data = [ + ":test-deps", + "//src/test/java/com/google/devtools/build/lib:ExampleWorker_deploy.jar", + ], + shard_count = 3, + tags = ["jdk8"], +) + +sh_test( + name = "bazel_sandboxed_worker_test", + size = "large", + srcs = ["bazel_worker_test.sh"], + args = [ + "--worker_sandboxing", + "sandboxed", + ], + data = [ + ":test-deps", + "//src/test/java/com/google/devtools/build/lib:ExampleWorker_deploy.jar", + ], + shard_count = 3, + tags = ["jdk8"], +) + test_suite( name = "all_tests", visibility = ["//visibility:public"], |