Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 55823de

Browse files
committed
update goldens
1 parent 2a9560d commit 55823de

8 files changed

Lines changed: 83 additions & 35 deletions

File tree

WORKSPACE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,9 @@ switched_rules_by_language(
123123
gapic = True,
124124
grpc = True,
125125
)
126+
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
127+
python_register_toolchains(
128+
name = "python311",
129+
python_version = "3.11",
130+
)
131+

tests/integration/goldens/asset/noxfile.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636
"3.11",
3737
"3.12",
3838
"3.13",
39+
"3.14",
3940
]
4041

41-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
42+
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
43+
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
4244

4345
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
4446

@@ -58,7 +60,7 @@
5860
UNIT_TEST_EXTRAS: List[str] = []
5961
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
6062

61-
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
63+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
6264
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
6365
"mock",
6466
"pytest",
@@ -222,7 +224,9 @@ def install_unittest_dependencies(session, *constraints):
222224
def unit(session, protobuf_implementation):
223225
# Install all test dependencies, then install this package in-place.
224226

225-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
227+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
228+
# Remove this check once support for Protobuf 3.x is dropped.
229+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
226230
session.skip("cpp implementation is not supported in python 3.11+")
227231

228232
constraints_path = str(
@@ -419,7 +423,7 @@ def docfx(session):
419423
)
420424

421425

422-
@nox.session(python=DEFAULT_PYTHON_VERSION)
426+
@nox.session(python=PRE_RELEASE_PYTHON)
423427
@nox.parametrize(
424428
"protobuf_implementation",
425429
["python", "upb", "cpp"],
@@ -432,7 +436,9 @@ def prerelease_deps(session, protobuf_implementation):
432436
`pip install --pre <package>`.
433437
"""
434438

435-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
439+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
440+
# Remove this check once support for Protobuf 3.x is dropped.
441+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
436442
session.skip("cpp implementation is not supported in python 3.11+")
437443

438444
# Install all dependencies

tests/integration/goldens/credentials/noxfile.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636
"3.11",
3737
"3.12",
3838
"3.13",
39+
"3.14",
3940
]
4041

41-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
42+
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
43+
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
4244

4345
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
4446

@@ -58,7 +60,7 @@
5860
UNIT_TEST_EXTRAS: List[str] = []
5961
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
6062

61-
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
63+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
6264
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
6365
"mock",
6466
"pytest",
@@ -222,7 +224,9 @@ def install_unittest_dependencies(session, *constraints):
222224
def unit(session, protobuf_implementation):
223225
# Install all test dependencies, then install this package in-place.
224226

225-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
227+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
228+
# Remove this check once support for Protobuf 3.x is dropped.
229+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
226230
session.skip("cpp implementation is not supported in python 3.11+")
227231

228232
constraints_path = str(
@@ -419,7 +423,7 @@ def docfx(session):
419423
)
420424

421425

422-
@nox.session(python=DEFAULT_PYTHON_VERSION)
426+
@nox.session(python=PRE_RELEASE_PYTHON)
423427
@nox.parametrize(
424428
"protobuf_implementation",
425429
["python", "upb", "cpp"],
@@ -432,7 +436,9 @@ def prerelease_deps(session, protobuf_implementation):
432436
`pip install --pre <package>`.
433437
"""
434438

435-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
439+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
440+
# Remove this check once support for Protobuf 3.x is dropped.
441+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
436442
session.skip("cpp implementation is not supported in python 3.11+")
437443

438444
# Install all dependencies

tests/integration/goldens/eventarc/noxfile.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636
"3.11",
3737
"3.12",
3838
"3.13",
39+
"3.14",
3940
]
4041

41-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
42+
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
43+
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
4244

4345
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
4446

@@ -58,7 +60,7 @@
5860
UNIT_TEST_EXTRAS: List[str] = []
5961
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
6062

61-
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
63+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
6264
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
6365
"mock",
6466
"pytest",
@@ -222,7 +224,9 @@ def install_unittest_dependencies(session, *constraints):
222224
def unit(session, protobuf_implementation):
223225
# Install all test dependencies, then install this package in-place.
224226

225-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
227+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
228+
# Remove this check once support for Protobuf 3.x is dropped.
229+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
226230
session.skip("cpp implementation is not supported in python 3.11+")
227231

228232
constraints_path = str(
@@ -419,7 +423,7 @@ def docfx(session):
419423
)
420424

421425

422-
@nox.session(python=DEFAULT_PYTHON_VERSION)
426+
@nox.session(python=PRE_RELEASE_PYTHON)
423427
@nox.parametrize(
424428
"protobuf_implementation",
425429
["python", "upb", "cpp"],
@@ -432,7 +436,9 @@ def prerelease_deps(session, protobuf_implementation):
432436
`pip install --pre <package>`.
433437
"""
434438

435-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
439+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
440+
# Remove this check once support for Protobuf 3.x is dropped.
441+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
436442
session.skip("cpp implementation is not supported in python 3.11+")
437443

438444
# Install all dependencies

tests/integration/goldens/logging/noxfile.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636
"3.11",
3737
"3.12",
3838
"3.13",
39+
"3.14",
3940
]
4041

41-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
42+
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
43+
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
4244

4345
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
4446

@@ -58,7 +60,7 @@
5860
UNIT_TEST_EXTRAS: List[str] = []
5961
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
6062

61-
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
63+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
6264
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
6365
"mock",
6466
"pytest",
@@ -222,7 +224,9 @@ def install_unittest_dependencies(session, *constraints):
222224
def unit(session, protobuf_implementation):
223225
# Install all test dependencies, then install this package in-place.
224226

225-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
227+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
228+
# Remove this check once support for Protobuf 3.x is dropped.
229+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
226230
session.skip("cpp implementation is not supported in python 3.11+")
227231

228232
constraints_path = str(
@@ -419,7 +423,7 @@ def docfx(session):
419423
)
420424

421425

422-
@nox.session(python=DEFAULT_PYTHON_VERSION)
426+
@nox.session(python=PRE_RELEASE_PYTHON)
423427
@nox.parametrize(
424428
"protobuf_implementation",
425429
["python", "upb", "cpp"],
@@ -432,7 +436,9 @@ def prerelease_deps(session, protobuf_implementation):
432436
`pip install --pre <package>`.
433437
"""
434438

435-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
439+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
440+
# Remove this check once support for Protobuf 3.x is dropped.
441+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
436442
session.skip("cpp implementation is not supported in python 3.11+")
437443

438444
# Install all dependencies

tests/integration/goldens/logging_internal/noxfile.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636
"3.11",
3737
"3.12",
3838
"3.13",
39+
"3.14",
3940
]
4041

