From 74a87f8000ec7d47cdcee9a0bdb664c1c6554eef Mon Sep 17 00:00:00 2001 From: jaime Date: Fri, 12 Aug 2022 13:30:38 +0800 Subject: [PATCH] Disable ut about kafka temporarily (#18611) Signed-off-by: yun.zhang Signed-off-by: yun.zhang --- scripts/run_go_codecov.sh | 2 +- scripts/run_go_unittest.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run_go_codecov.sh b/scripts/run_go_codecov.sh index cc4cc8e503..07fe007a08 100755 --- a/scripts/run_go_codecov.sh +++ b/scripts/run_go_codecov.sh @@ -30,7 +30,7 @@ echo "Running unittest under ./internal" if [[ $(uname -s) == "Darwin" && "$(uname -m)" == "arm64" ]]; then APPLE_SILICON_FLAG="-tags dynamic" fi -for d in $(go list ./internal/... | grep -v -e vendor -e planparserv2/generated); do +for d in $(go list ./internal/... | grep -v -e vendor -e kafka -e planparserv2/generated); do go test -race ${APPLE_SILICON_FLAG} -v -coverpkg=./... -coverprofile=profile.out -covermode=atomic "$d" if [ -f profile.out ]; then grep -v kafka profile.out | grep -v planparserv2/generated | sed '1d' >> ${FILE_COVERAGE_INFO} diff --git a/scripts/run_go_unittest.sh b/scripts/run_go_unittest.sh index 81faa408bb..bb026612ce 100755 --- a/scripts/run_go_unittest.sh +++ b/scripts/run_go_unittest.sh @@ -36,7 +36,7 @@ echo "Running go unittest under $MILVUS_DIR" go test -race -cover ${APPLE_SILICON_FLAG} "${MILVUS_DIR}/allocator/..." -failfast go test -race -cover ${APPLE_SILICON_FLAG} "${MILVUS_DIR}/kv/..." -failfast -go test -race -cover ${APPLE_SILICON_FLAG} "${MILVUS_DIR}/mq/..." -failfast +go test -race -cover ${APPLE_SILICON_FLAG} $(go list "${MILVUS_DIR}/mq/..." | grep -v kafka) -failfast go test -race -cover ${APPLE_SILICON_FLAG} "${MILVUS_DIR}/storage" -failfast go test -race -cover ${APPLE_SILICON_FLAG} "${MILVUS_DIR}/tso/..." -failfast go test -race -cover ${APPLE_SILICON_FLAG} "${MILVUS_DIR}/config/..." -failfast