Add regression docker compose file

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
This commit is contained in:
quicksilver 2021-03-12 09:58:04 +08:00 committed by yefu.chen
parent 7dd531d159
commit 846f801d29
5 changed files with 17 additions and 11 deletions

View File

@ -48,7 +48,7 @@ timeout(time: 60, unit: 'MINUTES') {
container('test-env') {
try {
dir ('tests/python_test') {
sh "python3 -m pip install --no-cache-dir pymilvus-distributed==${env.PYMILVUS_VERSION}"
sh "python3 -m pip install --no-cache-dir -r requirements.txt"
sh "pytest --tags=0331 --ip ${env.HELM_RELEASE_NAME}-milvus-ha.${env.HELM_RELEASE_NAMESPACE}.svc.cluster.local"
}
} catch (exc) {

View File

@ -84,7 +84,6 @@ pipeline {
}
environment {
HELM_BRANCH = "main"
PYMILVUS_VERSION = "0.0.42"
HELM_RELEASE_NAMESPACE = "dev"
HELM_RELEASE_NAME = "${PROJECT_NAME}-${SEMVER}-${env.BUILD_NUMBER}-${REGRESSION_SERVICE_TYPE}".replaceAll("\\.", "-").replaceAll("_", "-").toLowerCase()
DEV_TEST_ARTIFACTS_PATH = "artifacts"

View File

@ -0,0 +1,15 @@
version: '3.5'
services:
regression:
image: milvusdb/pytest:latest
build:
dockerfile: Dockerfile
volumes:
- ../..:/milvus-distributed:delegated
working_dir: "/milvus-distributed/tests/python_test"
networks:
- milvus
networks:
milvus:

View File

@ -1,9 +0,0 @@
#!/bin/bash
set -e
if [ "$1" = 'start' ]; then
tail -f /dev/null
fi
exec "$@"

View File

@ -10,5 +10,6 @@ allure-pytest==2.7.0
pytest-print==0.2.1
pytest-level==0.1.1
pytest-xdist==2.2.1
pymilvus-distributed==0.0.42
pytest-rerunfailures==9.1.1
git+https://gitee.com/quicksilver/pytest-tags.git