mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
Bumped KinD version to v0.11.1 for CI (#6717)
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
This commit is contained in:
parent
9aa56cd7b8
commit
806d13f5b2
33
.github/workflows/publish-krte-images.yaml
vendored
33
.github/workflows/publish-krte-images.yaml
vendored
@ -45,3 +45,36 @@ jobs:
|
||||
export TAG=${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }}
|
||||
docker push "milvusdb/krte:$TAG"
|
||||
echo "Push krte image Succeeded"
|
||||
- name: Update KRTE Image Changes
|
||||
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
|
||||
continue-on-error: true
|
||||
shell: bash
|
||||
working-directory: build/ci/jenkins/pod
|
||||
run: |
|
||||
export TAG=${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }}
|
||||
sed -i "s#image: .*#image: milvusdb/krte:$TAG#g" krte.yaml
|
||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git add krte.yaml
|
||||
git commit -m "Update KRTE image changes"
|
||||
- name: Create Pull Request
|
||||
id: cpr
|
||||
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
|
||||
continue-on-error: true
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
with:
|
||||
token: ${{ secrets.ALL_CONTRIBUTORS_TOKEN }}
|
||||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
||||
signoff: false
|
||||
branch: update_krte_${{ github.sha }}
|
||||
delete-branch: true
|
||||
title: '[automated] Update KRTE image changes'
|
||||
body: |
|
||||
Update KRTE image changes
|
||||
|
||||
Signed-off-by: ${{ github.actor }} ${{ github.actor }}@users.noreply.github.com
|
||||
- name: Check outputs
|
||||
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
|
||||
run: |
|
||||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
||||
|
@ -18,6 +18,7 @@ spec:
|
||||
args: ["cat"]
|
||||
resources:
|
||||
limits:
|
||||
cpu: "6"
|
||||
memory: 14Gi
|
||||
ephemeral-storage: "30Gi"
|
||||
requests:
|
||||
|
@ -14,7 +14,7 @@ ARG GO_VERSION
|
||||
ENV KRTE_IMAGE=${IMAGE_ARG} \
|
||||
GOPATH=/home/go \
|
||||
PATH=/home/go/bin:/usr/local/go/bin:${PATH} \
|
||||
KIND_VERSION=0.10.0 \
|
||||
KIND_VERSION=0.11.1 \
|
||||
DOCKER_COMPOSE_VERSION=1.29.1 \
|
||||
CONTAINER=docker
|
||||
|
||||
|
@ -213,7 +213,7 @@ fi
|
||||
|
||||
if [[ ! -x "$(command -v kind)" ]]; then
|
||||
KIND_DIR="${KIND_DIR:-"${HOME}/tool_cache/kind"}"
|
||||
KIND_VERSION="v0.10.0"
|
||||
KIND_VERSION="v0.11.1"
|
||||
|
||||
export PATH="${KIND_DIR}:${PATH}"
|
||||
if [[ ! -x "$(command -v kind)" ]]; then
|
||||
|
@ -68,12 +68,10 @@ pushd "${ROOT}/tests/docker"
|
||||
else
|
||||
if [[ "${MILVUS_CLIENT}" == "pymilvus" ]]; then
|
||||
export MILVUS_PYTEST_WORKSPACE="/milvus/tests/python_test"
|
||||
docker-compose run --rm pytest /bin/bash -c "python3 -m pip install --no-cache-dir -r requirements.txt && \
|
||||
pytest -n ${PARALLEL_NUM} --ip ${MILVUS_SERVICE_IP} --port ${MILVUS_SERVICE_PORT} ${@:-}"
|
||||
docker-compose run --rm pytest /bin/bash -c "pytest -n ${PARALLEL_NUM} --ip ${MILVUS_SERVICE_IP} --port ${MILVUS_SERVICE_PORT} ${@:-}"
|
||||
elif [[ "${MILVUS_CLIENT}" == "pymilvus-orm" ]]; then
|
||||
export MILVUS_PYTEST_WORKSPACE="/milvus/tests20/python_client"
|
||||
docker-compose run --rm pytest /bin/bash -c "python3 -m pip install --no-cache-dir -r requirements.txt && \
|
||||
pytest --workers ${PARALLEL_NUM} --host ${MILVUS_SERVICE_IP} --port ${MILVUS_SERVICE_PORT} \
|
||||
docker-compose run --rm pytest /bin/bash -c "pytest --workers ${PARALLEL_NUM} --host ${MILVUS_SERVICE_IP} --port ${MILVUS_SERVICE_PORT} \
|
||||
--html=\${CI_LOG_PATH}/report.html --self-contained-html ${@:-}"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user