aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/remote_build/README.md
diff options
context:
space:
mode:
authorGravatar kkm <kkm@smartaction.com>2018-11-02 00:55:07 -0700
committerGravatar kkm <kkm@smartaction.com>2018-11-02 00:55:07 -0700
commitf438d7c727e196b31dded8922ca22ab199dd12d5 (patch)
treec327cb8fdb7e73eced8162869c8b2156035ccd9f /tools/remote_build/README.md
parent4912fb2d04f87ddae44c5146b4c9dca0bc225d42 (diff)
parent53657b5de385ffc54e33899b3f2a87ff78d2952b (diff)
Merge branch master into package-grpc-tools-doc
Diffstat (limited to 'tools/remote_build/README.md')
-rw-r--r--tools/remote_build/README.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/tools/remote_build/README.md b/tools/remote_build/README.md
new file mode 100644
index 0000000000..c4d03547a2
--- /dev/null
+++ b/tools/remote_build/README.md
@@ -0,0 +1,33 @@
+# Running Remote Builds with bazel
+
+This allows you to spawn gRPC C/C++ remote build and tests from your workstation with
+configuration that's very similar to what's used by our CI Kokoro.
+
+Note that this will only work for gRPC team members (it requires access to the
+remote build and execution cluster), others will need to rely on local test runs
+and tests run by Kokoro CI.
+
+
+## Prerequisites
+
+- See [Installing Bazel](https://docs.bazel.build/versions/master/install.html) for instructions how to install bazel on your system.
+
+- Setup application default credentials for running remote builds by following [RBE Credentials Setup](https://cloud.google.com/remote-build-execution/docs/getting-started#set_credentials)
+
+
+## Running remote build manually from dev workstation
+
+Run from repository root:
+```
+# manual run of bazel tests remotely on Foundry
+bazel --bazelrc=tools/remote_build/manual.bazelrc test -c opt //test/...
+```
+
+Sanitizer runs (asan, msan, tsan, ubsan):
+```
+# manual run of bazel tests remotely on Foundry with given sanitizer
+bazel --bazelrc=tools/remote_build/manual.bazelrc test --config=asan //test/...
+```
+
+Available command line options can be found in
+[Bazel command line reference](https://docs.bazel.build/versions/master/command-line-reference.html)