From c690818b6d824ff97f352134cf46515bee283520 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 1 Oct 2020 08:26:18 -0700 Subject: [PATCH] chore(python): use BUILD_SPECIFIC_GCLOUD_PROJECT for samples (#8) https://github.com/googleapis/python-talent/blob/ef045e8eb348db36d7a2a611e6f26b11530d273b/samples/snippets/noxfile_config.py#L27-L32 `BUILD_SPECIFIC_GCLOUD_PROJECT` is an alternate project used for sample tests that do poorly with concurrent runs on the same project. Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Wed Sep 30 13:06:03 2020 -0600 Source-Repo: googleapis/synthtool Source-Sha: 9b0da5204ab90bcc36f8cd4e5689eff1a54cc3e4 Source-Link: https://github.com/googleapis/synthtool/commit/9b0da5204ab90bcc36f8cd4e5689eff1a54cc3e4 --- .../.kokoro/samples/python3.6/common.cfg | 6 ++++++ .../.kokoro/samples/python3.7/common.cfg | 6 ++++++ .../.kokoro/samples/python3.8/common.cfg | 6 ++++++ packages/google-cloud-workflows/synth.metadata | 6 +++--- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/packages/google-cloud-workflows/.kokoro/samples/python3.6/common.cfg b/packages/google-cloud-workflows/.kokoro/samples/python3.6/common.cfg index 716d583849d8..a84e7e830b3b 100644 --- a/packages/google-cloud-workflows/.kokoro/samples/python3.6/common.cfg +++ b/packages/google-cloud-workflows/.kokoro/samples/python3.6/common.cfg @@ -13,6 +13,12 @@ env_vars: { value: "py-3.6" } +# Declare build specific Cloud project. +env_vars: { + key: "BUILD_SPECIFIC_GCLOUD_PROJECT" + value: "python-docs-samples-tests-py36" +} + env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/python-workflows/.kokoro/test-samples.sh" diff --git a/packages/google-cloud-workflows/.kokoro/samples/python3.7/common.cfg b/packages/google-cloud-workflows/.kokoro/samples/python3.7/common.cfg index d6a0927db3fc..d6a0ece117b9 100644 --- a/packages/google-cloud-workflows/.kokoro/samples/python3.7/common.cfg +++ b/packages/google-cloud-workflows/.kokoro/samples/python3.7/common.cfg @@ -13,6 +13,12 @@ env_vars: { value: "py-3.7" } +# Declare build specific Cloud project. +env_vars: { + key: "BUILD_SPECIFIC_GCLOUD_PROJECT" + value: "python-docs-samples-tests-py37" +} + env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/python-workflows/.kokoro/test-samples.sh" diff --git a/packages/google-cloud-workflows/.kokoro/samples/python3.8/common.cfg b/packages/google-cloud-workflows/.kokoro/samples/python3.8/common.cfg index d09015e6c566..12b52482f9c2 100644 --- a/packages/google-cloud-workflows/.kokoro/samples/python3.8/common.cfg +++ b/packages/google-cloud-workflows/.kokoro/samples/python3.8/common.cfg @@ -13,6 +13,12 @@ env_vars: { value: "py-3.8" } +# Declare build specific Cloud project. +env_vars: { + key: "BUILD_SPECIFIC_GCLOUD_PROJECT" + value: "python-docs-samples-tests-py38" +} + env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/python-workflows/.kokoro/test-samples.sh" diff --git a/packages/google-cloud-workflows/synth.metadata b/packages/google-cloud-workflows/synth.metadata index 66cea753c179..ed8de73dccf3 100644 --- a/packages/google-cloud-workflows/synth.metadata +++ b/packages/google-cloud-workflows/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-workflows.git", - "sha": "ff52f3b063bdd0e84984c8256706b2a7eef59037" + "sha": "60d393078c39eec8756c65338860e46aa641d31d" } }, { @@ -19,14 +19,14 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "a651c5fb763c69a921aecdd3e1d8dc51dbf20f8d" + "sha": "9b0da5204ab90bcc36f8cd4e5689eff1a54cc3e4" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "a651c5fb763c69a921aecdd3e1d8dc51dbf20f8d" + "sha": "9b0da5204ab90bcc36f8cd4e5689eff1a54cc3e4" } } ],