enable hive stateful tests
@@ -12,26 +12,26 @@ inputs:
runs:
using: "composite"
steps:
-# - name: Maximize build space
-# uses: ./.github/actions/cleanup
-#
-# - name: Setup Build Tool
-# uses: ./.github/actions/setup_build_tool
-# with:
-# image: multiarch
-#
-# # If you need to reset the cache version, increment the number after `v`
-# - uses: Swatinem/rust-cache@v1
-# with:
-# sharedKey: debug-hive-${{ inputs.target }}-v2
-#
-# # for the time being, only databend-query is needed
-# - shell: bash
-# run: cargo build --bin databend-query --features hive
-#
-# # for cache
-# - shell: bash
-# run: cargo metadata --all-features --format-version 1 > ./target/metadata.json
+ - name: Maximize build space
+ uses: ./.github/actions/cleanup
+
+ - name: Setup Build Tool
+ uses: ./.github/actions/setup_build_tool
+ with:
+ image: multiarch
+
+ # If you need to reset the cache version, increment the number after `v`
+ - uses: Swatinem/rust-cache@v1
+ with:
+ sharedKey: debug-hive-${{ inputs.target }}-v2
+
+ # for the time being, only databend-query is needed
+ - shell: bash
+ run: cargo build --bin databend-query --features hive
+
+ # for cache
+ - shell: bash
+ run: cargo metadata --all-features --format-version 1 > ./target/metadata.json
# hive cluster setup
- name: Hive Cluster Setup
@@ -45,7 +45,9 @@ runs:
docker-compose -f "./docker/it-hive/hive-docker-compose.yml" up -d
# Wait for h2 to come alive
- # INSIDE the container of service "hive-server", wait for port 1000 being listened
+ # INSIDE the container of service "hive-server", wait for port 10000 being listened:
+ # - check if port 10000 is available, per sec
+ # - failed if not available during 50s (typically, service will be brought up in about 30s, in github)
- name: Wait for hiveserver2
shell: bash
run: |
@@ -57,10 +59,10 @@ runs:
run: |
docker-compose -f "./docker/it-hive/hive-docker-compose.yml" exec -T hive-server bash -c "/opt/hive/bin/beeline -u jdbc:hive2://127.0.0.1:10000 -e 'CREATE TABLE if not exists pokes (foo INT);'"
-# - name: Run Stateful Tests with Standalone mode
-# shell: bash
-# run: |
-# bash ./scripts/ci/ci-run-stateful-hive-tests-standalone-embed-meta.sh
+ - name: Run Stateful Tests with Standalone mode
+ shell: bash
+ run: |
+ bash ./scripts/ci/ci-run-stateful-hive-tests-standalone-embed-meta.sh
- name: Stop containers
if: always()
