From 070a15aa2973c92a3971b89da0510dce74d1b19d Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Wed, 7 Sep 2022 09:38:55 +0200 Subject: [PATCH] switch cfstream tests to buildonly (#30849) --- .../internal_ci/macos/grpc_run_bazel_isolated_tests.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/internal_ci/macos/grpc_run_bazel_isolated_tests.sh b/tools/internal_ci/macos/grpc_run_bazel_isolated_tests.sh index c137d382911..3f2185235f7 100644 --- a/tools/internal_ci/macos/grpc_run_bazel_isolated_tests.sh +++ b/tools/internal_ci/macos/grpc_run_bazel_isolated_tests.sh @@ -23,9 +23,12 @@ cd $(dirname $0)/../../.. ./tools/run_tests/start_port_server.py +# BUILD ONLY TEST! +# TODO(jtattermusch): the test has been disabled since it was highly flaky for a very long time (b/242971695). +# Re-enable the test (change "bazel build" to "bazel test") once it's passing reliably. # run cfstream_test separately because it messes with the network # The "local" execution strategy is required because the test runs sudo and that doesn't work in a sandboxed environment (the default on mac) -tools/bazel test $RUN_TESTS_FLAGS --genrule_strategy=local --test_output=all --copt="-DGRPC_CFSTREAM=1" //test/cpp/end2end:cfstream_test +tools/bazel build $RUN_TESTS_FLAGS --genrule_strategy=local --test_output=all --copt="-DGRPC_CFSTREAM=1" //test/cpp/end2end:cfstream_test # Missing the /var/db/ntp-kod file may breaks the ntp synchronization. # Create the file and change the ownership to root before NTP sync. @@ -37,9 +40,12 @@ sudo chown root:wheel /var/db/ntp-kod # NTP sync before exiting. Bazel gets confused if test end time < start time. sudo sntp -sS pool.ntp.org +# BUILD ONLY TEST! +# TODO(jtattermusch): the test has been disabled since it was highly flaky for a very long time (b/242971695). +# Re-enable the test (change "bazel build" to "bazel test") once it's passing reliably. # run time_jump_test separately because it changes system time # The "local" execution strategy is required because the test runs sudo and that doesn't work in a sandboxed environment (the default on mac) -tools/bazel test $RUN_TESTS_FLAGS --genrule_strategy=local --test_output=all //test/cpp/common:time_jump_test +tools/bazel build $RUN_TESTS_FLAGS --genrule_strategy=local --test_output=all //test/cpp/common:time_jump_test # kill port_server.py to prevent the build from freezing ps aux | grep port_server\\.py | awk '{print $2}' | xargs kill -9