41-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
42+
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
43+
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
4244

4345
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
4446

@@ -58,7 +60,7 @@
5860
UNIT_TEST_EXTRAS: List[str] = []
5961
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
6062

61-
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
63+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
6264
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
6365
"mock",
6466
"pytest",
@@ -222,7 +224,9 @@ def install_unittest_dependencies(session, *constraints):
222224
def unit(session, protobuf_implementation):
223225
# Install all test dependencies, then install this package in-place.
224226

225-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
227+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
228+
# Remove this check once support for Protobuf 3.x is dropped.
229+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
226230
session.skip("cpp implementation is not supported in python 3.11+")
227231

228232
constraints_path = str(
@@ -419,7 +423,7 @@ def docfx(session):
419423
)
420424

421425

422-
@nox.session(python=DEFAULT_PYTHON_VERSION)
426+
@nox.session(python=PRE_RELEASE_PYTHON)
423427
@nox.parametrize(
424428
"protobuf_implementation",
425429
["python", "upb", "cpp"],
@@ -432,7 +436,9 @@ def prerelease_deps(session, protobuf_implementation):
432436
`pip install --pre <package>`.
433437
"""
434438

435-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
439+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
440+
# Remove this check once support for Protobuf 3.x is dropped.
441+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
436442
session.skip("cpp implementation is not supported in python 3.11+")
437443

438444
# Install all dependencies

tests/integration/goldens/redis/noxfile.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636
"3.11",
3737
"3.12",
3838
"3.13",
39+
"3.14",
3940
]
4041

41-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
42+
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
43+
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
4244

4345
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
4446

@@ -58,7 +60,7 @@
5860
UNIT_TEST_EXTRAS: List[str] = []
5961
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
6062

61-
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
63+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
6264
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
6365
"mock",
6466
"pytest",
@@ -222,7 +224,9 @@ def install_unittest_dependencies(session, *constraints):
222224
def unit(session, protobuf_implementation):
223225
# Install all test dependencies, then install this package in-place.
224226

225-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
227+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
228+
# Remove this check once support for Protobuf 3.x is dropped.
229+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
226230
session.skip("cpp implementation is not supported in python 3.11+")
227231

228232
constraints_path = str(
@@ -419,7 +423,7 @@ def docfx(session):
419423
)
420424

421425

422-
@nox.session(python=DEFAULT_PYTHON_VERSION)
426+
@nox.session(python=PRE_RELEASE_PYTHON)
423427
@nox.parametrize(
424428
"protobuf_implementation",
425429
["python", "upb", "cpp"],
@@ -432,7 +436,9 @@ def prerelease_deps(session, protobuf_implementation):
432436
`pip install --pre <package>`.
433437
"""
434438

435-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
439+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
440+
# Remove this check once support for Protobuf 3.x is dropped.
441+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
436442
session.skip("cpp implementation is not supported in python 3.11+")
437443

438444
# Install all dependencies

tests/integration/goldens/redis_selective/noxfile.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636
"3.11",
3737
"3.12",
3838
"3.13",
39+
"3.14",
3940
]
4041

41-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
42+
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
43+
PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
4244

4345
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
4446

@@ -58,7 +60,7 @@
5860
UNIT_TEST_EXTRAS: List[str] = []
5961
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
6062

61-
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
63+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
6264
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
6365
"mock",
6466
"pytest",
@@ -222,7 +224,9 @@ def install_unittest_dependencies(session, *constraints):
222224
def unit(session, protobuf_implementation):
223225
# Install all test dependencies, then install this package in-place.
224226

225-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
227+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
228+
# Remove this check once support for Protobuf 3.x is dropped.
229+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
226230
session.skip("cpp implementation is not supported in python 3.11+")
227231

228232
constraints_path = str(
@@ -419,7 +423,7 @@ def docfx(session):
419423
)
420424

421425

422-
@nox.session(python=DEFAULT_PYTHON_VERSION)
426+
@nox.session(python=PRE_RELEASE_PYTHON)
423427
@nox.parametrize(
424428
"protobuf_implementation",
425429
["python", "upb", "cpp"],
@@ -432,7 +436,9 @@ def prerelease_deps(session, protobuf_implementation):
432436
`pip install --pre <package>`.
433437
"""
434438

435-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
439+
# TODO(https://github.com/googleapis/synthtool/issues/1976):
440+
# Remove this check once support for Protobuf 3.x is dropped.
441+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
436442
session.skip("cpp implementation is not supported in python 3.11+")
437443

438444
# Install all dependencies

0 commit comments

Comments
 (0)