Skip to content

Commit 13611a5

Browse files
committed
enabling concurrency tests on GitHub
Signed-off-by: Sreekanth Vadigi <sreekanth.vadigi@databricks.com>
1 parent 9bf1d27 commit 13611a5

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Concurrency Execution Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
inputs:
8+
branch:
9+
description: 'Branch to checkout'
10+
required: false
11+
default: 'main'
12+
repository:
13+
description: 'Repository to checkout (e.g., user/repo)'
14+
required: false
15+
default: 'databricks/databricks-jdbc'
16+
17+
jobs:
18+
concurrency-tests:
19+
name: Run Concurrency Execution Tests
20+
runs-on:
21+
group: databricks-protected-runner-group
22+
labels: linux-ubuntu-latest
23+
environment: azure-prod
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
java-version: [21]
28+
29+
steps:
30+
- name: Checkout PR or Manual Dispatch
31+
uses: actions/checkout@v4
32+
with:
33+
ref: ${{ github.event.pull_request.head.ref || inputs.branch || github.ref_name }}
34+
repository: ${{ github.event.pull_request.head.repo.full_name || inputs.repository || github.repository }}
35+
token: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Set up JDK ${{ matrix.java-version }}
38+
uses: actions/setup-java@v4
39+
with:
40+
java-version: ${{ matrix.java-version }}
41+
distribution: 'adopt'
42+
43+
- name: Cache Maven packages
44+
uses: actions/cache@v4
45+
with:
46+
path: ~/.m2
47+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
48+
restore-keys: ${{ runner.os }}-m2
49+
50+
- name: Run Concurrency Execution Tests
51+
run: mvn -B test -Dtest=com.databricks.jdbc.integration.e2e.ConcurrentExecutionTests
52+
env:
53+
DATABRICKS_TOKEN: ${{ secrets.JDBC_PAT_TEST_TOKEN }}
54+
DATABRICKS_USER: ${{ secrets.DATABRICKS_USER }}
55+
DATABRICKS_HOST: ${{ secrets.JDBC_PAT_TEST_HOST_NAME }}
56+
DATABRICKS_HTTP_PATH: ${{ secrets.JDBC_PAT_TEST_HTTP_PATH }}
57+
DATABRICKS_DOGFOOD_HTTP_PATH: ${{ secrets.DATABRICKS_DOGFOOD_HTTP_PATH }}

0 commit comments

Comments
 (0)