| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9c6040a commit 69e5dbd
11 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,5 +13,5 @@ | |||
| 13 | 13 | # limitations under the License. | |
| 14 | 14 | docker: | |
| 15 | 15 | image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest | |
| 16 | - digest: sha256:caffe0a9277daeccc4d1de5c9b55ebba0901b57c2f713ec9c876b0d4ec064f61 | ||
| 17 | - # created: 2023-11-08T19:46:45.022803742Z | ||
| 16 | + digest: sha256:bacc3af03bff793a03add584537b36b5644342931ad989e3ba1171d3bd5399f5 | ||
| 17 | + # created: 2023-11-23T18:17:28.105124211Z | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,3 +12,7 @@ branchProtectionRules: | |||
| 12 | 12 | - 'Samples - Lint' | |
| 13 | 13 | - 'Samples - Python 3.7' | |
| 14 | 14 | - 'Samples - Python 3.8' | |
| 15 | + - 'Samples - Python 3.9' | ||
| 16 | + - 'Samples - Python 3.10' | ||
| 17 | + - 'Samples - Python 3.11' | ||
| 18 | + - 'Samples - Python 3.12' | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,59 @@ | |||
| 1 | + # Format: //devtools/kokoro/config/proto/build.proto | ||
| 2 | + | ||
| 3 | + # Build logs will be here | ||
| 4 | + action { | ||
| 5 | + define_artifacts { | ||
| 6 | + regex: "**/*sponge_log.xml" | ||
| 7 | + } | ||
| 8 | + } | ||
| 9 | + | ||
| 10 | + # Specify which tests to run | ||
| 11 | + env_vars: { | ||
| 12 | + key: "RUN_TESTS_SESSION" | ||
| 13 | + value: "py-3.12" | ||
| 14 | + } | ||
| 15 | + | ||
| 16 | + # Declare build specific Cloud project. | ||
| 17 | + env_vars: { | ||
| 18 | + key: "BUILD_SPECIFIC_GCLOUD_PROJECT" | ||
| 19 | + value: "python-docs-samples-tests-312" | ||
| 20 | + } | ||
| 21 | + | ||
| 22 | + env_vars: { | ||
| 23 | + key: "TRAMPOLINE_BUILD_FILE" | ||
| 24 | + value: "github/python-logging/.kokoro/test-samples.sh" | ||
| 25 | + } | ||
| 26 | + | ||
| 27 | + # Configure the docker image for kokoro-trampoline. | ||
| 28 | + env_vars: { | ||
| 29 | + key: "TRAMPOLINE_IMAGE" | ||
| 30 | + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + # Download secrets for samples | ||
| 34 | + gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" | ||
| 35 | + | ||
| 36 | + # Download trampoline resources. | ||
| 37 | + gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" | ||
| 38 | + | ||
| 39 | + # Use the trampoline script to run in docker. | ||
| 40 | + build_file: "python-logging/.kokoro/trampoline_v2.sh" | ||
| 41 | + | ||
| 42 | + ############################################# | ||
| 43 | + # this section merged from .kokoro/common_env_vars.cfg using owlbot.py | ||
| 44 | + | ||
| 45 | + env_vars: { | ||
| 46 | + key: "PRODUCT_AREA_LABEL" | ||
| 47 | + value: "observability" | ||
| 48 | + } | ||
| 49 | + env_vars: { | ||
| 50 | + key: "PRODUCT_LABEL" | ||
| 51 | + value: "logging" | ||
| 52 | + } | ||
| 53 | + env_vars: { | ||
| 54 | + key: "LANGUAGE_LABEL" | ||
| 55 | + value: "python" | ||
| 56 | + } | ||
| 57 | + | ||
| 58 | + ################################################### | ||
| 59 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,6 @@ | |||
| 1 | + # Format: //devtools/kokoro/config/proto/build.proto | ||
| 2 | + | ||
| 3 | + env_vars: { | ||
| 4 | + key: "INSTALL_LIBRARY_FROM_SOURCE" | ||
| 5 | + value: "True" | ||
| 6 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,11 @@ | |||
| 1 | + # Format: //devtools/kokoro/config/proto/build.proto | ||
| 2 | + | ||
| 3 | + env_vars: { | ||
| 4 | + key: "INSTALL_LIBRARY_FROM_SOURCE" | ||
| 5 | + value: "True" | ||
| 6 | + } | ||
| 7 | + | ||
| 8 | + env_vars: { | ||
| 9 | + key: "TRAMPOLINE_BUILD_FILE" | ||
| 10 | + value: "github/python-logging/.kokoro/test-samples-against-head.sh" | ||
| 11 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,6 @@ | |||
| 1 | + # Format: //devtools/kokoro/config/proto/build.proto | ||
| 2 | + | ||
| 3 | + env_vars: { | ||
| 4 | + key: "INSTALL_LIBRARY_FROM_SOURCE" | ||
| 5 | + value: "False" | ||
| 6 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,6 @@ | |||
| 1 | + # Format: //devtools/kokoro/config/proto/build.proto | ||
| 2 | + | ||
| 3 | + env_vars: { | ||
| 4 | + key: "INSTALL_LIBRARY_FROM_SOURCE" | ||
| 5 | + value: "True" | ||
| 6 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,7 @@ In order to add a feature: | |||
| 22 | 22 | documentation. | |
| 23 | 23 | ||
| 24 | 24 | - The feature must work fully on the following CPython versions: | |
| 25 | - 3.7, 3.8, 3.9, 3.10 and 3.11 on both UNIX and Windows. | ||
| 25 | + 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12 on both UNIX and Windows. | ||
| 26 | 26 | ||
| 27 | 27 | - The feature must not add unnecessary dependencies (where | |
| 28 | 28 | "unnecessary" is of course subjective, but new dependencies should | |
@@ -72,7 +72,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests. | |||
| 72 | 72 | ||
| 73 | 73 | - To run a single unit test:: | |
| 74 | 74 | ||
| 75 | - $ nox -s unit-3.11 -- -k <name of test> | ||
| 75 | + $ nox -s unit-3.12 -- -k <name of test> | ||
| 76 | 76 | ||
| 77 | 77 | ||
| 78 | 78 | .. note:: | |
@@ -226,12 +226,14 @@ We support: | |||
| 226 | 226 | - `Python 3.9`_ | |
| 227 | 227 | - `Python 3.10`_ | |
| 228 | 228 | - `Python 3.11`_ | |
| 229 | + - `Python 3.12`_ | ||
| 229 | 230 | ||
| 230 | 231 | .. _Python 3.7: https://docs.python.org/3.7/ | |
| 231 | 232 | .. _Python 3.8: https://docs.python.org/3.8/ | |
| 232 | 233 | .. _Python 3.9: https://docs.python.org/3.9/ | |
| 233 | 234 | .. _Python 3.10: https://docs.python.org/3.10/ | |
| 234 | 235 | .. _Python 3.11: https://docs.python.org/3.11/ | |
| 236 | + .. _Python 3.12: https://docs.python.org/3.12/ | ||
| 235 | 237 | ||
| 236 | 238 | ||
| 237 | 239 | Supported versions can be found in our ``noxfile.py`` `config`_. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,7 @@ | |||
| 34 | 34 | ||
| 35 | 35 | DEFAULT_PYTHON_VERSION = "3.8" | |
| 36 | 36 | ||
| 37 | - UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
| 37 | + UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
| 38 | 38 | UNIT_TEST_STANDARD_DEPENDENCIES = [ | |
| 39 | 39 | "mock", | |
| 40 | 40 | "asyncmock", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,7 +89,7 @@ def get_pytest_env_vars() -> Dict[str, str]: | |||
| 89 | 89 | ||
| 90 | 90 | # DO NOT EDIT - automatically generated. | |
| 91 | 91 | # All versions used to test samples. | |
| 92 | - ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
| 92 | + ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
| 93 | 93 | ||
| 94 | 94 | # Any default versions that should be ignored. | |
| 95 | 95 | IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] | |
| Back | FazBrowse Home | New Git URL |
0 commit comments