From 44db80569c08a9ed136aec5bf41a9d72323808ee Mon Sep 17 00:00:00 2001 From: ohmayr Date: Mon, 10 Aug 2026 20:00:39 +0000 Subject: [PATCH 1/2] chore(generator): run prerelease_deps and core_deps_from_source on DEFAULT_PYTHON_VERSION --- packages/gapic-generator/gapic/templates/noxfile.py.j2 | 4 ++-- .../tests/integration/goldens/asset/noxfile.py | 4 ++-- .../tests/integration/goldens/credentials/noxfile.py | 4 ++-- .../tests/integration/goldens/eventarc/noxfile.py | 4 ++-- .../tests/integration/goldens/logging/noxfile.py | 4 ++-- .../tests/integration/goldens/logging_internal/noxfile.py | 4 ++-- .../tests/integration/goldens/redis/noxfile.py | 4 ++-- .../tests/integration/goldens/redis_selective/noxfile.py | 4 ++-- .../integration/goldens/storagebatchoperations/noxfile.py | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/packages/gapic-generator/gapic/templates/noxfile.py.j2 b/packages/gapic-generator/gapic/templates/noxfile.py.j2 index 8db595319396..93f7313c19ca 100644 --- a/packages/gapic-generator/gapic/templates/noxfile.py.j2 +++ b/packages/gapic-generator/gapic/templates/noxfile.py.j2 @@ -457,7 +457,7 @@ def docfx(session): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], @@ -572,7 +572,7 @@ def prerelease_deps(session, protobuf_implementation): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], diff --git a/packages/gapic-generator/tests/integration/goldens/asset/noxfile.py b/packages/gapic-generator/tests/integration/goldens/asset/noxfile.py index 09d28712c73c..1094ac0f97cb 100755 --- a/packages/gapic-generator/tests/integration/goldens/asset/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/asset/noxfile.py @@ -449,7 +449,7 @@ def docfx(session): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], @@ -564,7 +564,7 @@ def prerelease_deps(session, protobuf_implementation): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], diff --git a/packages/gapic-generator/tests/integration/goldens/credentials/noxfile.py b/packages/gapic-generator/tests/integration/goldens/credentials/noxfile.py index 65e26efe21d3..087722a1e6c0 100755 --- a/packages/gapic-generator/tests/integration/goldens/credentials/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/credentials/noxfile.py @@ -449,7 +449,7 @@ def docfx(session): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], @@ -564,7 +564,7 @@ def prerelease_deps(session, protobuf_implementation): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], diff --git a/packages/gapic-generator/tests/integration/goldens/eventarc/noxfile.py b/packages/gapic-generator/tests/integration/goldens/eventarc/noxfile.py index 42b2349e2cc1..23ac067bdef0 100755 --- a/packages/gapic-generator/tests/integration/goldens/eventarc/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/eventarc/noxfile.py @@ -449,7 +449,7 @@ def docfx(session): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], @@ -564,7 +564,7 @@ def prerelease_deps(session, protobuf_implementation): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], diff --git a/packages/gapic-generator/tests/integration/goldens/logging/noxfile.py b/packages/gapic-generator/tests/integration/goldens/logging/noxfile.py index 09e4b345592a..9f862041977f 100755 --- a/packages/gapic-generator/tests/integration/goldens/logging/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/logging/noxfile.py @@ -449,7 +449,7 @@ def docfx(session): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], @@ -564,7 +564,7 @@ def prerelease_deps(session, protobuf_implementation): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], diff --git a/packages/gapic-generator/tests/integration/goldens/logging_internal/noxfile.py b/packages/gapic-generator/tests/integration/goldens/logging_internal/noxfile.py index 09e4b345592a..9f862041977f 100755 --- a/packages/gapic-generator/tests/integration/goldens/logging_internal/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/logging_internal/noxfile.py @@ -449,7 +449,7 @@ def docfx(session): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], @@ -564,7 +564,7 @@ def prerelease_deps(session, protobuf_implementation): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], diff --git a/packages/gapic-generator/tests/integration/goldens/redis/noxfile.py b/packages/gapic-generator/tests/integration/goldens/redis/noxfile.py index 9b3356dd1272..a28f14fbec56 100755 --- a/packages/gapic-generator/tests/integration/goldens/redis/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/redis/noxfile.py @@ -449,7 +449,7 @@ def docfx(session): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], @@ -564,7 +564,7 @@ def prerelease_deps(session, protobuf_implementation): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], diff --git a/packages/gapic-generator/tests/integration/goldens/redis_selective/noxfile.py b/packages/gapic-generator/tests/integration/goldens/redis_selective/noxfile.py index 9b3356dd1272..a28f14fbec56 100755 --- a/packages/gapic-generator/tests/integration/goldens/redis_selective/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/redis_selective/noxfile.py @@ -449,7 +449,7 @@ def docfx(session): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], @@ -564,7 +564,7 @@ def prerelease_deps(session, protobuf_implementation): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], diff --git a/packages/gapic-generator/tests/integration/goldens/storagebatchoperations/noxfile.py b/packages/gapic-generator/tests/integration/goldens/storagebatchoperations/noxfile.py index db370dd3dd0f..3308db78f076 100755 --- a/packages/gapic-generator/tests/integration/goldens/storagebatchoperations/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/storagebatchoperations/noxfile.py @@ -449,7 +449,7 @@ def docfx(session): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], @@ -564,7 +564,7 @@ def prerelease_deps(session, protobuf_implementation): ) -@nox.session(python=PREVIEW_PYTHON_VERSION) +@nox.session(python=DEFAULT_PYTHON_VERSION) @nox.parametrize( "protobuf_implementation", ["python", "upb"], From 92f9a43233cce02aae0b75c0b765e62835f558cf Mon Sep 17 00:00:00 2001 From: ohmayr Date: Mon, 10 Aug 2026 20:07:49 +0000 Subject: [PATCH 2/2] update workflow --- .github/workflows/gapic-generator-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gapic-generator-tests.yml b/.github/workflows/gapic-generator-tests.yml index 17fb7c64f7fe..90b53dcf9c5e 100644 --- a/.github/workflows/gapic-generator-tests.yml +++ b/.github/workflows/gapic-generator-tests.yml @@ -154,10 +154,10 @@ jobs: - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: persist-credentials: false - - name: Set up Python ${{ needs.python_config.outputs.prerelease_python }} + - name: Set up Python ${{ needs.python_config.outputs.latest_stable_python }} uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 with: - python-version: ${{ needs.python_config.outputs.prerelease_python }} + python-version: ${{ needs.python_config.outputs.latest_stable_python }} allow-prereleases: true # Caches compiled wheels locally to prevent building heavy libraries # such as grpcio, which we build from scratch on every run for Python 3.15+.