Skip to content

Commit

Permalink
chore: test clickhouse
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook committed Oct 10, 2023
1 parent b4b16d9 commit 30ce56d
Showing 1 changed file with 42 additions and 21 deletions.
63 changes: 42 additions & 21 deletions .github/workflows/kbcli-test-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
required: false
default: ''
TEST_TYPE:
description: 'test type (e.g. apecloud-mysql|postgres|redis|mongo|kafka|pulsar|weaviate|qdrant|smarte|scale|greptimedb|nebula|risingwave|starrocks|oceanbase|foxlake|oracle-mysql|asmysql|openldap|polardbx)'
description: 'test type (e.g. apecloud-mysql|postgres|redis|mongo|kafka|pulsar|weaviate|qdrant|smarte|scale|greptimedb|nebula|risingwave|starrocks|oceanbase|foxlake|oracle-mysql|asmysql|openldap|polardbx|clickhouse)'
type: string
required: false
default: ''
Expand Down Expand Up @@ -403,22 +403,22 @@ jobs:
random-suffix: ${{ needs.install-kubeblocks.outputs.random-suffix }}
secrets: inherit

test-foxlake:
if: ${{ needs.terraform-init-k8s.result == 'success' && always() && (inputs.TEST_TYPE == '' || contains(inputs.TEST_TYPE, 'foxlake')) && ! contains(inputs.KB_VERSION, 'v0.5.') && ! contains(inputs.KB_VERSION, 'v0.6.') }}
needs: [ terraform-init-k8s, install-kubeblocks ]
uses: ./.github/workflows/test-kbcli.yml
with:
cloud-provider: ${{ inputs.CLOUD_PROVIDER }}
region: ${{ inputs.REGION }}
release-version: "${{ inputs.KB_VERSION }}"
previous-version: "${{ inputs.KB_PRE_VERSION }}"
test-type: "17"
test-type-name: "foxlake"
test-args: "${{ inputs.ARGS }}"
k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }}
branch-name: ${{ inputs.BRANCH_NAME }}
random-suffix: ${{ needs.install-kubeblocks.outputs.random-suffix }}
secrets: inherit
# test-foxlake:
# if: ${{ needs.terraform-init-k8s.result == 'success' && always() && (inputs.TEST_TYPE == '' || contains(inputs.TEST_TYPE, 'foxlake')) && ! contains(inputs.KB_VERSION, 'v0.5.') && ! contains(inputs.KB_VERSION, 'v0.6.') }}
# needs: [ terraform-init-k8s, install-kubeblocks ]
# uses: ./.github/workflows/test-kbcli.yml
# with:
# cloud-provider: ${{ inputs.CLOUD_PROVIDER }}
# region: ${{ inputs.REGION }}
# release-version: "${{ inputs.KB_VERSION }}"
# previous-version: "${{ inputs.KB_PRE_VERSION }}"
# test-type: "17"
# test-type-name: "foxlake"
# test-args: "${{ inputs.ARGS }}"
# k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }}
# branch-name: ${{ inputs.BRANCH_NAME }}
# random-suffix: ${{ needs.install-kubeblocks.outputs.random-suffix }}
# secrets: inherit

test-oracle-mysql:
if: ${{ needs.terraform-init-k8s.result == 'success' && always() && (inputs.TEST_TYPE == '' || contains(inputs.TEST_TYPE, 'oracle-mysql')) && ! contains(inputs.KB_VERSION, 'v0.5.') && ! contains(inputs.KB_VERSION, 'v0.6.') }}
Expand Down Expand Up @@ -488,10 +488,27 @@ jobs:
random-suffix: ${{ needs.install-kubeblocks.outputs.random-suffix }}
secrets: inherit

test-clickhouse:
if: ${{ needs.terraform-init-k8s.result == 'success' && always() && (inputs.TEST_TYPE == '' || contains(inputs.TEST_TYPE, 'clickhouse')) && ! contains(inputs.KB_VERSION, 'v0.5.') && ! contains(inputs.KB_VERSION, 'v0.6.') }}
needs: [ terraform-init-k8s, install-kubeblocks ]
uses: ./.github/workflows/test-kbcli.yml
with:
cloud-provider: ${{ inputs.CLOUD_PROVIDER }}
region: ${{ inputs.REGION }}
release-version: "${{ inputs.KB_VERSION }}"
previous-version: "${{ inputs.KB_PRE_VERSION }}"
test-type: "29"
test-type-name: "clickhouse"
test-args: "${{ inputs.ARGS }}"
k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }}
branch-name: ${{ inputs.BRANCH_NAME }}
random-suffix: ${{ needs.install-kubeblocks.outputs.random-suffix }}
secrets: inherit

send-message:
if: ${{ always() }}
runs-on: ubuntu-latest
needs: [ test-playground, install-kubeblocks, test-apecloud-mysql, test-postgresql, test-redis, test-mongodb, test-kafka, test-pulsar, test-mysqlscale, test-weaviate, test-qdrant, test-smartengine, test-greptimedb, test-nebula, test-risingwave, test-starrocks, test-oceanbase, test-foxlake, test-oracle-mysql, test-asmysql, test-openldap, test-polardbx ]
needs: [ test-playground, install-kubeblocks, test-apecloud-mysql, test-postgresql, test-redis, test-mongodb, test-kafka, test-pulsar, test-mysqlscale, test-weaviate, test-qdrant, test-smartengine, test-greptimedb, test-nebula, test-risingwave, test-starrocks, test-oceanbase, test-oracle-mysql, test-asmysql, test-openldap, test-polardbx, test-clickhouse ]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -566,9 +583,9 @@ jobs:
TEST_RESULT="${TEST_RESULT}##oceanbase|${{ needs.test-oceanbase.outputs.test-result }}"
fi
if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"foxlake"* ]]; then
TEST_RESULT="${TEST_RESULT}##foxlake|${{ needs.test-foxlake.outputs.test-result }}"
fi
# if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"foxlake"* ]]; then
# TEST_RESULT="${TEST_RESULT}##foxlake|${{ needs.test-foxlake.outputs.test-result }}"
# fi

if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"oracle-mysql"* ]]; then
TEST_RESULT="${TEST_RESULT}##oracle-mysql|${{ needs.test-oracle-mysql.outputs.test-result }}"
Expand All @@ -585,6 +602,10 @@ jobs:
if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"polardbx"* ]]; then
TEST_RESULT="${TEST_RESULT}##polardbx|${{ needs.test-polardbx.outputs.test-result }}"
fi

if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"clickhouse"* ]]; then
TEST_RESULT="${TEST_RESULT}##clickhouse|${{ needs.test-clickhouse.outputs.test-result }}"
fi
fi

TEST_RESULT=$( bash .github/utils/utils.sh --type 12 \
Expand Down

0 comments on commit 30ce56d

Please sign in to comment.