Skip to content

Commit 1e3c5ca

Browse files
build: introduce testing infra for GraalVM "C" (#1733)
* build: introduce testing infra for GraalVM "C" * chore: use latest graalvm_c
1 parent cdc9865 commit 1e3c5ca

File tree

4 files changed

+52
-10
lines changed

4 files changed

+52
-10
lines changed

.kokoro/build.sh

+1-8
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,7 @@ integration)
7676
verify
7777
RETURN_CODE=$?
7878
;;
79-
graalvmA)
80-
# Run Unit and Integration Tests with Native Image
81-
bash .kokoro/populate-secrets.sh
82-
export GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_GFILE_DIR}/secret_manager/java-it-service-account"
83-
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Pnative-test -Pslf4j2x test -pl 'oauth2_http'
84-
RETURN_CODE=$?
85-
;;
86-
graalvmB)
79+
graalvm)
8780
# Run Unit and Integration Tests with Native Image
8881
bash .kokoro/populate-secrets.sh
8982
export GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_GFILE_DIR}/secret_manager/java-it-service-account"

.kokoro/presubmit/graalvm-native-a.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build_file: "google-auth-library-java/.kokoro/build.sh"
44

55
env_vars: {
66
key: "JOB_TYPE"
7-
value: "graalvmA"
7+
value: "graalvm"
88
}
99

1010
# TODO: remove this after we've migrated all tests and scripts

.kokoro/presubmit/graalvm-native-b.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build_file: "google-auth-library-java/.kokoro/build.sh"
44

55
env_vars: {
66
key: "JOB_TYPE"
7-
value: "graalvmB"
7+
value: "graalvm"
88
}
99

1010
# TODO: remove this after we've migrated all tests and scripts
+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
build_file: "google-auth-library-java/.kokoro/build.sh"
4+
5+
env_vars: {
6+
key: "JOB_TYPE"
7+
value: "graalvm"
8+
}
9+
10+
# TODO: remove this after we've migrated all tests and scripts
11+
env_vars: {
12+
key: "GCLOUD_PROJECT"
13+
value: "gcloud-devel"
14+
}
15+
16+
env_vars: {
17+
key: "GOOGLE_CLOUD_PROJECT"
18+
value: "gcloud-devel"
19+
}
20+
21+
env_vars: {
22+
key: "GOOGLE_APPLICATION_CREDENTIALS"
23+
value: "secret_manager/java-it-service-account"
24+
}
25+
26+
env_vars: {
27+
key: "SECRET_MANAGER_KEYS"
28+
value: "java-it-service-account"
29+
}
30+
31+
env_vars: {
32+
key: "GCS_BUCKET"
33+
value: "byoid-it-bucket"
34+
}
35+
36+
env_vars: {
37+
key: "GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES"
38+
value: "1"
39+
}
40+
41+
env_vars: {
42+
key: "GOOGLE_CLOUD_QUOTA_PROJECT"
43+
value: "gcloud-devel"
44+
}
45+
46+
container_properties {
47+
docker_image: "us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_c:1.15.4"
48+
}
49+

0 commit comments

Comments
 (0)