From 42e21f9db1e805006f54290227f82cb2803cafea Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Thu, 9 Feb 2023 23:36:44 +0800 Subject: [PATCH 1/2] bazel: set --test_keep_going false Signed-off-by: Weizhen Wang --- .bazelrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index 1ac13a3e138a7..909c3e3da9e00 100644 --- a/.bazelrc +++ b/.bazelrc @@ -19,7 +19,7 @@ build:race --config=ci build:race --@io_bazel_rules_go//go/config:race --test_env=GORACE=halt_on_error=1 --test_sharding_strategy=disabled test --test_env=TZ=Asia/Shanghai -test --test_output=errors --test_summary=testcase +test --test_output=errors --test_summary=testcase --test_keep_going=false test:ci --color=yes --spawn_strategy=local test:ci --verbose_failures --test_verbose_timeout_warnings test:ci --test_env=GO_TEST_WRAP_TESTV=1 From 368314010d9471c3bb9f67d1bc144b07095090c2 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Thu, 9 Feb 2023 23:38:52 +0800 Subject: [PATCH 2/2] bazel: set --test_keep_going false Signed-off-by: Weizhen Wang --- .bazelrc | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bazelrc b/.bazelrc index 909c3e3da9e00..1ac13a3e138a7 100644 --- a/.bazelrc +++ b/.bazelrc @@ -19,7 +19,7 @@ build:race --config=ci build:race --@io_bazel_rules_go//go/config:race --test_env=GORACE=halt_on_error=1 --test_sharding_strategy=disabled test --test_env=TZ=Asia/Shanghai -test --test_output=errors --test_summary=testcase --test_keep_going=false +test --test_output=errors --test_summary=testcase test:ci --color=yes --spawn_strategy=local test:ci --verbose_failures --test_verbose_timeout_warnings test:ci --test_env=GO_TEST_WRAP_TESTV=1 diff --git a/Makefile b/Makefile index 99df487fcfcef..dff26f1854ca6 100644 --- a/Makefile +++ b/Makefile @@ -410,11 +410,11 @@ bazel_test: failpoint-enable bazel_ci_prepare bazel_coverage_test: failpoint-enable bazel_ci_prepare - bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) \ + bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_keep_going=false \ --@io_bazel_rules_go//go/config:cover_format=go_cover --define gotags=deadlock,intest \ -- //... -//cmd/... -//tests/graceshutdown/... \ -//tests/globalkilltest/... -//tests/readonlytest/... -//br/pkg/task:task_test -//tests/realtikvtest/... - bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) \ + bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_keep_going=false \ --@io_bazel_rules_go//go/config:cover_format=go_cover --define gotags=deadlock,intest,distributereorg \ -- //... -//cmd/... -//tests/graceshutdown/... \ -//tests/globalkilltest/... -//tests/readonlytest/... -//br/pkg/task:task_test -//tests/realtikvtest/...