提交 dab1afa3 编写于 作者: N neza2017 提交者: yefu.chen

Add unittest and fix a bug in segment manager

Signed-off-by: Nneza2017 <yefu.chen@zilliz.com>
上级 3afab6ec
......@@ -7,7 +7,8 @@
"remoteUser": "debugger",
"remoteEnv": {"CCACHE_COMPILERCHECK":"content", "CCACHE_MAXSIZE": "2G", "CCACHE_COMPRESS": "1", "CCACHE_COMPRESSLEVEL": "5"},
"extensions": [
"ms-vscode.cpptools",
"golang.go"
]
"ms-vscode.cmake-tools",
"ms-vscode.cpptools",
"golang.go"
]
}
......@@ -3,6 +3,6 @@ ARCH=amd64
UBUNTU=18.04
DATE_VERSION=20201120-092740
LATEST_DATE_VERSION=latest
PULSAR_ADDRESS=pulsar://localhost:6650
ETCD_ADDRESS=localhost:2379
PULSAR_ADDRESS=pulsar://pulsar:6650
ETCD_ADDRESS=etcd:2379
MASTER_ADDRESS=localhost:53100
......@@ -57,7 +57,7 @@ jobs:
- name: Start Service
shell: bash
run: |
cd ${GITHUB_WORKSPACE}/deployments/docker && docker-compose up -d
cd ${GITHUB_WORKSPACE}/deployments/docker && docker-compose -p milvus-distributed up -d
- name: Build and UnitTest
env:
CHECK_BUILDER: "1"
......
......@@ -8,6 +8,8 @@ services:
- "2379:2379"
- "2380:2380"
- "4001:4001"
networks:
- milvus
pulsar:
image: apachepulsar/pulsar:latest
......@@ -15,6 +17,11 @@ services:
ports:
- "6650:6650"
- "18080:8080"
networks:
- milvus
networks:
milvus:
# pd0:
# image: pingcap/pd:latest
......
......@@ -10,7 +10,6 @@ x-ccache: &ccache
services:
ubuntu:
image: ${REPO}:${ARCH}-ubuntu${UBUNTU}-${DATE_VERSION}
network_mode: "host"
build:
context: .
dockerfile: build/docker/env/cpu/ubuntu${UBUNTU}/Dockerfile
......@@ -29,6 +28,8 @@ services:
command: &ubuntu-command >
/bin/bash -c "
make check-proto-product && make verifiers && make unittest"
networks:
- milvus
gdbserver:
image: ${REPO}:${ARCH}-ubuntu${UBUNTU}-${DATE_VERSION}
......@@ -52,3 +53,8 @@ services:
ports:
- "7776:22"
- "7777:7777"
networks:
- milvus
networks:
milvus:
......@@ -11,3 +11,9 @@ formatThis() {
formatThis "${CorePath}/src"
formatThis "${CorePath}/unittest"
if test -z "$(git status | grep -E "*\.c|*\.h")"; then
exit 0
else
echo "Please format your code by clang-format!"
exit 1
fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册