Skip to content

Commit 3661070

Browse files
committed
chore(java-bigquery): create split integration config
2 parents 12e2e94 + 66addc3 commit 3661070

File tree

719 files changed

+451690
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

719 files changed

+451690
-6
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
7+
}
8+
9+
env_vars: {
10+
key: "JOB_TYPE"
11+
value: "integration-single"
12+
}
13+
14+
# TODO: remove this after we've migrated all tests and scripts
15+
env_vars: {
16+
key: "GCLOUD_PROJECT"
17+
value: "gcloud-devel"
18+
}
19+
20+
env_vars: {
21+
key: "GOOGLE_CLOUD_PROJECT"
22+
value: "gcloud-devel"
23+
}
24+
25+
env_vars: {
26+
key: "GOOGLE_APPLICATION_CREDENTIALS"
27+
value: "secret_manager/java-it-service-account"
28+
}
29+
30+
env_vars: {
31+
key: "SECRET_MANAGER_KEYS"
32+
value: "java-it-service-account"
33+
}
34+
35+
36+
env_vars: {
37+
key: "BUILD_SUBDIR"
38+
value: "java-bigquery"
39+
}
40+
41+
env_vars: {
42+
key: "INTEGRATION_TEST_ARGS"
43+
value: "-pl !google-cloud-bigquery-jdbc"
44+
}

.kokoro/presubmit/logging-integration.cfg

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Configure the docker image for kokoro-trampoline.
44
env_vars: {
55
key: "TRAMPOLINE_IMAGE"
6-
value: "gcr.io/cloud-devrel-kokoro-resources/java11"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
77
}
88

