enhance: remove .git folder for unit test workflow (#29833)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2024-01-10 16:46:49 +08:00 committed by GitHub
parent e8496d4d49
commit 93f87417fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -102,6 +102,7 @@ jobs:
**/* **/*
!./.docker/** !./.docker/**
!./cmake_build/thirdparty/** !./cmake_build/thirdparty/**
!.git
UT-Cpp: UT-Cpp:
name: UT for Cpp name: UT for Cpp
needs: Build needs: Build
@ -181,7 +182,6 @@ jobs:
./lcov_output.info ./lcov_output.info
*.info *.info
*.out *.out
.git
integration-test: integration-test:
name: Integration Test name: Integration Test
needs: Build needs: Build

View File

@ -671,7 +671,7 @@ func (node *QueryNode) SearchSegments(ctx context.Context, req *querypb.SearchRe
metrics.QueryNodeSQCount.WithLabelValues(fmt.Sprint(paramtable.GetNodeID()), metrics.SearchLabel, metrics.TotalLabel, metrics.FromLeader).Inc() metrics.QueryNodeSQCount.WithLabelValues(fmt.Sprint(paramtable.GetNodeID()), metrics.SearchLabel, metrics.TotalLabel, metrics.FromLeader).Inc()
defer func() { defer func() {
if resp.GetStatus().GetErrorCode() != commonpb.ErrorCode_Success { if !merr.Ok(resp.GetStatus()) {
metrics.QueryNodeSQCount.WithLabelValues(fmt.Sprint(paramtable.GetNodeID()), metrics.SearchLabel, metrics.FailLabel, metrics.FromLeader).Inc() metrics.QueryNodeSQCount.WithLabelValues(fmt.Sprint(paramtable.GetNodeID()), metrics.SearchLabel, metrics.FailLabel, metrics.FromLeader).Inc()
} }
}() }()