Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
5eec886f
M
milvus
项目概览
milvus
/
milvus
9 个月 前同步成功
通知
260
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
5eec886f
编写于
5月 29, 2023
作者:
N
nico
提交者:
GitHub
5月 29, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add a nightly pipeline to test authentication (#23887)
Signed-off-by:
N
nico
<
cheng.yuan@zilliz.com
>
上级
63752365
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
28 addition
and
9 deletion
+28
-9
ci/jenkins/Nightly.groovy
ci/jenkins/Nightly.groovy
+27
-9
tests/python_client/common/common_func.py
tests/python_client/common/common_func.py
+1
-0
未找到文件。
ci/jenkins/Nightly.groovy
浏览文件 @
5eec886f
...
@@ -87,7 +87,7 @@ pipeline {
...
@@ -87,7 +87,7 @@ pipeline {
axes
{
axes
{
axis
{
axis
{
name
'MILVUS_SERVER_TYPE'
name
'MILVUS_SERVER_TYPE'
values
'standalone'
,
'distributed-pulsar'
,
'distributed-kafka'
values
'standalone'
,
'distributed-pulsar'
,
'distributed-kafka'
,
'standalone-authentication'
}
}
axis
{
axis
{
name
'MILVUS_CLIENT'
name
'MILVUS_CLIENT'
...
@@ -107,6 +107,7 @@ pipeline {
...
@@ -107,6 +107,7 @@ pipeline {
// def setMemoryResourceLimitArgs="--set standalone.resources.limits.memory=4Gi"
// def setMemoryResourceLimitArgs="--set standalone.resources.limits.memory=4Gi"
def
mqMode
=
'pulsar'
// default using is pulsar
def
mqMode
=
'pulsar'
// default using is pulsar
def
mysql_architecture
=
"standalone"
def
mysql_architecture
=
"standalone"
def
authenticationEnabled
=
"false"
if
(
"${MILVUS_SERVER_TYPE}"
==
"distributed-pulsar"
)
{
if
(
"${MILVUS_SERVER_TYPE}"
==
"distributed-pulsar"
)
{
clusterEnabled
=
"true"
clusterEnabled
=
"true"
}
else
if
(
"${MILVUS_SERVER_TYPE}"
==
"distributed-kafka"
)
{
}
else
if
(
"${MILVUS_SERVER_TYPE}"
==
"distributed-kafka"
)
{
...
@@ -114,6 +115,8 @@ pipeline {
...
@@ -114,6 +115,8 @@ pipeline {
// mysqlEnabled = "true"
// mysqlEnabled = "true"
mqMode
=
'kafka'
mqMode
=
'kafka'
// mysql_architecture = "replication"
// mysql_architecture = "replication"
}
else
if
(
"${MILVUS_SERVER_TYPE}"
==
"standalone-authentication"
)
{
authenticationEnabled
=
"true"
}
}
if
(
"${MILVUS_CLIENT}"
==
"pymilvus"
)
{
if
(
"${MILVUS_CLIENT}"
==
"pymilvus"
)
{
if
(
"${imageTag}"
==
''
){
if
(
"${imageTag}"
==
''
){
...
@@ -160,6 +163,7 @@ pipeline {
...
@@ -160,6 +163,7 @@ pipeline {
--set indexNode.disk.enabled=true \
--set indexNode.disk.enabled=true \
--set queryNode.disk.enabled=true \
--set queryNode.disk.enabled=true \
--set standalone.disk.enabled=true \
--set standalone.disk.enabled=true \
--set common.security.authorizationEnabled=${authenticationEnabled} \
--version ${chart_version} \
--version ${chart_version} \
-f values/${mqMode}.yaml \
-f values/${mqMode}.yaml \
-f values/mysql.yaml \
-f values/mysql.yaml \
...
@@ -203,16 +207,30 @@ pipeline {
...
@@ -203,16 +207,30 @@ pipeline {
mqMode
=
'kafka'
mqMode
=
'kafka'
tag
=
"L0 L1 L2 ClusterOnly"
tag
=
"L0 L1 L2 ClusterOnly"
e2e_timeout_seconds
=
6
*
60
*
60
e2e_timeout_seconds
=
6
*
60
*
60
}
else
if
(
"${MILVUS_SERVER_TYPE}"
==
"standalone-authentication"
)
{
tag
=
"L3"
e2e_timeout_seconds
=
1
*
60
*
60
}
}
if
(
"${MILVUS_CLIENT}"
==
"pymilvus"
)
{
if
(
"${MILVUS_CLIENT}"
==
"pymilvus"
)
{
sh
"""
if
(
"${MILVUS_SERVER_TYPE}"
==
"standalone-authentication"
)
{
MILVUS_HELM_RELEASE_NAME="${release_name}" \
sh
"""
MILVUS_HELM_NAMESPACE="milvus-ci" \
MILVUS_HELM_RELEASE_NAME="${release_name}" \
MILVUS_CLUSTER_ENABLED="${clusterEnabled}" \
MILVUS_HELM_NAMESPACE="milvus-ci" \
TEST_TIMEOUT="${e2e_timeout_seconds}" \
MILVUS_CLUSTER_ENABLED="${clusterEnabled}" \
MQ_MODE="${mqMode}" \
TEST_TIMEOUT="${e2e_timeout_seconds}" \
./ci_e2e.sh "-n 6 --tags ${tag}"
MQ_MODE="${mqMode}" \
"""
./ci_e2e.sh "-n 4 --tags ${tag} testcases/test_utility.py::TestUtilityUserPassword testcases/test_utility.py::TestUtilityInvalidUserPassword"
"""
}
else
{
sh
"""
MILVUS_HELM_RELEASE_NAME="${release_name}" \
MILVUS_HELM_NAMESPACE="milvus-ci" \
MILVUS_CLUSTER_ENABLED="${clusterEnabled}" \
TEST_TIMEOUT="${e2e_timeout_seconds}" \
MQ_MODE="${mqMode}" \
./ci_e2e.sh "-n 6 --tags ${tag}"
"""
}
}
else
{
}
else
{
error
"Error: Unsupported Milvus client: ${MILVUS_CLIENT}"
error
"Error: Unsupported Milvus client: ${MILVUS_CLIENT}"
}
}
...
...
tests/python_client/common/common_func.py
浏览文件 @
5eec886f
...
@@ -28,6 +28,7 @@ def ts_float32(val):
...
@@ -28,6 +28,7 @@ def ts_float32(val):
"""Used if *val* is an instance of numpy.float32."""
"""Used if *val* is an instance of numpy.float32."""
return
np
.
float64
(
val
)
return
np
.
float64
(
val
)
class
ParamInfo
:
class
ParamInfo
:
def
__init__
(
self
):
def
__init__
(
self
):
self
.
param_host
=
""
self
.
param_host
=
""
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录