From b0eb8a8b30b46a3c98d23c23107acb748c6601a1 Mon Sep 17 00:00:00 2001 From: "Leah E. Cole" <6719667+leahecole@users.noreply.github.com> Date: Mon, 21 Jun 2021 16:28:42 +0000 Subject: [PATCH] chore: add kokoro 3.9 config templates (#1128) fixes #907 --- .../.kokoro/samples/python3.9/common.cfg | 40 +++++++++++++++++++ .../.kokoro/samples/python3.9/continuous.cfg | 6 +++ .../samples/python3.9/periodic-head.cfg | 11 +++++ .../.kokoro/samples/python3.9/periodic.cfg | 6 +++ .../.kokoro/samples/python3.9/presubmit.cfg | 6 +++ 5 files changed, 69 insertions(+) create mode 100644 synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/common.cfg create mode 100644 synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/continuous.cfg create mode 100644 synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/periodic-head.cfg create mode 100644 synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/periodic.cfg create mode 100644 synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/presubmit.cfg diff --git a/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/common.cfg b/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/common.cfg new file mode 100644 index 000000000..c0ea19f29 --- /dev/null +++ b/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/common.cfg @@ -0,0 +1,40 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "py-3.9" +} + +# Declare build specific Cloud project. +env_vars: { + key: "BUILD_SPECIFIC_GCLOUD_PROJECT" + value: "python-docs-samples-tests-py39" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/{{ metadata['repo']['repo'].split('/')[1] }}/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "{{ metadata['repo']['repo'].split('/')[1] }}/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/continuous.cfg b/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/continuous.cfg new file mode 100644 index 000000000..a1c8d9759 --- /dev/null +++ b/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/periodic-head.cfg b/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/periodic-head.cfg new file mode 100644 index 000000000..f9cfcd33e --- /dev/null +++ b/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/periodic-head.cfg @@ -0,0 +1,11 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-pubsub/.kokoro/test-samples-against-head.sh" +} diff --git a/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/periodic.cfg b/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/periodic.cfg new file mode 100644 index 000000000..50fec9649 --- /dev/null +++ b/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/presubmit.cfg b/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/presubmit.cfg new file mode 100644 index 000000000..a1c8d9759 --- /dev/null +++ b/synthtool/gcp/templates/python_library/.kokoro/samples/python3.9/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file