From fc3edd5ff2cd60986af144062bc846fde5b52746 Mon Sep 17 00:00:00 2001 From: Chalmer Lowe Date: Mon, 3 Jun 2024 16:22:16 -0400 Subject: [PATCH] chore: updates continuous CI/CD tests against specific versions of Python (#1941) Updates the regular continuous CI/CD checks to test against specific versions of Python (versions that aren't our most recent supported version and aren't our oldest supported version). Also removes a CI/CD check that is superceded by a more recent version of check (prerelease-deps >>> replaced by prerelease-deps-3.12). Modifies owlbot to avoid it adding prerelease-deps back into the mix since that file is a default in synthtool. --- .kokoro/continuous/prerelease-deps.cfg | 7 ------- .kokoro/continuous/unit-tests-misc.cfg | 9 +++++++++ owlbot.py | 1 + 3 files changed, 10 insertions(+), 7 deletions(-) delete mode 100644 .kokoro/continuous/prerelease-deps.cfg create mode 100644 .kokoro/continuous/unit-tests-misc.cfg diff --git a/.kokoro/continuous/prerelease-deps.cfg b/.kokoro/continuous/prerelease-deps.cfg deleted file mode 100644 index 3595fb43f..000000000 --- a/.kokoro/continuous/prerelease-deps.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Only run this nox session. -env_vars: { - key: "NOX_SESSION" - value: "prerelease_deps" -} diff --git a/.kokoro/continuous/unit-tests-misc.cfg b/.kokoro/continuous/unit-tests-misc.cfg new file mode 100644 index 000000000..6598baee7 --- /dev/null +++ b/.kokoro/continuous/unit-tests-misc.cfg @@ -0,0 +1,9 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Only run these nox sessions. +# A subset based on Python versions that are neither our newest OR oldest +# supported versions of Python +env_vars: { + key: "NOX_SESSION" + value: "unit_noextras-3.9 unit_noextras-3.10 unit_noextras-3.11 unit-3.9 unit-3.10 unit-3.11" +} \ No newline at end of file diff --git a/owlbot.py b/owlbot.py index c2de31042..778cc3e53 100644 --- a/owlbot.py +++ b/owlbot.py @@ -70,6 +70,7 @@ # Include custom SNIPPETS_TESTS job for performance. # https://github.com/googleapis/python-bigquery/issues/191 ".kokoro/presubmit/presubmit.cfg", + ".kokoro/continuous/prerelease-deps.cfg", ".github/workflows", # exclude gh actions as credentials are needed for tests "README.rst", ],