Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add damengdb and kingbase test workflow #467

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 70 additions & 6 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|official-pg|asmysql|openldap|
polardbx|opensearch|elasticsearch|vllm|tdengine|milvus|clickhouse|pika|ggml|zookeeper|mariadb|tidb|xinference|
oracle|opengauss|influxdb|flink|solr|halo|mogdb|oceanbase-ent|starrocks-ent|apecloud-postgresql|yashandb|
redis-cluster|camellia-redis-proxy|dmdb|minio|orchestrator)'
redis-cluster|camellia-redis-proxy|dmdb|minio|orchestrator|rabbitmq|damengdb|kingbase)'
type: string
required: false
default: '0'
Expand Down Expand Up @@ -934,6 +934,57 @@ jobs:
random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }}
secrets: inherit

rabbitmq-pre:
if: ${{ inputs.previous-version && (inputs.test-type == '' || contains(inputs.test-type, 'rabbitmq')) && ! 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: "53"
test-type-name: "rabbitmq-pre"
test-args: "${{ inputs.test-args }}"
k8s-cluster-name: ${{ inputs.k8s-cluster-name }}
artifact-name: ${{ inputs.artifact-name }}
branch-name: ${{ inputs.branch-name }}
random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }}
secrets: inherit

damengdb-pre:
if: ${{ inputs.previous-version && (inputs.test-type == '' || contains(inputs.test-type, 'damengdb')) && ! 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: "57"
test-type-name: "damengdb-pre"
test-args: "${{ inputs.test-args }}"
k8s-cluster-name: ${{ inputs.k8s-cluster-name }}
artifact-name: ${{ inputs.artifact-name }}
branch-name: ${{ inputs.branch-name }}
random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }}
secrets: inherit

kingbase-pre:
if: ${{ inputs.previous-version && (inputs.test-type == '' || contains(inputs.test-type, 'kingbase')) && ! 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: "58"
test-type-name: "kingbase-pre"
test-args: "${{ inputs.test-args }}"
k8s-cluster-name: ${{ inputs.k8s-cluster-name }}
artifact-name: ${{ inputs.artifact-name }}
branch-name: ${{ inputs.branch-name }}
random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }}
secrets: inherit

send-message:
if: ${{ inputs.previous-version && always() }}
runs-on: ubuntu-latest
Expand All @@ -947,7 +998,8 @@ jobs:
zookeeper-pre, mariadb-pre , tidb-pre, xinference-pre, oracle-pre,
opengauss-pre, influxdb-pre, flink-pre, solr-pre, halo-pre,
mogdb-pre, oceanbase-ent-pre, starrocks-ent-pre, apecloud-postgresql-pre,
yashandb-pre, redis-cluster-pre, camellia-redis-proxy-pre, dmdb-pre, minio-pre, orchestrator-pre ]
yashandb-pre, redis-cluster-pre, camellia-redis-proxy-pre, dmdb-pre, minio-pre,
orchestrator-pre, rabbitmq-pre, damengdb-pre, kingbase-pre ]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -1133,10 +1185,6 @@ jobs:
if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"minio"* ]]; then
TEST_RESULT="${TEST_RESULT}##minio-pre|${{ needs.minio-pre.outputs.test-result }}"
fi

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

if [[ "${{ inputs.release-version }}" != "v0.5."* && "${{ inputs.release-version }}" != "v0.6."* && "${{ inputs.release-version }}" != "v0.7."* && "${{ inputs.release-version }}" != "v0.8."* ]]; then
Expand All @@ -1163,6 +1211,22 @@ jobs:
if [[ "${{ inputs.TEST_TYPE }}" == '' || "${{ inputs.TEST_TYPE }}" == *"yashandb"* ]]; then
TEST_RESULT="${TEST_RESULT}##yashandb-pre|${{ needs.yashandb-pre.outputs.test-result }}"
fi

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

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

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

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

TEST_RESULT=$( bash .github/utils/utils.sh --type 12 \
Expand Down
76 changes: 74 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|official-pg|asmysql|openldap|
polardbx|opensearch|elasticsearch|vllm|tdengine|milvus|clickhouse|pika|ggml|zookeeper|mariadb|tidb|xinference|
oracle|opengauss|influxdb|flink|solr|mogdb|oceanbase-ent|starrocks-ent|apecloud-postgresql|yashandb|
redis-cluster|camellia-redis-proxy|dmdb|minio|orchestrator)'
redis-cluster|camellia-redis-proxy|dmdb|minio|orchestrator|rabbitmq|damengdb|kingbase)'
type: string
required: false
default: ''
Expand Down Expand Up @@ -1053,6 +1053,60 @@ jobs:
random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }}
secrets: inherit

test-rabbitmq:
if: ${{ needs.terraform-init-k8s.result == 'success' && always() && (inputs.TEST_TYPE == '' || contains(inputs.TEST_TYPE, 'rabbitmq')) && ! 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: [ 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: "53"
test-type-name: "rabbitmq"
test-args: "${{ inputs.ARGS }}"
k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }}
artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }}
branch-name: ${{ inputs.BRANCH_NAME }}
random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }}
secrets: inherit

test-damengdb:
if: ${{ needs.terraform-init-k8s.result == 'success' && always() && (inputs.TEST_TYPE == '' || contains(inputs.TEST_TYPE, 'damengdb')) && ! 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: [ 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: "57"
test-type-name: "damengdb"
test-args: "${{ inputs.ARGS }}"
k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }}
artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }}
branch-name: ${{ inputs.BRANCH_NAME }}
random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }}
secrets: inherit

test-kingbase:
if: ${{ needs.terraform-init-k8s.result == 'success' && always() && (inputs.TEST_TYPE == '' || contains(inputs.TEST_TYPE, 'kingbase')) && ! 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: [ 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: "58"
test-type-name: "kingbase"
test-args: "${{ inputs.ARGS }}"
k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }}
artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }}
branch-name: ${{ inputs.BRANCH_NAME }}
random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }}
secrets: inherit

send-message:
if: ${{ always() }}
runs-on: ubuntu-latest
Expand All @@ -1066,7 +1120,7 @@ jobs:
test-xinference, test-oracle , test-opengauss, test-influxdb, test-flink,
test-solr, test-mogdb, test-oceanbase-ent, test-starrocks-ent,
test-apecloud-postgresql, test-yashandb, test-redis-cluster, test-camellia-redis-proxy,
test-dmdb, test-minio, test-orchestrator ]
test-dmdb, test-minio, test-orchestrator, test-rabbitmq, test-damengdb, test-kingbase ]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -1382,6 +1436,24 @@ jobs:
echo "${{ needs.test-orchestrator.outputs.test-result-report }}" >> ${test_result_report_output_file_log}
echo "" >> ${test_result_report_output_file_log}
fi

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

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

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

if [[ -f ${test_result_report_output_file_log} ]]; then
Expand Down