File tree Expand file tree Collapse file tree 6 files changed +46
-12
lines changed
src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-spanner-jdbc Expand file tree Collapse file tree 6 files changed +46
-12
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ branchProtectionRules:
36
36
- " units (11)"
37
37
- " Kokoro - Test: Integration"
38
38
- " cla/google"
39
- - ' Kokoro - Test: Java GraalVM Native Image'
40
- - ' Kokoro - Test: Java 17 GraalVM Native Image'
41
- - javadoc
39
+ - ' Kokoro - Test: Java GraalVM Native Image A '
40
+ - ' Kokoro - Test: Java GraalVM Native Image B '
41
+ - ' Kokoro - Test: Java GraalVM Native Image C '
42
42
- unmanaged_dependency_check
43
43
# Identifies the protection rule pattern. Name of the branch to be protected.
44
44
# Defaults to `main`
Original file line number Diff line number Diff line change 45
45
# Start the Spanner emulator if the environment variable for it has been set.
46
46
# TODO: Change if statement once the env var can be set in the config.
47
47
# if [[ ! -z "${SPANNER_EMULATOR_HOST}" ]]; then
48
- if [[ " $JOB_TYPE " == " graalvm" ]] || [[ " $JOB_TYPE " == " graalvm17 " ]]; then
48
+ if [[ " $JOB_TYPE " =~ ^ graalvm ]]; then
49
49
echo " Starting emulator"
50
50
export SPANNER_EMULATOR_HOST=localhost:9010
51
51
docker pull gcr.io/cloud-spanner-emulator/emulator
@@ -115,9 +115,10 @@ graalvm)
115
115
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test " -Dtest=com.google.cloud.spanner.jdbc.it.**"
116
116
RETURN_CODE=$?
117
117
;;
118
- graalvm17)
119
- # Run Unit and Integration Tests with Native Image.
120
- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test " -Dtest=com.google.cloud.spanner.jdbc.it.**"
118
+ graalvmA)
119
+ # Run Unit and Integration Tests with Native Image A.
120
+
121
+ NATIVE_IMAGE_OPTIONS=" --strict-image-heap" mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test " -Dtest=com.google.cloud.spanner.jdbc.it.**"
121
122
RETURN_CODE=$?
122
123
;;
123
124
samples)
Original file line number Diff line number Diff line change
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-public-resources/graalvm_sdk_platform_a:3.46.2"
7
+ }
8
+
9
+ env_vars: {
10
+ key: " JOB_TYPE"
11
+ value: " graalvmA"
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
+ }
Original file line number Diff line number Diff line change 3
3
# Configure the docker image for kokoro-trampoline.
4
4
env_vars: {
5
5
key: " TRAMPOLINE_IMAGE"
6
- value: " gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a :3.46.0 "
6
+ value: " gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b :3.46.2 "
7
7
}
8
8
9
9
env_vars: {
@@ -30,4 +30,4 @@ env_vars: {
30
30
env_vars: {
31
31
key: " SECRET_MANAGER_KEYS"
32
32
value: " java-it-service-account"
33
- }
33
+ }
Original file line number Diff line number Diff line change 3
3
# Configure the docker image for kokoro-trampoline.
4
4
env_vars: {
5
5
key: " TRAMPOLINE_IMAGE"
6
- value: " gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b :3.46.0 "
6
+ value: " gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c :3.46.2 "
7
7
}
8
8
9
9
env_vars: {
10
10
key: " JOB_TYPE"
11
- value: " graalvm17 "
11
+ value: " graalvm "
12
12
}
13
13
14
14
# TODO: remove this after we've migrated all tests and scripts
Original file line number Diff line number Diff line change 1
- Args =--strict-image-heap
1
+ Args =--initialize-at-build-time =com.google.cloud.spanner.jdbc.it
You can’t perform that action at this time.
0 commit comments