Skip to content

Commit

Permalink
chore: add dmdb test (apecloud#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook authored Apr 30, 2024
1 parent 3fd743e commit 2ec1f83
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 6 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/kbcli-pre-test-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:
greptimedb|nebula|risingwave|starrocks|etcd|oceanbase|foxlake|orioledb|oracle-mysql|official-pg|asmysql|openldap|
polardbx|opensearch|elasticsearch|vllm|tdengine|milvus|clickhouse|pika|ggml|zookeeper|mariadb|tidb|xinference|
oracle|opengauss|influxdb|flink|solr|doris|halo|mogdb|oceanbase-ent|starrocks-ent|apecloud-postgresql|yashandb|
redis-cluster|camellia-redis-proxy|minio)'
redis-cluster|camellia-redis-proxy|dmdb|minio)'
type: string
required: false
default: '0'
Expand Down Expand Up @@ -862,6 +862,22 @@ jobs:
random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }}
secrets: inherit

dmdb-pre:
if: ${{ inputs.previous-version && (inputs.test-type == '' || contains(inputs.test-type, 'dmdb')) && ! contains(inputs.release-version, 'v0.5.') && ! contains(inputs.release-version, 'v0.6.') && ! contains(inputs.release-version, 'v0.7.') && ! contains(inputs.release-version, 'v0.8.') }}
needs: [ install-kubeblocks-pre ]
uses: ./.github/workflows/test-kbcli-pre.yml
with:
cloud-provider: ${{ inputs.cloud-provider }}
region: ${{ inputs.region }}
release-version: "${{ inputs.previous-version }}"
test-type: "50"
test-type-name: "dmdb-pre"
test-args: "${{ inputs.test-args }}"
k8s-cluster-name: ${{ inputs.k8s-cluster-name }}
branch-name: ${{ inputs.branch-name }}
random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }}
secrets: inherit

minio-pre:
if: ${{ inputs.previous-version && (inputs.test-type == '' || contains(inputs.test-type, 'minio')) && ! contains(inputs.release-version, 'v0.5.') && ! contains(inputs.release-version, 'v0.6.') && ! contains(inputs.release-version, 'v0.7.') && ! contains(inputs.release-version, 'v0.8.') }}
needs: [ install-kubeblocks-pre ]
Expand Down Expand Up @@ -891,7 +907,7 @@ jobs:
zookeeper-pre, mariadb-pre , tidb-pre, xinference-pre, oracle-pre,
opengauss-pre, influxdb-pre, flink-pre, solr-pre, doris-pre, halo-pre,
mogdb-pre, oceanbase-ent-pre, starrocks-ent-pre, apecloud-postgresql-pre,
yashandb-pre, redis-cluster-pre, camellia-redis-proxy-pre, minio-pre]
yashandb-pre, redis-cluster-pre, camellia-redis-proxy-pre, dmdb-pre, minio-pre]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -1074,6 +1090,10 @@ jobs:
TEST_RESULT="${TEST_RESULT}##camellia-redis-proxy-pre|${{ needs.camellia-redis-proxy-pre.outputs.test-result }}"
fi
if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"dmdb"* ]]; then
TEST_RESULT="${TEST_RESULT}##dmdb-pre|${{ needs.dmdb-pre.outputs.test-result }}"
fi
if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"minio"* ]]; then
TEST_RESULT="${TEST_RESULT}##minio-pre|${{ needs.minio-pre.outputs.test-result }}"
fi
Expand Down
25 changes: 23 additions & 2 deletions .github/workflows/kbcli-test-k3s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
greptimedb|nebula|risingwave|starrocks|etcd|foxlake|orioledb|oracle-mysql|official-pg|asmysql|openldap|
opensearch|elasticsearch|vllm|tdengine|milvus|clickhouse|pika|ggml|zookeeper|mariadb|tidb|xinference|
oracle|opengauss|influxdb|flink|solr|doris|halo|mogdb|starrocks-ent|apecloud-postgresql|yashandb|polardbx|
redis-cluster|camellia-redis-proxy|minio)'
redis-cluster|camellia-redis-proxy|dmdb|minio)'
type: string
required: false
default: ''
Expand Down Expand Up @@ -742,6 +742,20 @@ jobs:
k3s-version: ${{ inputs.CLUSTER_VERSION }}
secrets: inherit

test-dmdb:
if: ${{ needs.enable-gke-runner.result == 'success' && always() && (inputs.TEST_TYPE == '' || contains(inputs.TEST_TYPE, 'dmdb')) && ! contains(inputs.KB_VERSION, 'v0.5.') && ! contains(inputs.KB_VERSION, 'v0.6.') && ! contains(inputs.KB_VERSION, 'v0.7.') && ! contains(inputs.KB_VERSION, 'v0.8.') }}
needs: [ enable-gke-runner ]
uses: ./.github/workflows/test-kbcli-k3s.yml
with:
release-version: "${{ inputs.KB_VERSION }}"
previous-version: "${{ inputs.KB_PRE_VERSION }}"
test-type: "50"
test-type-name: "dmdb"
test-args: "${{ inputs.ARGS }}"
branch-name: ${{ inputs.BRANCH_NAME }}
k3s-version: ${{ inputs.CLUSTER_VERSION }}
secrets: inherit

