[Cherry-pick to branch-1.3] [#11879] fix(clickhouse): fix type conver… #27311
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Backend Integration Test | |
| # Controls when the workflow will run | |
| on: | |
| push: | |
| branches: [ "main", "branch-*" ] | |
| pull_request: | |
| branches: [ "main", "branch-*" ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d | |
| id: filter | |
| with: | |
| filters: | | |
| source_changes: | |
| - .github/** | |
| - api/** | |
| - bin/** | |
| - catalogs/** | |
| - catalogs-contrib/** | |
| - clients/client-java/** | |
| - clients/client-java-runtime/** | |
| - clients/filesystem-hadoop3/** | |
| - clients/cli/** | |
| - common/** | |
| - conf/** | |
| - core/** | |
| - lance/** | |
| - dev/** | |
| - gradle/** | |
| - iceberg/** | |
| - integration-test-common/** | |
| - meta/** | |
| - scripts/** | |
| - server/** | |
| - bundles/** | |
| - server-common/** | |
| - build.gradle.kts | |
| - gradle.properties | |
| - gradlew | |
| - settings.gradle.kts | |
| - name: Detect changed catalogs-contrib modules | |
| id: contrib | |
| run: | | |
| if [ "${{ github.event_name }}" = "pull_request" ]; then | |
| BASE_SHA="${{ github.event.pull_request.base.sha }}" | |
| HEAD_SHA="${{ github.event.pull_request.head.sha }}" | |
| else | |
| BASE_SHA="${{ github.event.before }}" | |
| HEAD_SHA="${{ github.sha }}" | |
| fi | |
| if [ -z "$BASE_SHA" ] || [ "$BASE_SHA" = "0000000000000000000000000000000000000000" ]; then | |
| BASE_SHA="$(git rev-list --max-parents=0 "$HEAD_SHA" | tail -n 1)" | |
| fi | |
| MERGE_BASE_SHA="$(git merge-base "$BASE_SHA" "$HEAD_SHA" || true)" | |
| if [ -z "$MERGE_BASE_SHA" ]; then | |
| MERGE_BASE_SHA="$BASE_SHA" | |
| fi | |
| CHANGED_FILES="$(git diff --name-only "$MERGE_BASE_SHA" "$HEAD_SHA")" | |
| CHANGED_MODULES="$(echo "$CHANGED_FILES" | awk -F/ '/^catalogs-contrib\/[^/]+\// {print $2}' | sort -u | xargs)" | |
| # If shared catalogs-contrib build logic changes, run all contrib catalog tests. | |
| if echo "$CHANGED_FILES" | grep -q '^catalogs-contrib/build.gradle.kts$'; then | |
| CHANGED_MODULES="__all__" | |
| fi | |
| echo "changed_catalogs_contrib_modules=$CHANGED_MODULES" >> "$GITHUB_OUTPUT" | |
| outputs: | |
| source_changes: ${{ steps.filter.outputs.source_changes }} | |
| changed_catalogs_contrib_modules: ${{ steps.contrib.outputs.changed_catalogs_contrib_modules }} | |
| BackendIT-on-push: | |
| needs: changes | |
| if: (github.event_name == 'push' && needs.changes.outputs.source_changes == 'true') | |
| strategy: | |
| matrix: | |
| architecture: [linux/amd64] | |
| java-version: [ 17 ] | |
| backend: [ h2, mysql, postgresql ] | |
| test-mode: [ embedded, deploy ] | |
| exclude: | |
| - test-mode: 'embedded' | |
| backend: 'mysql' | |
| - test-mode: 'embedded' | |
| backend: 'postgresql' | |
| - test-mode: 'deploy' | |
| backend: 'h2' | |
| uses: ./.github/workflows/backend-integration-test-action.yml | |
| with: | |
| architecture: ${{ matrix.architecture }} | |
| java-version: ${{ matrix.java-version }} | |
| backend: ${{ matrix.backend }} | |
| test-mode: ${{ matrix.test-mode }} | |
| changed-catalogs-contrib-modules: ${{ needs.changes.outputs.changed_catalogs_contrib_modules }} | |
| BackendIT-on-pr: | |
| needs: changes | |
| if: (github.event_name == 'pull_request' && needs.changes.outputs.source_changes == 'true') | |
| strategy: | |
| matrix: | |
| architecture: [ linux/amd64 ] | |
| java-version: [ 17 ] | |
| backend: [ h2, mysql, postgresql ] | |
| test-mode: [ embedded, deploy ] | |
| exclude: | |
| - test-mode: 'embedded' | |
| backend: 'mysql' | |
| - test-mode: 'embedded' | |
| backend: 'postgresql' | |
| - test-mode: 'deploy' | |
| backend: 'h2' | |
| uses: ./.github/workflows/backend-integration-test-action.yml | |
| with: | |
| architecture: ${{ matrix.architecture }} | |
| java-version: ${{ matrix.java-version }} | |
| backend: ${{ matrix.backend }} | |
| test-mode: ${{ matrix.test-mode }} | |
| changed-catalogs-contrib-modules: ${{ needs.changes.outputs.changed_catalogs_contrib_modules }} |