Skip to content

Commit e4ff58b

Browse files
committed
Add jdbc presubmit
1 parent 08e6456 commit e4ff58b

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.cloudbuild/jdbc_presubmit.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# Github action job to test core java library features on
15+
# downstream client libraries before they are released.
16+
options:
17+
workerPool: 'projects/bigquery-devtools-drivers/locations/us-east1/workerPools/java-bigquery-jdbc-pool'
18+
dynamic_substitutions: true
19+
logging: CLOUD_LOGGING_ONLY
20+
21+
substitutions:
22+
_JOB_TYPE: "jdbc-integration"
23+
24+
timeout: 2000s
25+
steps:
26+
- name: 'gcr.io/cloud-devrel-public-resources/java11'
27+
id: "IT Tests"
28+
timeout: 2000s
29+
entrypoint: 'bash'
30+
args: ['.kokoro/build.sh']
31+
env:
32+
- 'JOB_TYPE=${_JOB_TYPE}'
33+
secretEnv: ['SA_EMAIL', 'KMS_RESOURCE_PATH', 'SA_SECRET']
34+
availableSecrets:
35+
secretManager:
36+
- versionName: projects/$PROJECT_ID/secrets/jdbc-presubmit-sa-email/versions/latest
37+
env: 'SA_EMAIL'
38+
- versionName: projects/$PROJECT_ID/secrets/kms_resource_path/versions/latest
39+
env: 'KMS_RESOURCE_PATH'
40+
- versionName: projects/$PROJECT_ID/secrets/GoogleJDBCServiceAccountSecret/versions/latest
41+
env: 'SA_SECRET'

.kokoro/build.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,19 @@ integration)
7171
verify
7272
RETURN_CODE=$?
7373
;;
74+
jdbc-integration)
75+
mvn -B ${INTEGRATION_TEST_ARGS} \
76+
-pl "google-cloud-bigquery-jdbc" \
77+
-ntp \
78+
-Dtest=ITBigQueryJDBCTest \
79+
-Penable-integration-tests \
80+
-DtrimStackTrace=false \
81+
-Dclirr.skip=true \
82+
-Denforcer.skip=true \
83+
-fae \
84+
verify
85+
RETURN_CODE=$?
86+
;;
7487
graalvm)
7588
# Run Unit and Integration Tests with Native Image
7689
mvn -B ${INTEGRATION_TEST_ARGS} \

0 commit comments

Comments
 (0)