Skip to content

Commit

Permalink
ci: introduce docker-aligned filenames for kokoro configs (#10829)
Browse files Browse the repository at this point in the history
* ci: use docker-aligned filenames for kokoro configs

* ci: re-add original configurations for phased rollout

* ci: revert required checks until after transition to new configs
  • Loading branch information
burkedavison authored May 15, 2024
1 parent fb3a3c9 commit e46bc03
Show file tree
Hide file tree
Showing 48 changed files with 530 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .kokoro/nightly/graalvm-native-a.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.0"
}

env_vars: {
key: "JOB_TYPE"
value: "graalvm"
}

# TODO: remove this after we've migrated all tests and scripts
env_vars: {
key: "GCLOUD_PROJECT"
value: "cloud-java-ci-test"
}

env_vars: {
key: "GOOGLE_CLOUD_PROJECT"
value: "cloud-java-ci-test"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "secret_manager/cloud-java-ci-it-service-account"
}

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "cloud-java-ci-it-service-account, java-bigqueryconnection-samples-secrets"
}
33 changes: 33 additions & 0 deletions .kokoro/nightly/graalvm-native-b.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.0"
}

env_vars: {
key: "JOB_TYPE"
value: "graalvm"
}

# TODO: remove this after we've migrated all tests and scripts
env_vars: {
key: "GCLOUD_PROJECT"
value: "cloud-java-ci-test"
}

env_vars: {
key: "GOOGLE_CLOUD_PROJECT"
value: "cloud-java-ci-test"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "secret_manager/cloud-java-ci-it-service-account"
}

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "cloud-java-ci-it-service-account, java-bigqueryconnection-samples-secrets"
}
2 changes: 1 addition & 1 deletion .kokoro/nightly/graalvm-sub-jobs/native-17/common.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build configs are duplicated in native/ and native-17/
# Build configs are duplicated in native-a/ and native-b/
# Build configs don't inherit the hierarchical common.cfg: qaqs/6158654898243108864

# Build logs will be here
Expand Down
73 changes: 73 additions & 0 deletions .kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build configs are duplicated in native-a/ and native-b/
# Build configs don't inherit the hierarchical common.cfg: qaqs/6158654898243108864

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
regex: "**/*sponge_log.txt"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "google-cloud-java/.kokoro/trampoline.sh"

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-cloud-java/.kokoro/build.sh"
}

env_vars: {
key: "JOB_TYPE"
value: "graalvm"
}

env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.0"
}

# TODO: remove this after we've migrated all tests and scripts
env_vars: {
key: "GCLOUD_PROJECT"
value: "cloud-java-ci-test"
}

env_vars: {
key: "GOOGLE_CLOUD_PROJECT"
value: "cloud-java-ci-test"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "secret_manager/cloud-java-ci-it-service-account"
}

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "cloud-java-ci-it-service-account, java-bigqueryconnection-samples-secrets"
}

env_vars: {
key: "NUM_JOBS"
value: "20"
}

env_vars: {
key: "TEST_ALL_MODULES"
value: "true"
}

before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "dpebot_codecov_token"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "10"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "11"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "12"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "13"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "14"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "15"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "16"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "17"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "18"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "19"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "2"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "20"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "3"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "4"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "5"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "6"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "7"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "8"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "9"
}
73 changes: 73 additions & 0 deletions .kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build configs are duplicated in native-a/ and native-b/
# Build configs don't inherit the hierarchical common.cfg: qaqs/6158654898243108864

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
regex: "**/*sponge_log.txt"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "google-cloud-java/.kokoro/trampoline.sh"

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-cloud-java/.kokoro/build.sh"
}

env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.0"
}

env_vars: {
key: "JOB_TYPE"
value: "graalvm"
}

# TODO: remove this after we've migrated all tests and scripts
env_vars: {
key: "GCLOUD_PROJECT"
value: "cloud-java-ci-test"
}

env_vars: {
key: "GOOGLE_CLOUD_PROJECT"
value: "cloud-java-ci-test"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "secret_manager/cloud-java-ci-it-service-account"
}

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "cloud-java-ci-it-service-account, java-bigqueryconnection-samples-secrets"
}

env_vars: {
key: "NUM_JOBS"
value: "20"
}

env_vars: {
key: "TEST_ALL_MODULES"
value: "true"
}

before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "dpebot_codecov_token"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "JOB_NUMBER"
value: "1"
}
Loading

0 comments on commit e46bc03

Please sign in to comment.