mirror of https://github.com/milvus-io/milvus.git
Add unittest and fix a bug in segment manager
Signed-off-by: neza2017 <yefu.chen@zilliz.com>pull/4973/head^2
parent
3afab6ecb9
commit
dab1afa3cc
|
@ -7,6 +7,7 @@
|
|||
"remoteUser": "debugger",
|
||||
"remoteEnv": {"CCACHE_COMPILERCHECK":"content", "CCACHE_MAXSIZE": "2G", "CCACHE_COMPRESS": "1", "CCACHE_COMPRESSLEVEL": "5"},
|
||||
"extensions": [
|
||||
"ms-vscode.cmake-tools",
|
||||
"ms-vscode.cpptools",
|
||||
"golang.go"
|
||||
]
|
||||
|
|
4
.env
4
.env
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue