Skip to content

chore(several samples) Updating all instances of Pytest up to version 9.0.3 Part IV#14238

Draft
XrossFox wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
XrossFox:python-pytest-dependency-update-V
Draft

chore(several samples) Updating all instances of Pytest up to version 9.0.3 Part IV#14238
XrossFox wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
XrossFox:python-pytest-dependency-update-V

Conversation

@XrossFox
Copy link
Copy Markdown
Contributor

@XrossFox XrossFox commented May 27, 2026

  • 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.

Description

Fixes #

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

… 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.
@product-auto-label product-auto-label Bot added samples Issues that are directly related to samples. api: cloudoptimization Issues related to the Cloud Optimization AI API. api: notebooks Issues related to the Agent Platform Workbench API. api: people-and-planet-ai labels May 27, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread noxfile_config.py
Comment thread people-and-planet-ai/timeseries-classification/Dockerfile
Comment thread people-and-planet-ai/timeseries-classification/Dockerfile
Comment thread run/hello-broken/Dockerfile
Comment thread people-and-planet-ai/geospatial-classification/noxfile_config.py
Comment thread storage/samples/snippets/noxfile_config.py
Comment thread run/mcp-server/Dockerfile
@XrossFox
Copy link
Copy Markdown
Contributor Author

XrossFox commented May 27, 2026

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/
https://hub.docker.com/_/python/tags?name=3.14
https://hub.docker.com/r/apache/beam_python3.14_sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: cloudoptimization Issues related to the Cloud Optimization AI API. api: notebooks Issues related to the Agent Platform Workbench API. api: people-and-planet-ai samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant