Skip to content

Commit

Permalink
feat: add new configuration for nightly retry-related tests. (#2319)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Evan Greco <egreco@google.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 14, 2023
1 parent e5884cc commit e78b841
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,18 @@ clirr)
mvn -B -Denforcer.skip=true clirr:check
RETURN_CODE=$?
;;
retry_quota)
mvn -B ${INTEGRATION_TEST_ARGS} \
-Dtest=ITBigQueryWriteQuotaRetryTest \
test
RETURN_CODE=$?
;;
retry_non_quota)
mvn -B ${INTEGRATION_TEST_ARGS} \
-Dtest=ITBigQueryWriteNonQuotaRetryTest \
test
RETURN_CODE=$?
;;
*)
;;
esac
Expand Down
37 changes: 37 additions & 0 deletions .kokoro/nightly/retry_non_quota.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}

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

env_vars: {
key: "GOOGLE_CLOUD_PROJECT"
value: "bq-write-api-java-retry-test"
}

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

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

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

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-it-service-account"
}
37 changes: 37 additions & 0 deletions .kokoro/nightly/retry_quota.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}

# TODO: remove this after we've migrated all tests and scripts
env_vars: {
key: "GCLOUD_PROJECT"
value: "bq-writeapi-java-quota-retry"
}

env_vars: {
key: "GOOGLE_CLOUD_PROJECT"
value: "bq-writeapi-java-quota-retry"
}

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

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

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

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-it-service-account"
}
2 changes: 2 additions & 0 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
excludes=[
"renovate.json",
".kokoro/build.sh",
".kokoro/nightly/retry_non_quota.cfg",
".kokoro/nightly/retry_quota.cfg",
".kokoro/nightly/samples.cfg",
".kokoro/presubmit/samples.cfg",
".kokoro/dependencies.sh",
Expand Down

0 comments on commit e78b841

Please sign in to comment.