From 01a9541e651f39b54a96157c6304d6f9940e626b Mon Sep 17 00:00:00 2001 From: Congqi Xia Date: Tue, 9 Jan 2024 14:18:49 +0800 Subject: [PATCH] enhance: add nightly-ci for v2.3.x branch Signed-off-by: Congqi Xia --- .github/workflows/nightly_ci.yml | 58 ++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/.github/workflows/nightly_ci.yml b/.github/workflows/nightly_ci.yml index 787a5f54..e252893a 100644 --- a/.github/workflows/nightly_ci.yml +++ b/.github/workflows/nightly_ci.yml @@ -72,6 +72,64 @@ jobs: curl -sSL "https://github.com/gotestyourself/gotestsum/releases/download/v1.8.2/gotestsum_1.8.2_linux_amd64.tar.gz" | sudo tar -xz -C /usr/local/bin gotestsum gotestsum --format testname --hide-summary=output ./testcases/... --tags L0,L1,L2,L3 --addr=127.0.0.1:19530 -timeout=60m + nightly-v2_3_x: + name: Run Nightly CI(v2.3.x) + runs-on: ubuntu-latest + timeout-minutes: 90 + env: + IMAGE_REPO: "milvusdb/milvus" + TAG_PREFIX: "2.3-" + RELEASE_NAME: "go-test" + IMAGE_TAG: "2.3-latest" + QA_NAMESPACE: "qa" + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + ref: "v2.3.x" + fetch-depth: '0' + + - name: Get the latest of Milvus dev image tag + shell: bash + id: extracter + working-directory: ci/scripts + run: | + echo "IMAGE_TAG=$(./docker_image_find_tag.sh -n ${IMAGE_REPO} -t ${TAG_PREFIX}latest -f ${TAG_PREFIX} -F -L -q)" >> $GITHUB_ENV + # echo "::set-output name=tag::$(./docker_image_find_tag.sh -n ${IMAGE_REPO}/milvus-dev -t ${TAG_PREFIX}latest -f ${TAG_PREFIX} -F -L -q)" + + - name: Create cluster + uses: helm/kind-action@v1.3.0 + + - name: Deploy milvus operator + shell: bash + run: | + kubectl get sc + helm install milvus-operator -n milvus-operator --create-namespace https://github.com/milvus-io/milvus-operator/releases/download/v0.6.9/milvus-operator-0.6.9.tgz + kubectl --timeout 20m wait --for=condition=ready pod -l app.kubernetes.io/instance=milvus-operator -n milvus-operator + kubectl get pods -n milvus-operator + + - name: Install Milvus + shell: bash + working-directory: "ci/milvus-operator" + run: | + echo "IMAGE_REPO=$IMAGE_REPO, IMAGE_TAG=$IMAGE_TAG, RELEASE_NAME=$RELEASE_NAME" + kubectl create namespace ${QA_NAMESPACE} + envsubst < milvus-nightly.yaml | cat - | kubectl apply -f - -n ${QA_NAMESPACE} + kubectl -n ${QA_NAMESPACE} wait --for=condition=MilvusReady milvus/${RELEASE_NAME} --timeout 20m + kubectl --timeout 20m wait --for=condition=ready pod -l app.kubernetes.io/instance=${RELEASE_NAME} -n ${QA_NAMESPACE} + kubectl describe milvus ${RELEASE_NAME} -n ${QA_NAMESPACE} + kubectl get pod -o wide -n ${QA_NAMESPACE} | grep -E "NAME|${RELEASE_NAME}" + kubectl get svc -n ${QA_NAMESPACE} + kubectl port-forward service/${RELEASE_NAME}-milvus 19530 -n ${QA_NAMESPACE} >/dev/null 2>&1 & sleep 10s + + - name: Run Ci Test + shell: bash + working-directory: test/ + run: | + nc -vz 127.0.0.1 19530 + curl -sSL "https://github.com/gotestyourself/gotestsum/releases/download/v1.8.2/gotestsum_1.8.2_linux_amd64.tar.gz" | sudo tar -xz -C /usr/local/bin gotestsum + gotestsum --format testname --hide-summary=output ./testcases/... --tags L0,L1,L2,L3 --addr=127.0.0.1:19530 -timeout=60m + nightly-v2_2_x: name: Run Nightly CI(v2.2.x) runs-on: ubuntu-latest