Skip to content

Commit 6eec093

Browse files
committed
Add nightly tests
1 parent fb079a1 commit 6eec093

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

.cloudbuild/jdbc_nightly.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
timeout: 10000s
22+
steps:
23+
- name: 'gcr.io/cloud-devrel-public-resources/java11'
24+
id: "IT Tests"
25+
timeout: 10000s
26+
entrypoint: 'bash'
27+
args: ['.kokoro/build.sh']
28+
env:
29+
- 'JOB_TYPE=jdbc-integration'
30+
secretEnv: ['SA_EMAIL', 'KMS_RESOURCE_PATH', 'SA_SECRET']
31+
- name: 'gcr.io/cloud-devrel-public-resources/java11'
32+
id: "IT Nightly Tests"
33+
timeout: 10000s
34+
entrypoint: 'bash'
35+
args: ['.kokoro/build.sh']
36+
env:
37+
- 'JOB_TYPE=jdbc-nightly-integration'
38+
39+
availableSecrets:
40+
secretManager:
41+
- versionName: projects/$PROJECT_ID/secrets/jdbc-presubmit-sa-email/versions/latest
42+
env: 'SA_EMAIL'
43+
- versionName: projects/$PROJECT_ID/secrets/kms_resource_path/versions/latest
44+
env: 'KMS_RESOURCE_PATH'
45+
- versionName: projects/$PROJECT_ID/secrets/GoogleJDBCServiceAccountSecret/versions/latest
46+
env: 'SA_SECRET'

.kokoro/build.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ jdbc-integration)
7575
mvn -B ${INTEGRATION_TEST_ARGS} \
7676
-pl "google-cloud-bigquery-jdbc" \
7777
-ntp \
78-
-Penable-integration-tests \
7978
-Dtest=ITBigQueryJDBCTest \
8079
-DtrimStackTrace=false \
8180
-Dclirr.skip=true \
@@ -84,6 +83,20 @@ jdbc-integration)
8483
verify
8584
RETURN_CODE=$?
8685
;;
86+
jdbc-nightly-integration)
87+
mvn -B ${INTEGRATION_TEST_ARGS} \
88+
-pl "google-cloud-bigquery-jdbc" \
89+
-ntp \
90+
-Dtest=ITNightlyBigQueryTest \
91+
-DtrimStackTrace=false \
92+
-Dclirr.skip=true \
93+
-Denforcer.skip=true \
94+
-fae \
95+
-DargLine="-Xmx32g" \
96+
-e \
97+
verify
98+
RETURN_CODE=$?
99+
;;
87100
graalvm)
88101
# Run Unit and Integration Tests with Native Image
89102
mvn -B ${INTEGRATION_TEST_ARGS} \

0 commit comments

Comments
 (0)