Skip to content

Commit

Permalink
reuse hive docker container in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mchades committed Aug 30, 2024
1 parent a68e2ca commit 447a1ae
Show file tree
Hide file tree
Showing 30 changed files with 684 additions and 574 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/backend-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,33 @@ jobs:
- name: Free up disk space
run: |
dev/ci/util_free_space.sh

# - name: Setup debug Github Action
# if: ${{ contains(github.event.pull_request.labels.*.name, 'debug action') }}
# uses: csexton/debugger-action@master

- name: Setup reused hive services
run: |
free -h
docker compose -f integration-test/trino-it/docker-compose.yaml up -d hive hive_with_kerberos || true
if [ $? -ne 0 ]; then
docker compose integration-test/trino-it/docker-compose.yaml ps
docker compose integration-test/trino-it/docker-compose.yaml logs
exit 1
else
echo "Services started successfully"
fi
- name: check services status
run: |
docker compose -f integration-test/trino-it/docker-compose.yaml ps
- name: Backend Integration Test (JDK${{ matrix.java-version }}-${{ matrix.test-mode }}-${{ matrix.backend }})
id: integrationTest
run: >
./gradlew test -PskipTests -PtestMode=${{ matrix.test-mode }} -PjdkVersion=${{ matrix.java-version }} -PjdbcBackend=${{ matrix.backend }} -PskipWebITs -PskipDockerTests=false
export ACTIVE_CI=true && ./gradlew test -PskipTests -PtestMode=${{ matrix.test-mode }} -PjdkVersion=${{ matrix.java-version }} -PjdbcBackend=${{ matrix.backend }} -PskipWebITs -PskipDockerTests=false
-x :web:test -x :clients:client-python:test -x :flink-connector:test -x :spark-connector:test -x :spark-connector:spark-common:test
-x :spark-connector:spark-3.3:test -x :spark-connector:spark-3.4:test -x :spark-connector:spark-3.5:test
-x :spark-connector:spark-runtime-3.3:test -x :spark-connector:spark-runtime-3.4:test -x :spark-connector:spark-runtime-3.5:test
Expand Down
142 changes: 0 additions & 142 deletions .github/workflows/build.yml

This file was deleted.

104 changes: 0 additions & 104 deletions .github/workflows/flink-integration-test.yml

This file was deleted.

86 changes: 0 additions & 86 deletions .github/workflows/python-integration-test.yml

This file was deleted.

Loading

0 comments on commit 447a1ae

Please sign in to comment.