Skip to content

Fix statement close behavior for direct results in SEA #1672

Fix statement close behavior for direct results in SEA

Fix statement close behavior for direct results in SEA #1672

name: Integration Tests Workflow - Pull Requests
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
permissions:
id-token: write
contents: read
jobs:
build-and-test:
name: Build and Run Integration Tests (PR)
runs-on:
group: databricks-protected-runner-group
labels: linux-ubuntu-latest
strategy:
matrix:
include:
# SQL_EXEC mode: Tests SEA client behavior
# Note: CircuitBreakerIntegrationTests requires THRIFT_SERVER mode (tested in second matrix entry)
- test-command: mvn -pl jdbc-core -B compile test -Dtest=*IntegrationTests,!M2MPrivateKeyCredentialsIntegrationTests,!M2MAuthIntegrationTests,!CircuitBreakerIntegrationTests,!ThriftCloudFetchFakeIntegrationTests
fake-service-type: 'SQL_EXEC'
# THRIFT_SERVER mode: Tests Thrift client behavior and circuit breaker fallback
- test-command: mvn -pl jdbc-core -B compile test -Dtest=*IntegrationTests,!M2MPrivateKeyCredentialsIntegrationTests,!SqlExecApiHybridResultsIntegrationTests,!DBFSVolumeIntegrationTests,!M2MAuthIntegrationTests,!UCVolumeIntegrationTests,!SqlExecApiIntegrationTests
fake-service-type: 'THRIFT_SERVER'
steps:
- name: Checkout PR
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
with:
java-version: 21
distribution: 'adopt'
- name: Check if fork
id: fork-check
shell: bash
run: |
if [ "${{ github.event.pull_request.head.repo.full_name }}" != "" ] && \
[ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]; then
echo "is_fork=true" >> $GITHUB_OUTPUT
echo "This is a forked PR — will use cached dependencies"
else
echo "is_fork=false" >> $GITHUB_OUTPUT
echo "This is a same-repo PR — will use JFrog OIDC"
fi
- name: Setup Maven
uses: ./.github/actions/setup-maven
with:
is-fork: ${{ steps.fork-check.outputs.is_fork }}
- name: Run Integration Tests (without secrets)
run: ${{ matrix.test-command }}
env:
FAKE_SERVICE_TYPE: ${{ matrix.fake-service-type }}