99
env_vars: {
@@ -14,25 +14,31 @@ env_vars: {
1414
# TODO: remove this after we've migrated all tests and scripts
1515
env_vars: {
1616
key: "GCLOUD_PROJECT"
17-
value: "cloud-java-ci-test"
17+
value: "gcloud-devel"
1818
}
1919

2020
env_vars: {
2121
key: "GOOGLE_CLOUD_PROJECT"
22-
value: "cloud-java-ci-test"
22+
value: "gcloud-devel"
2323
}
2424

2525
env_vars: {
2626
key: "GOOGLE_APPLICATION_CREDENTIALS"
27-
value: "secret_manager/cloud-java-ci-it-service-account"
27+
value: "secret_manager/java-it-service-account"
2828
}
2929

3030
env_vars: {
3131
key: "SECRET_MANAGER_KEYS"
32-
value: "cloud-java-ci-it-service-account, java-bigqueryconnection-samples-secrets"
32+
value: "java-it-service-account"
3333
}
3434

35+
3536
env_vars: {
3637
key: "BUILD_SUBDIR"
37-
value: "java-logging"
38+
value: "java-bigquery"
39+
}
40+
41+
env_vars: {
42+
key: "INTEGRATION_TEST_ARGS"
43+
value: "-pl !google-cloud-bigquery-jdbc"
3844
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
- name: 'gcr.io/cloud-devrel-public-resources/java11'
39+
id: "Nightly build"
40+
timeout: 10000s
41+
entrypoint: 'bash'
42+
args: ['.kokoro/jdbc-release.sh']
43+
env:
44+
- 'NIGHTLY_RELEASE_GCS_BUCKET=$_NIGHTLY_RELEASE_GCS_BUCKET'
45+
46+
availableSecrets:
47+
secretManager:
48+
- versionName: projects/$PROJECT_ID/secrets/jdbc-presubmit-sa-email/versions/latest
49+
env: 'SA_EMAIL'
50+
- versionName: projects/$PROJECT_ID/secrets/kms_resource_path/versions/latest
51+
env: 'KMS_RESOURCE_PATH'
52+
- versionName: projects/$PROJECT_ID/secrets/GoogleJDBCServiceAccountSecret/versions/latest
53+
env: 'SA_SECRET'
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'
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
steps:
2+
- name: gcr.io/cloud-devrel-public-resources/java8
3+
entrypoint: ls
4+
args: [
5+
'-alt',
6+
]
7+
- name: gcr.io/cloud-devrel-public-resources/java8
8+
entrypoint: curl
9+
args: [
10+
'--header',
11+
'Metadata-Flavor: Google',
12+
'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email'
13+
]
14+
- name: gcr.io/cloud-devrel-public-resources/java8
15+
entrypoint: pwd
16+
- name: gcr.io/cloud-devrel-public-resources/java8
17+
entrypoint: bash
18+
args: [
19+
'.kokoro/build.sh'
20+
]
21+
env:
22+
- 'JOB_TYPE=samples'
23+
- 'BIGQUERY_PROJECT_ID=cloud-java-ci-sample'
24+
- 'GOOGLE_CLOUD_PROJECT=cloud-java-ci-sample'
25+
- 'GCS_BUCKET=java-samples-bigquery'
26+
- 'BIGQUERY_TEST_TABLE=test_table'
27+
- 'BIGQUERY_MODEL_NAME=natality_model'
28+
- 'BIGQUERY_MODEL_TEST_PROJECT_ID=bigquery-public-data'
29+
- 'OMNI_PROJECT_ID=sunlit-ace-276222'
30+
- 'OMNI_EXTERNAL_TABLE_NAME=devrel_test_table'
31+
- 'BIGQUERY_TABLE2=table2'
32+
- 'BIGQUERY_TABLE1=table1'
33+
- 'BIGTABLE_TESTING_INSTANCE=bigquery-samples-instance'
34+
- 'BIGQUERY_DATASET_NAME=bigquery_test_dataset'
35+
- 'KOKORO_GFILE_DIR=/workspace'
36+
# This key is not available yet
37+
- 'BIGQUERY_KMS_KEY_NAME=projects/cloud-java-ci-sample/locations/us/keyRings/bq-kms-key/cryptoKeys/bq-kms-key'
38+
- name: gcr.io/cloud-devrel-public-resources/java8
39+
entrypoint: echo
40+
args: [
41+
'Sample job succeeded',
42+
]
43+
timeout: 3600s
44+
options:
45+
defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET

java-bigquery/.github/CODEOWNERS

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Code owners file.
2+
# This file controls who is tagged for review for any given pull request.
3+
4+
# For syntax help see:
5+
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
6+
7+
# The @googleapis/bigquery-team is the default owner for changes in this repo
8+
* @googleapis/cloud-sdk-java-team @googleapis/bigquery-team
9+
10+
# The java-samples-reviewers team is the default owner for samples changes
11+
samples/**/*.java @googleapis/cloud-sdk-java-team @googleapis/java-samples-reviewers
12+
13+
# Generated snippets should not be owned by samples reviewers
14+
samples/snippets/generated/ @googleapis/cloud-sdk-java-team
15+
16+
# JDBC Driver
17+
google-cloud-bigquery-jdbc/** @googleapis/bigquery-developer-tools-team @googleapis/cloud-sdk-java-team
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
Thanks for stopping by to let us know something could be better!
8+
9+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
10+
11+
Please run down the following list and make sure you've tried the usual "quick fixes":
12+
13+
- Search the issues already opened: https://github.com/googleapis/java-bigquery/issues
14+
- Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform
15+
16+
If you are still having issues, please include as much information as possible:
17+
18+
#### Environment details
19+
20+
1. Specify the API at the beginning of the title. For example, "BigQuery: ...").
21+
General, Core, and Other are also allowed as types
22+
2. OS type and version:
23+
3. Java version:
24+
4. version(s):
25+
26+
#### Steps to reproduce
27+
28+
1. ?
29+
2. ?
30+
31+
#### Code example
32+
33+
```java
34+
// example
35+
```
36+
37+
#### Stack trace
38+
```
39+
Any relevant stacktrace here.
40+
```
41+
42+
#### External references such as API reference guides
43+
44+
- ?
45+
46+
#### Any additional information below
47+
48+
49+
Following these steps guarantees the quickest resolution possible.
50+
51+
Thanks!
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this library
4+
5+
---
6+
7+
Thanks for stopping by to let us know something could be better!
8+
9+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
10+
11+
**Is your feature request related to a problem? Please describe.**
12+
What the problem is. Example: I'm always frustrated when [...]
13+
14+
**Describe the solution you'd like**
15+
What you want to happen.
16+
17+
**Describe alternatives you've considered**
18+
Any alternative solutions or features you've considered.
19+
20+
**Additional context**
21+
Any other context or screenshots about the feature request.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Support request
3+
about: If you have a support contract with Google, please create an issue in the Google Cloud Support console.
4+
5+
---
6+
7+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
2+
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-bigquery/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
3+
- [ ] Ensure the tests and linter pass
4+
- [ ] Code coverage does not decrease (if any source code was changed)
5+
- [ ] Appropriate docs were updated (if necessary)
6+
7+
Fixes #<issue_number_goes_here> ☕️
8+
9+
If you write sample code, please follow the [samples format](
10+
https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md).

0 commit comments

Comments
 (0)