test-minio:
if: ${{ needs.enable-gke-runner.result == 'success' && always() && (inputs.TEST_TYPE == '' || contains(inputs.TEST_TYPE, 'minio')) && ! contains(inputs.KB_VERSION, 'v0.5.') && ! contains(inputs.KB_VERSION, 'v0.6.') && ! contains(inputs.KB_VERSION, 'v0.7.') && ! contains(inputs.KB_VERSION, 'v0.8.') }}
needs: [ enable-gke-runner ]
Expand All @@ -766,7 +780,7 @@ jobs:
test-vllm, test-tdengine, test-orioledb, test-official-pg, test-ggml, test-zookeeper,
test-mariadb, test-tidb, test-xinference, test-oracle, test-opengauss, test-influxdb,
test-flink, test-solr, test-doris, test-halo, test-mogdb, test-starrocks-ent, test-apecloud-postgresql,
test-yashandb, test-polardbx, test-redis-cluster, test-camellia-redis-proxy, test-minio]
test-yashandb, test-polardbx, test-redis-cluster, test-camellia-redis-proxy, test-dmdb, test-minio]
steps:
- name: Checkout apecloud-cd Code
uses: actions/checkout@v4
Expand Down Expand Up @@ -973,6 +987,10 @@ jobs:
TEST_RESULT="${TEST_RESULT}##polardbx|${{ needs.test-polardbx.outputs.pre-test-result }}"
fi
if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"dmdb"* ]]; then
TEST_RESULT="${TEST_RESULT}##dmdb|${{ needs.test-dmdb.outputs.pre-test-result }}"
fi
if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"minio"* ]]; then
TEST_RESULT="${TEST_RESULT}##minio|${{ needs.test-minio.outputs.pre-test-result }}"
fi
Expand Down Expand Up @@ -1188,6 +1206,9 @@ jobs:
TEST_RESULT="${TEST_RESULT}##polardbx|${{ needs.test-polardbx.outputs.test-result }}"
fi
if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"dmdb"* ]]; then
TEST_RESULT="${TEST_RESULT}##dmdb|${{ needs.test-dmdb.outputs.test-result }}"
fi
if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"minio"* ]]; then
TEST_RESULT="${TEST_RESULT}##minio|${{ needs.test-minio.outputs.test-result }}"
fi
Expand Down
25 changes: 23 additions & 2 deletions .github/workflows/kbcli-test-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
greptimedb|nebula|risingwave|starrocks|etcd|oceanbase|foxlake|orioledb|oracle-mysql|official-pg|asmysql|openldap|
polardbx|opensearch|elasticsearch|vllm|tdengine|milvus|clickhouse|pika|ggml|zookeeper|mariadb|tidb|xinference|
oracle|opengauss|influxdb|flink|solr|doris|halo|mogdb|oceanbase-ent|starrocks-ent|apecloud-postgresql|yashandb|
redis-cluster|camellia-redis-proxy|minio)'
redis-cluster|camellia-redis-proxy|dmdb|minio)'
type: string
required: false
default: ''
Expand Down Expand Up @@ -985,6 +985,23 @@ jobs:
random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }}
secrets: inherit

test-dmdb:
if: ${{ needs.terraform-init-k8s.result == 'success' && always() && (inputs.TEST_TYPE == '' || contains(inputs.TEST_TYPE, 'dmdb')) && ! contains(inputs.KB_VERSION, 'v0.5.') && ! contains(inputs.KB_VERSION, 'v0.6.') && ! contains(inputs.KB_VERSION, 'v0.7.') }}
needs: [ terraform-init-k8s, test-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: "50"
test-type-name: "dmdb"
test-args: "${{ inputs.ARGS }}"
k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }}
branch-name: ${{ inputs.BRANCH_NAME }}
random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }}
secrets: inherit

test-minio:
if: ${{ needs.terraform-init-k8s.result == 'success' && always() && (inputs.TEST_TYPE == '' || contains(inputs.TEST_TYPE, 'minio')) && ! contains(inputs.KB_VERSION, 'v0.5.') && ! contains(inputs.KB_VERSION, 'v0.6.') && ! contains(inputs.KB_VERSION, 'v0.7.') }}
needs: [ terraform-init-k8s, test-kubeblocks ]
Expand Down Expand Up @@ -1015,7 +1032,7 @@ jobs:
test-xinference, test-oracle , test-opengauss, test-influxdb, test-flink,
test-solr, test-doris , test-halo, test-mogdb, test-oceanbase-ent, test-starrocks-ent,
test-apecloud-postgresql, test-yashandb, test-redis-cluster, test-camellia-redis-proxy,
test-minio ]
test-dmdb, test-minio ]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -1231,6 +1248,10 @@ jobs:
TEST_RESULT="${TEST_RESULT}##yashandb|${{ needs.test-yashandb.outputs.test-result }}"
fi
if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"dmdb"* ]]; then
TEST_RESULT="${TEST_RESULT}##dmdb|${{ needs.test-dmdb.outputs.test-result }}"
fi
if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"minio"* ]]; then
TEST_RESULT="${TEST_RESULT}##minio|${{ needs.test-minio.outputs.test-result }}"
fi
Expand Down

0 comments on commit 2ec1f83

Please sign in to comment.