Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
e30b18a8
M
milvus
项目概览
milvus
/
milvus
大约 1 年 前同步成功
通知
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,发现更多精彩内容 >>
提交
e30b18a8
编写于
3月 08, 2021
作者:
Q
quicksilver
提交者:
yefu.chen
3月 08, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add publish test images workflows
Signed-off-by:
N
quicksilver
<
zhifeng.zhang@zilliz.com
>
上级
2a083328
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
65 addition
and
25 deletion
+65
-25
.github/workflows/publish-test-images.yaml
.github/workflows/publish-test-images.yaml
+56
-0
.jenkins/modules/Build/Build.groovy
.jenkins/modules/Build/Build.groovy
+8
-8
build/docker/test/docker-compose.yml
build/docker/test/docker-compose.yml
+0
-15
scripts/before-install.sh
scripts/before-install.sh
+1
-2
未找到文件。
.github/workflows/publish-test-images.yaml
0 → 100644
浏览文件 @
e30b18a8
name
:
Publish Test Images
# TODO: do not trigger action for some document file update
# This workflow is triggered on pushes or pull request to the repository.
on
:
push
:
# file paths to consider in the event. Optional; defaults to all.
paths
:
-
'
build/docker/env/**'
-
'
.github/workflows/publish-test-images.yaml'
pull_request
:
# file paths to consider in the event. Optional; defaults to all.
paths
:
-
'
build/docker/env/**'
-
'
.github/workflows/publish-test-images.yaml'
jobs
:
publish-pytest-images
:
name
:
PyTest
runs-on
:
ubuntu-latest
timeout-minutes
:
60
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Check Dockerfile
uses
:
reviewdog/action-hadolint@v1
with
:
github_token
:
${{ secrets.GITHUB_TOKEN }}
reporter
:
github-pr-check
# Default is github-pr-check
hadolint_ignore
:
DL3008
-
name
:
Get version from system time after release step
id
:
extracter
run
:
|
echo "::set-output name=version::$(date +%Y%m%d)"
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
-
name
:
Docker Pull
shell
:
bash
working-directory
:
build/docker/test
run
:
|
docker-compose pull --ignore-pull-failures regression_standalone
-
name
:
Docker Build
shell
:
bash
working-directory
:
build/docker/test
run
:
|
TARGET_TAG=${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }} docker-compose build regression_standalone
TARGET_TAG=latest docker-compose build regression_standalone
-
name
:
Docker Push
if
:
success() && github.event_name == 'push' && github.repository == 'zilliztech/milvus-distributed'
continue-on-error
:
true
shell
:
bash
working-directory
:
build/docker/test
run
:
|
docker login -u ${{ secrets.DOCKERHUB_USER }} \
-p ${{ secrets.DOCKERHUB_TOKEN }}
TARGET_TAG=${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }} docker-compose push regression_standalone
TARGET_TAG=latest docker-compose push regression_standalone
.jenkins/modules/Build/Build.groovy
浏览文件 @
e30b18a8
timeout
(
time:
20
,
unit:
'MINUTES'
)
{
timeout
(
time:
20
,
unit:
'MINUTES'
)
{
sh
'. ./scripts/before-install.sh &&
unset http_proxy && unset https_proxy &&
./scripts/check_cache.sh -l $CCACHE_ARTFACTORY_URL --cache_dir=\$CCACHE_DIR -f ccache-\$OS_NAME-\$BUILD_ENV_IMAGE_ID.tar.gz || echo \"Ccache artfactory files not found!\"'
sh
'. ./scripts/before-install.sh && ./scripts/check_cache.sh -l $CCACHE_ARTFACTORY_URL --cache_dir=\$CCACHE_DIR -f ccache-\$OS_NAME-\$BUILD_ENV_IMAGE_ID.tar.gz || echo \"Ccache artfactory files not found!\"'
sh
'. ./scripts/before-install.sh &&
unset http_proxy && unset https_proxy &&
./scripts/check_cache.sh -l $GO_CACHE_ARTFACTORY_URL --cache_dir=\$(go env GOCACHE) -f go-cache-\$OS_NAME-\$BUILD_ENV_IMAGE_ID.tar.gz || echo \"Go cache artfactory files not found!\"'
sh
'. ./scripts/before-install.sh && ./scripts/check_cache.sh -l $GO_CACHE_ARTFACTORY_URL --cache_dir=\$(go env GOCACHE) -f go-cache-\$OS_NAME-\$BUILD_ENV_IMAGE_ID.tar.gz || echo \"Go cache artfactory files not found!\"'
sh
'. ./scripts/before-install.sh &&
unset http_proxy && unset https_proxy &&
./scripts/check_cache.sh -l $THIRDPARTY_ARTFACTORY_URL --cache_dir=$CUSTOM_THIRDPARTY_PATH -f thirdparty-download.tar.gz || echo \"Thirdparty artfactory files not found!\"'
sh
'. ./scripts/before-install.sh && ./scripts/check_cache.sh -l $THIRDPARTY_ARTFACTORY_URL --cache_dir=$CUSTOM_THIRDPARTY_PATH -f thirdparty-download.tar.gz || echo \"Thirdparty artfactory files not found!\"'
sh
'. ./scripts/before-install.sh &&
unset http_proxy && unset https_proxy &&
./scripts/check_cache.sh -l $GO_MOD_ARTFACTORY_URL --cache_dir=\$GOPATH/pkg/mod -f milvus-distributed-go-mod-\$(md5sum go.mod).tar.gz || echo \"Go mod artfactory files not found!\"'
sh
'. ./scripts/before-install.sh && ./scripts/check_cache.sh -l $GO_MOD_ARTFACTORY_URL --cache_dir=\$GOPATH/pkg/mod -f milvus-distributed-go-mod-\$(md5sum go.mod).tar.gz || echo \"Go mod artfactory files not found!\"'
// Zero the cache statistics (but not the configuration options)
// Zero the cache statistics (but not the configuration options)
sh
'ccache -z'
sh
'ccache -z'
...
@@ -12,9 +12,9 @@ timeout(time: 20, unit: 'MINUTES') {
...
@@ -12,9 +12,9 @@ timeout(time: 20, unit: 'MINUTES') {
withCredentials
([
usernamePassword
(
credentialsId:
"${env.JFROG_CREDENTIALS_ID}"
,
usernameVariable:
'USERNAME'
,
passwordVariable:
'PASSWORD'
)])
{
withCredentials
([
usernamePassword
(
credentialsId:
"${env.JFROG_CREDENTIALS_ID}"
,
usernameVariable:
'USERNAME'
,
passwordVariable:
'PASSWORD'
)])
{
sh
'. ./scripts/before-install.sh &&
unset http_proxy && unset https_proxy &&
./scripts/update_cache.sh -l $CCACHE_ARTFACTORY_URL --cache_dir=\$CCACHE_DIR -f ccache-\$OS_NAME-\$BUILD_ENV_IMAGE_ID.tar.gz -u ${USERNAME} -p ${PASSWORD}'
sh
'. ./scripts/before-install.sh && ./scripts/update_cache.sh -l $CCACHE_ARTFACTORY_URL --cache_dir=\$CCACHE_DIR -f ccache-\$OS_NAME-\$BUILD_ENV_IMAGE_ID.tar.gz -u ${USERNAME} -p ${PASSWORD}'
sh
'. ./scripts/before-install.sh &&
unset http_proxy && unset https_proxy &&
./scripts/update_cache.sh -l $GO_CACHE_ARTFACTORY_URL --cache_dir=\$(go env GOCACHE) -f go-cache-\$OS_NAME-\$BUILD_ENV_IMAGE_ID.tar.gz -u ${USERNAME} -p ${PASSWORD}'
sh
'. ./scripts/before-install.sh && ./scripts/update_cache.sh -l $GO_CACHE_ARTFACTORY_URL --cache_dir=\$(go env GOCACHE) -f go-cache-\$OS_NAME-\$BUILD_ENV_IMAGE_ID.tar.gz -u ${USERNAME} -p ${PASSWORD}'
sh
'. ./scripts/before-install.sh &&
unset http_proxy && unset https_proxy &&
./scripts/update_cache.sh -l $THIRDPARTY_ARTFACTORY_URL --cache_dir=$CUSTOM_THIRDPARTY_PATH -f thirdparty-download.tar.gz -u ${USERNAME} -p ${PASSWORD}'
sh
'. ./scripts/before-install.sh && ./scripts/update_cache.sh -l $THIRDPARTY_ARTFACTORY_URL --cache_dir=$CUSTOM_THIRDPARTY_PATH -f thirdparty-download.tar.gz -u ${USERNAME} -p ${PASSWORD}'
sh
'. ./scripts/before-install.sh &&
unset http_proxy && unset https_proxy &&
./scripts/update_cache.sh -l $GO_MOD_ARTFACTORY_URL --cache_dir=\$GOPATH/pkg/mod -f milvus-distributed-go-mod-\$(md5sum go.mod).tar.gz -u ${USERNAME} -p ${PASSWORD}'
sh
'. ./scripts/before-install.sh && ./scripts/update_cache.sh -l $GO_MOD_ARTFACTORY_URL --cache_dir=\$GOPATH/pkg/mod -f milvus-distributed-go-mod-\$(md5sum go.mod).tar.gz -u ${USERNAME} -p ${PASSWORD}'
}
}
}
}
build/docker/test/docker-compose.yml
浏览文件 @
e30b18a8
version
:
'
3.5'
version
:
'
3.5'
services
:
services
:
regression
:
image
:
${TARGET_REPO}/pytest:${TARGET_TAG}
build
:
context
:
../../../
dockerfile
:
build/docker/test/Dockerfile
cache_from
:
-
${SOURCE_REPO}/pytest:${SOURCE_TAG}
volumes
:
-
../../..:/milvus-distributed:delegated
working_dir
:
"
/milvus-distributed/tests/python"
command
:
>
/bin/bash -c "pytest --ip proxynode -n 4"
networks
:
-
milvus
regression_distributed
:
regression_distributed
:
image
:
${TARGET_REPO}/pytest:${TARGET_TAG}
image
:
${TARGET_REPO}/pytest:${TARGET_TAG}
build
:
build
:
...
...
scripts/before-install.sh
浏览文件 @
e30b18a8
...
@@ -7,7 +7,6 @@ export CCACHE_COMPRESSLEVEL=${CCACHE_COMPRESSLEVEL:="5"}
...
@@ -7,7 +7,6 @@ export CCACHE_COMPRESSLEVEL=${CCACHE_COMPRESSLEVEL:="5"}
export
CCACHE_COMPILERCHECK
=
${
CCACHE_COMPILERCHECK
:
=
"content"
}
export
CCACHE_COMPILERCHECK
=
${
CCACHE_COMPILERCHECK
:
=
"content"
}
export
CCACHE_MAXSIZE
=
${
CCACHE_MAXSIZE
:
=
"2G"
}
export
CCACHE_MAXSIZE
=
${
CCACHE_MAXSIZE
:
=
"2G"
}
export
CCACHE_DIR
=
${
CCACHE_DIR
:
=
"
${
HOME
}
/.ccache"
}
export
CCACHE_DIR
=
${
CCACHE_DIR
:
=
"
${
HOME
}
/.ccache"
}
export
http_proxy
=
"http://proxy.zilliz.tech:1088"
export
GOPROXY
=
"https://goproxy.cn"
export
https_proxy
=
"http://proxy.zilliz.tech:1088"
set
+ex
set
+ex
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录