-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(python): Add kokoro configs for python 3.10 samples testing (#1239
- Loading branch information
Showing
6 changed files
with
95 additions
and
1 deletion.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
synthtool/gcp/templates/python_library/.kokoro/samples/python3.10/common.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# 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.10" | ||
} | ||
|
||
# Declare build specific Cloud project. | ||
env_vars: { | ||
key: "BUILD_SPECIFIC_GCLOUD_PROJECT" | ||
value: "python-docs-samples-tests-310" | ||
} | ||
|
||
env_vars: { | ||
key: "TRAMPOLINE_BUILD_FILE" | ||
value: "github/{{ metadata['repo']['repo'].split('/')[1] }}/.kokoro/test-samples.sh" | ||
} | ||
{% if custom_samples_dockerfile %} | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE" | ||
value: "gcr.io/cloud-devrel-kokoro-resources/{{ metadata['repo']['repo'].split('/')[1] }}-samples-docker" | ||
} | ||
|
||
# Configure the docker image for kokoro-trampoline. | ||
env_vars: { | ||
key: "TRAMPOLINE_DOCKERFILE" | ||
value: ".kokoro/docker/samples/Dockerfile" | ||
} | ||
{% else %} | ||
# Configure the docker image for kokoro-trampoline. | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE" | ||
value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" | ||
} | ||
{% endif %} | ||
# 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_v2.sh" |
6 changes: 6 additions & 0 deletions
6
synthtool/gcp/templates/python_library/.kokoro/samples/python3.10/continuous.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
env_vars: { | ||
key: "INSTALL_LIBRARY_FROM_SOURCE" | ||
value: "True" | ||
} |
18 changes: 18 additions & 0 deletions
18
synthtool/gcp/templates/python_library/.kokoro/samples/python3.10/periodic-head.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
env_vars: { | ||
key: "INSTALL_LIBRARY_FROM_SOURCE" | ||
value: "True" | ||
} | ||
|
||
env_vars: { | ||
key: "TRAMPOLINE_BUILD_FILE" | ||
value: "github/{{ metadata['repo']['repo'].split('/')[1] }}/.kokoro/test-samples-against-head.sh" | ||
} | ||
{% if custom_samples_dockerfile %} | ||
# Upload the docker image after successful builds. | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE_UPLOAD" | ||
value: "true" | ||
} | ||
{% endif %} |
13 changes: 13 additions & 0 deletions
13
synthtool/gcp/templates/python_library/.kokoro/samples/python3.10/periodic.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
env_vars: { | ||
key: "INSTALL_LIBRARY_FROM_SOURCE" | ||
value: "False" | ||
} | ||
{% if custom_samples_dockerfile %} | ||
# Upload the docker image after successful builds. | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE_UPLOAD" | ||
value: "true" | ||
} | ||
{% endif %} |
6 changes: 6 additions & 0 deletions
6
synthtool/gcp/templates/python_library/.kokoro/samples/python3.10/presubmit.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
env_vars: { | ||
key: "INSTALL_LIBRARY_FROM_SOURCE" | ||
value: "True" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters