mchades commented on code in PR #4827:
URL: https://github.com/apache/gravitino/pull/4827#discussion_r1755991259
##########
.github/workflows/backend-integration-test-action.yml:
##########
@@ -0,0 +1,77 @@
+name: Backend Integration Test Action
+
+# run backend integration test
+on:
+ workflow_call:
+ inputs:
+ architecture:
+ required: true
+ description: 'Architecture of the platform'
+ type: string
+ java-version:
+ required: true
+ description: 'Java version'
+ type: string
+ backend:
+ required: true
+ description: 'Backend storage for Gravitino'
+ type: string
+ test-mode:
+ required: true
+ description: 'run on embedded or deploy mode'
+ type: string
+
+jobs:
+ start-runner:
+ name: JDK${{ inputs.java-version }}-${{ inputs.test-mode }}-${{
inputs.backend }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 90
+ env:
+ PLATFORM: ${{ inputs.architecture }}
+ steps:
+ - uses: actions/checkout@v3
+
+ - uses: actions/setup-java@v4
+ with:
+ java-version: ${{ inputs.java-version }}
+ distribution: 'temurin'
+ cache: 'gradle'
+
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v2
+
+ - name: Check required command
+ run: |
+ dev/ci/check_commands.sh
+
+ - name: Package Gravitino
+ if: ${{ inputs.test-mode == 'deploy' }}
+ run: |
+ ./gradlew compileDistribution -x test -PjdkVersion=${{
inputs.java-version }}
+
+ - name: Free up disk space
+ run: |
+ dev/ci/util_free_space.sh
+
+ - name: Backend Integration Test (JDK${{ inputs.java-version }}-${{
inputs.test-mode }}-${{ inputs.backend }})
+ id: integrationTest
+ run: >
+ ./gradlew test -PskipTests -PtestMode=${{ inputs.test-mode }}
-PjdkVersion=${{ inputs.java-version }} -PjdbcBackend=${{ inputs.backend }}
-PskipDockerTests=false
+ -x :web:test -x :clients:client-python:test -x
:flink-connector:flink:test -x :spark-connector:test -x
:spark-connector:spark-common:test
Review Comment:
yeah, fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]