Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
91f2b69c
M
milvus
项目概览
milvus
/
milvus
11 个月 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
91f2b69c
编写于
10月 07, 2021
作者:
Z
zhuwenxing
提交者:
GitHub
10月 07, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[skip ci]Use notation instead of legacy backticked (#9382)
Signed-off-by:
N
zhuwenxing
<
wenxing.zhu@zilliz.com
>
上级
d08370d0
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
11 deletion
+11
-11
tests/python_client/deploy/test.sh
tests/python_client/deploy/test.sh
+11
-11
未找到文件。
tests/python_client/deploy/test.sh
浏览文件 @
91f2b69c
...
...
@@ -16,7 +16,7 @@ func() {
echo
"check os env"
platform
=
'unknown'
unamestr
=
`
uname
`
unamestr
=
$(
uname
)
if
[[
"
$unamestr
"
==
'Linux'
]]
;
then
platform
=
'Linux'
elif
[[
"
$unamestr
"
==
'Darwin'
]]
;
then
...
...
@@ -46,13 +46,13 @@ ROOT_FOLDER=$(cd "$(dirname "$0")";pwd)
function
error_exit
{
pushd
${
ROOT_FOLDER
}
/
${
Deploy_Dir
}
echo
"test failed"
current
=
`
date
"+%Y-%m-%d-%H-%M-%S"
`
current
=
$(
date
"+%Y-%m-%d-%H-%M-%S"
)
if
[
!
-d
logs
]
;
then
mkdir
logs
fi
docker-compose logs
>
./logs/
${
Deploy_Dir
}
-
${
Task
}
-
${
current
}
.log
echo
"log saved to
`
pwd
`
/logs/
${
Deploy_Dir
}
-
${
Task
}
-
${
current
}
.log"
echo
"log saved to
$(
pwd
)
/logs/
${
Deploy_Dir
}
-
${
Task
}
-
${
current
}
.log"
popd
exit
1
}
...
...
@@ -73,8 +73,8 @@ function replace_image_tag {
#to check containers all running and minio is healthy
function
check_healthy
{
cnt
=
`
docker-compose ps |
grep
-E
"running|Running|Up|up"
|
wc
-l
`
healthy
=
`
docker-compose ps |
grep
"Healthy"
|
wc
-l
`
cnt
=
$(
docker-compose ps |
grep
-E
"running|Running|Up|up"
|
wc
-l
)
healthy
=
$(
docker-compose ps |
grep
"Healthy"
|
wc
-l
)
time_cnt
=
0
echo
"running num
$cnt
expect num
$Expect
"
echo
"healthy num
$healthy
expect num
$Expect_health
"
...
...
@@ -89,7 +89,7 @@ function check_healthy {
printf
"timeout,there are some issue with deployment!"
error_exit
fi
cnt
=
`
docker-compose ps |
grep
-E
"running|Running|Up|up"
|
wc
-l
`
cnt
=
$(
docker-compose ps |
grep
-E
"running|Running|Up|up"
|
wc
-l
)
healthy
=
`
docker-compose ps |
grep
"healthy"
|
wc
-l
`
echo
"running num
$cnt
expect num
$Expect
"
echo
"healthy num
$healthy
expect num
$Expect_health
"
...
...
@@ -117,9 +117,9 @@ echo "get tag info"
python scripts/get_tag.py
latest_tag
=
`
jq
-r
".latest_tag"
tag_info.json
`
latest_rc_tag
=
`
jq
-r
".latest_rc_tag"
tag_info.json
`
release_version
=
`
jq
-r
".release_version"
tag_info.json
`
latest_tag
=
$(
jq
-r
".latest_tag"
tag_info.json
)
latest_rc_tag
=
$(
jq
-r
".latest_rc_tag"
tag_info.json
)
release_version
=
$(
jq
-r
".release_version"
tag_info.json
)
echo
$release_version
pushd
${
Deploy_Dir
}
...
...
@@ -145,8 +145,8 @@ then
fi
cat
docker-compose.yml|grep milvusdb
Expect
=
`
grep
"container_name"
docker-compose.yml |
wc
-l
`
Expect_health
=
`
grep
"healthcheck"
docker-compose.yml |
wc
-l
`
Expect
=
$(
grep
"container_name"
docker-compose.yml |
wc
-l
)
Expect_health
=
$(
grep
"healthcheck"
docker-compose.yml |
wc
-l
)
docker-compose up
-d
check_healthy
docker-compose ps
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录