Skip to content

Commit e37164b

Browse files
committed
fix conditional test running
1 parent 51c5b47 commit e37164b

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed

.kokoro/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function generate_modified_modules_list() {
204204
if [[ -n $modules ]]; then
205205
modules=$(echo "${modules}" | cut -d '/' -f1 | sort -u)
206206
for module in $modules; do
207-
if [[ ! " ${excluded_modules[*]} " =~ " ${module} " && " ${maven_modules[*]} " =~ " ${module} " ]]; then
207+
if [[ " ${maven_modules[*]} " =~ " ${module} " ]]; then
208208
modified_module_list+=("${module}")
209209
fi
210210
done

.kokoro/presubmit/datastore-integration.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ env_vars: {
3535
env_vars: {
3636
key: "SECRET_MANAGER_KEYS"
3737
value: "java-it-service-account"
38-
}env_vars: {
38+
}
39+
40+
env_vars: {
3941
key: "BUILD_SUBDIR"
4042
value: "java-datastore"
4143
}

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,30 @@ 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"
33+
}
34+
35+
env_vars: {
36+
key: "IT_SERVICE_ACCOUNT_EMAIL"
37+
value: "it-service-account@gcloud-devel.iam.gserviceaccount.com"
3338
}
3439

3540
env_vars: {
3641
key: "BUILD_SUBDIR"
37-
value: "java-logging"
42+
value: "java-datastore"
3843
}

.kokoro/presubmit/logging-integration.cfg

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,30 @@ 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"
23+
}
24+
25+
env_vars: {
26+
key: "DATASTORE_PROJECT_ID"
27+
value: "gcloud-devel"
2328
}
2429

2530
env_vars: {
2631
key: "GOOGLE_APPLICATION_CREDENTIALS"
27-
value: "secret_manager/cloud-java-ci-it-service-account"
32+
value: "secret_manager/java-it-service-account"
2833
}
2934

3035
env_vars: {
3136
key: "SECRET_MANAGER_KEYS"
32-
value: "cloud-java-ci-it-service-account, java-bigqueryconnection-samples-secrets"
37+
value: "java-it-service-account"
3338
}
3439

3540
env_vars: {
3641
key: "BUILD_SUBDIR"
37-
value: "java-logging"
42+
value: "java-datastore"
3843
}

0 commit comments

Comments
 (0)