chore(several samples) Updating all instances of Pytest up to version 9.0.3 Part IV#14238
chore(several samples) Updating all instances of Pytest up to version 9.0.3 Part IV#14238XrossFox wants to merge 2 commits into
Conversation
… 9.0.3 Part IV - Updated pytest to 9.0.3 for all test requirement files, restricted to Python 3.10 and newer. - Configured Nox configurations (noxfile_config.py) to test only against Python 3.10 and 3.14, dropping support for older versions. - Updated Docker-based pipeline tests to exclusively run against Python 3.14 to match container runtime environments. - Updated Dockerfiles to use Python 3.14 as the base image (python:3.14 and python:3.14-slim). - Updated system dependencies (apt-get) in Dataflow custom containers to install Python 3.14 packages and correctly link alternatives. - Updated Apache Beam SDK pulls to use the beam_python3.14_sdk image.
There was a problem hiding this comment.
Code Review
This pull request upgrades pytest to 9.0.3 for Python versions >= 3.10 and updates various Dockerfiles and Nox configurations to target Python 3.14. However, multiple critical issues were identified because Python 3.14 is currently unreleased and unstable. Using python:3.14 or python:3.14-slim as base images, referencing non-existent Apache Beam SDK images (beam_python3.14_sdk:2.73.0), and ignoring all stable Python versions (3.8 through 3.13) in Nox configurations will cause build and test failures. The feedback strongly recommends reverting to stable Python versions (such as 3.11, 3.12, or 3.13) and adjusting the ignored versions in Nox configurations to ensure a viable test environment.
The lowest version supported by pytest is Python 3.10, so all tests should be upgraded to run that at minimu. Python 3.14 and apache beam 2.73 have been released and are both, available on pypi and docker hub. https://pypi.org/project/apache-beam/ |
Description
Fixes #
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
nox -s py-3.9(see Test Environment Setup)nox -s lint(see Test Environment Setup)