Merge "busy_threads: add optional argument to continuously rename the threads"
diff --git a/test/ci/android_tests.sh b/test/ci/android_tests.sh
index 8c637c2..9c9fcf0 100755
--- a/test/ci/android_tests.sh
+++ b/test/ci/android_tests.sh
@@ -15,6 +15,7 @@
 
 set -eux -o pipefail
 
+# cd into the project root (two levels up from /test/ci).
 cd $(dirname ${BASH_SOURCE[0]})/../..
 
 OUT_PATH="out/dist"
diff --git a/test/ci/bazel_tests.sh b/test/ci/bazel_tests.sh
index e2b001d..a7a4359 100755
--- a/test/ci/bazel_tests.sh
+++ b/test/ci/bazel_tests.sh
@@ -15,9 +15,16 @@
 
 set -eux -o pipefail
 
+# cd into the project root (two levels up from /test/ci).
 cd $(dirname ${BASH_SOURCE[0]})/../..
 
-# TODO(primiano): Add --disk_cache=/ci/cache/bazel-$(hostname) to speed up
-# builds. That requires a daily cleanup of the cache though because bazel
-# otherwise grows it indefinitely.
-bazel build //:all
+bazel build //:all --verbose_failures
+
+# Smoke test that processes run without crashing.
+./bazel-bin/traced &
+./bazel-bin/traced_probes &
+sleep 5
+TRACE=/ci/artifacts/bazel.trace
+./bazel-bin/perfetto -c :test -o $TRACE
+kill $(jobs -p)
+./bazel-bin/trace_processor_shell -q <(echo 'select count(1) from sched') $TRACE
diff --git a/test/ci/fuzzer_tests.sh b/test/ci/fuzzer_tests.sh
index 6736857..0ed6f8b 100755
--- a/test/ci/fuzzer_tests.sh
+++ b/test/ci/fuzzer_tests.sh
@@ -15,6 +15,7 @@
 
 set -eux -o pipefail
 
+# cd into the project root (two levels up from /test/ci).
 cd $(dirname ${BASH_SOURCE[0]})/../..
 
 OUT_PATH="out/dist"
diff --git a/test/ci/linux_tests.sh b/test/ci/linux_tests.sh
index 7d98492..571ad53 100755
--- a/test/ci/linux_tests.sh
+++ b/test/ci/linux_tests.sh
@@ -15,6 +15,7 @@
 
 set -eux -o pipefail
 
+# cd into the project root (two levels up from /test/ci).
 cd $(dirname ${BASH_SOURCE[0]})/../..
 
 OUT_PATH="out/dist"
diff --git a/test/ci/ui_tests.sh b/test/ci/ui_tests.sh
index 8fbd627..ef54437 100755
--- a/test/ci/ui_tests.sh
+++ b/test/ci/ui_tests.sh
@@ -15,6 +15,7 @@
 
 set -eux -o pipefail
 
+# cd into the project root (two levels up from /test/ci).
 cd $(dirname ${BASH_SOURCE[0]})/../..
 
 OUT_PATH="out/dist"