Fix cache warmer: use install only, drop dependency:resolve (#1382) #281
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: Concurrency Execution Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: 'Branch to checkout' | |
| required: false | |
| default: 'main' | |
| repository: | |
| description: 'Repository to checkout (e.g., user/repo)' | |
| required: false | |
| default: 'databricks/databricks-jdbc' | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| concurrency-tests: | |
| name: Run Concurrency Execution Tests | |
| runs-on: | |
| group: databricks-protected-runner-group | |
| labels: linux-ubuntu-latest | |
| environment: azure-prod | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java-version: [21] | |
| steps: | |
| - name: Checkout PR or Manual Dispatch | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref || inputs.branch || github.ref_name }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name || inputs.repository || github.repository }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up JDK ${{ matrix.java-version }} | |
| uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4 | |
| with: | |
| java-version: ${{ matrix.java-version }} | |
| distribution: 'adopt' | |
| # This workflow only runs on push to main or manual dispatch — never on forked PRs. | |
| # is-fork is always false here, but we use the composite action for consistency. | |
| - name: Setup Maven | |
| uses: ./.github/actions/setup-maven | |
| with: | |
| is-fork: 'false' | |
| - name: Run Concurrency Execution Tests | |
| run: mvn -pl jdbc-core -B test -Dtest=com.databricks.jdbc.integration.e2e.ConcurrentExecutionTests -DargLine="-ea" | |
| env: | |
| DATABRICKS_TOKEN: ${{ secrets.JDBC_PAT_TEST_TOKEN }} | |
| DATABRICKS_USER: ${{ secrets.DATABRICKS_USER }} | |
| DATABRICKS_HOST: ${{ secrets.JDBC_PAT_TEST_HOST_NAME }} | |
| DATABRICKS_HTTP_PATH: ${{ secrets.JDBC_PAT_TEST_HTTP_PATH }} | |
| DATABRICKS_DOGFOOD_HTTP_PATH: ${{ secrets.DATABRICKS_DOGFOOD_HTTP_PATH }} | |
| DATABRICKS_CATALOG: main | |
| DATABRICKS_SCHEMA: oss_jdbc_tests |