Skip to content

Commit eaf2d2b

Browse files
authored
chore: add hadoop and hive test (#636)
1 parent ddd9e68 commit eaf2d2b

File tree

1 file changed

+48
-2
lines changed

1 file changed

+48
-2
lines changed

.github/workflows/kbcli-test-k8s.yml

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
polardbx|opensearch|elasticsearch|vllm|tdengine|milvus|clickhouse|pika|ggml|zookeeper|mariadb|tidb|xinference|
2323
oracle|opengauss|influxdb|flink|solr|doris|mogdb|oceanbase-ent|starrocks-ent|yashandb|
2424
redis-cluster|dmdb|minio|orchestrator|rabbitmq|loki|victoria-metrics|gaussdb|damengdb|
25-
kingbase|vastbase|mssql|rocketmq|goldendb|tdsql|greatsql|greatdb)'
25+
kingbase|vastbase|mssql|rocketmq|goldendb|tdsql|greatsql|greatdb|hadoop|hive)'
2626
type: string
2727
required: false
2828
default: ''
@@ -1293,6 +1293,42 @@ jobs:
12931293
random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }}
12941294
secrets: inherit
12951295

1296+
test-hadoop:
1297+
if: ${{ needs.terraform-init-k8s.result == 'success' && always() && (inputs.TEST_TYPE == '' || contains(inputs.TEST_TYPE, 'hadoop')) && ! contains(inputs.KB_VERSION, 'v0.5.') && ! contains(inputs.KB_VERSION, 'v0.6.') && ! contains(inputs.KB_VERSION, 'v0.7.') && ! contains(inputs.KB_VERSION, 'v0.8.') && ! contains(inputs.KB_VERSION, 'v0.9.') }}
1298+
needs: [ terraform-init-k8s, test-kubeblocks ]
1299+
uses: ./.github/workflows/test-kbcli.yml
1300+
with:
1301+
cloud-provider: ${{ inputs.CLOUD_PROVIDER }}
1302+
region: ${{ inputs.REGION }}
1303+
release-version: "${{ inputs.KB_VERSION }}"
1304+
previous-version: "${{ inputs.KB_PRE_VERSION }}"
1305+
test-type: "68"
1306+
test-type-name: "hadoop"
1307+
test-args: "${{ inputs.ARGS }}"
1308+
k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }}
1309+
artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }}
1310+
branch-name: ${{ inputs.BRANCH_NAME }}
1311+
random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }}
1312+
secrets: inherit
1313+
1314+
test-hive:
1315+
if: ${{ needs.terraform-init-k8s.result == 'success' && always() && (inputs.TEST_TYPE == '' || contains(inputs.TEST_TYPE, 'hive')) && ! contains(inputs.KB_VERSION, 'v0.5.') && ! contains(inputs.KB_VERSION, 'v0.6.') && ! contains(inputs.KB_VERSION, 'v0.7.') && ! contains(inputs.KB_VERSION, 'v0.8.') && ! contains(inputs.KB_VERSION, 'v0.9.') }}
1316+
needs: [ terraform-init-k8s, test-kubeblocks ]
1317+
uses: ./.github/workflows/test-kbcli.yml
1318+
with:
1319+
cloud-provider: ${{ inputs.CLOUD_PROVIDER }}
1320+
region: ${{ inputs.REGION }}
1321+
release-version: "${{ inputs.KB_VERSION }}"
1322+
previous-version: "${{ inputs.KB_PRE_VERSION }}"
1323+
test-type: "69"
1324+
test-type-name: "hive"
1325+
test-args: "${{ inputs.ARGS }}"
1326+
k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }}
1327+
artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }}
1328+
branch-name: ${{ inputs.BRANCH_NAME }}
1329+
random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }}
1330+
secrets: inherit
1331+
12961332
send-message:
12971333
if: ${{ always() }}
12981334
runs-on: ubuntu-latest
@@ -1311,7 +1347,7 @@ jobs:
13111347
test-yashandb, test-redis-cluster, test-dmdb, test-minio, test-orchestrator,
13121348
test-rabbitmq, test-loki, test-victoria-metrics, test-gaussdb, test-damengdb,
13131349
test-kingbase, test-vastbase, test-mssql, test-rocketmq, test-goldendb,
1314-
test-tdsql, test-greatsql, test-greatdb ]
1350+
test-tdsql, test-greatsql, test-greatdb, test-hadoop, test-hive ]
13151351
steps:
13161352
- uses: actions/checkout@v4
13171353
with:
@@ -1649,6 +1685,16 @@ jobs:
16491685
cmd="${cmd_head} \"${{ needs.test-asmysql-orc-proxy.outputs.test-result-report }}\" "
16501686
eval "$cmd"
16511687
fi
1688+
if [[ "$TEST_TYPE" == '' || "$TEST_TYPE" == *"hadoop"* ]]; then
1689+
TEST_RESULT="${TEST_RESULT}##hadoop|${{ needs.test-hadoop.outputs.test-result }}"
1690+
cmd="${cmd_head} \"${{ needs.test-hadoop.outputs.test-result-report }}\" "
1691+
eval "$cmd"
1692+
fi
1693+
if [[ "$TEST_TYPE" == '' || "$TEST_TYPE" == *"hive"* ]]; then
1694+
TEST_RESULT="${TEST_RESULT}##hive|${{ needs.test-hive.outputs.test-result }}"
1695+
cmd="${cmd_head} \"${{ needs.test-hive.outputs.test-result-report }}\" "
1696+
eval "$cmd"
1697+
fi
16521698
fi
16531699
16541700
TEST_RESULT=$( bash .github/utils/utils.sh --type 12 \

0 commit comments

Comments
 (0)