Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .cloudbuild/jdbc_nightly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Github action job to test core java library features on
# downstream client libraries before they are released.
options:
workerPool: 'projects/bigquery-devtools-drivers/locations/us-east1/workerPools/java-bigquery-jdbc-pool'
dynamic_substitutions: true
logging: CLOUD_LOGGING_ONLY

timeout: 10000s
steps:
- name: 'gcr.io/cloud-devrel-public-resources/java11'
id: "IT Tests"
timeout: 10000s
entrypoint: 'bash'
args: ['.kokoro/build.sh']
env:
- 'JOB_TYPE=jdbc-integration'
secretEnv: ['SA_EMAIL', 'KMS_RESOURCE_PATH', 'SA_SECRET']
- name: 'gcr.io/cloud-devrel-public-resources/java11'
id: "IT Nightly Tests"
timeout: 10000s
entrypoint: 'bash'
args: ['.kokoro/build.sh']
env:
- 'JOB_TYPE=jdbc-nightly-integration'

availableSecrets:
secretManager:
- versionName: projects/$PROJECT_ID/secrets/jdbc-presubmit-sa-email/versions/latest
env: 'SA_EMAIL'
- versionName: projects/$PROJECT_ID/secrets/kms_resource_path/versions/latest
env: 'KMS_RESOURCE_PATH'
- versionName: projects/$PROJECT_ID/secrets/GoogleJDBCServiceAccountSecret/versions/latest
env: 'SA_SECRET'
41 changes: 41 additions & 0 deletions .cloudbuild/jdbc_presubmit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Github action job to test core java library features on
# downstream client libraries before they are released.
options:
workerPool: 'projects/bigquery-devtools-drivers/locations/us-east1/workerPools/java-bigquery-jdbc-pool'
dynamic_substitutions: true
logging: CLOUD_LOGGING_ONLY

substitutions:
_JOB_TYPE: "jdbc-integration"

timeout: 2000s
steps:
- name: 'gcr.io/cloud-devrel-public-resources/java11'
id: "IT Tests"
timeout: 2000s
entrypoint: 'bash'
args: ['.kokoro/build.sh']
env:
- 'JOB_TYPE=${_JOB_TYPE}'
secretEnv: ['SA_EMAIL', 'KMS_RESOURCE_PATH', 'SA_SECRET']
availableSecrets:
secretManager:
- versionName: projects/$PROJECT_ID/secrets/jdbc-presubmit-sa-email/versions/latest
env: 'SA_EMAIL'
- versionName: projects/$PROJECT_ID/secrets/kms_resource_path/versions/latest
env: 'KMS_RESOURCE_PATH'
- versionName: projects/$PROJECT_ID/secrets/GoogleJDBCServiceAccountSecret/versions/latest
env: 'SA_SECRET'
33 changes: 32 additions & 1 deletion .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ javadoc)
;;
integration)
mvn -B ${INTEGRATION_TEST_ARGS} \
-pl "!google-cloud-bigquery-jdbc" \
-ntp \
-Penable-integration-tests \
-DtrimStackTrace=false \
Expand All @@ -70,9 +71,39 @@ integration)
verify
RETURN_CODE=$?
;;
jdbc-integration)
mvn -B ${INTEGRATION_TEST_ARGS} \
-pl "google-cloud-bigquery-jdbc" \
-ntp \
-Dtest=ITBigQueryJDBCTest \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
-fae \
verify
RETURN_CODE=$?
;;
jdbc-nightly-integration)
mvn -B ${INTEGRATION_TEST_ARGS} \
-pl "google-cloud-bigquery-jdbc" \
-ntp \
-Dtest=ITNightlyBigQueryTest \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
-fae \
-DargLine="-Xmx32g" \
-e \
verify
RETURN_CODE=$?
;;
graalvm)
# Run Unit and Integration Tests with Native Image
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
mvn -B ${INTEGRATION_TEST_ARGS} \
-pl "!google-cloud-bigquery-jdbc" \
-ntp \
-Pnative \
test
RETURN_CODE=$?
;;
samples)
Expand Down
14 changes: 13 additions & 1 deletion google-cloud-bigquery-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-bigquery-jdbc</artifactId>
<version>0.1.0-SNAPSHOT</version>
<version>0.1.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigquery-jdbc:current} -->
<packaging>jar</packaging>
<name>BigQuery JDBC</name>
<url>https://github.com/googleapis/java-bigquery-jdbc</url>
Expand Down Expand Up @@ -55,6 +55,18 @@
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.13</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<ignoredUsedUndeclaredDependencies>
<ignoredUsedUndeclaredDependency>com.google.*:*</ignoredUsedUndeclaredDependency>
<ignoredUsedUndeclaredDependency>org.apache.arrow:*</ignoredUsedUndeclaredDependency>
<ignoredUsedUndeclaredDependency>org.apache.httpcomponents.*:*</ignoredUsedUndeclaredDependency>
<ignoredUsedUndeclaredDependency>io.grpc:*</ignoredUsedUndeclaredDependency>
</ignoredUsedUndeclaredDependencies>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
<modules>
<module>google-cloud-bigquery</module>
<module>google-cloud-bigquery-bom</module>
<module>google-cloud-bigquery-jdbc</module>
</modules>

<build>
Expand Down Expand Up @@ -259,4 +260,3 @@
</profile>
</profiles>
</project>

3 changes: 2 additions & 1 deletion versions.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Format:
# module:released-version:current-version

google-cloud-bigquery:2.57.1:2.57.2-SNAPSHOT
google-cloud-bigquery:2.57.1:2.57.2-SNAPSHOT
google-cloud-bigquery-jdbc:0.1.0:0.1.1-SNAPSHOT
Loading