Skip to content

Commit ced17ad

Browse files
authored
chore(several samples) Updating all instances of Pytest up to version 9.0.3 Part III (#14233)
* chore(,ultiple samples): update pytest and standardize python test matrix for a-m samples - Bump pytest to 9.0.3 (pinned to Python >= 3.10) - Update noxfile configs to only test against Python 3.10 and 3.14 - Upgrade Dockerfile base images and Beam SDKs to Python 3.14 * Added missing directory e changes. * Ammend docker files to use python 3.14 properly, ignored versions to work only on python 3.14, and removed outdated comments. * rolled back endpoints/getting-started/ since the docker file pulls a python 2.7 runtime. Will be left to be investigated at a later date.
1 parent 63efc78 commit ced17ad

173 files changed

Lines changed: 197 additions & 194 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

appengine/flexible/tasks/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Use the official Python image.
1616
# https://hub.docker.com/_/python
17-
FROM python:3.11
17+
FROM python:3.14
1818

1919
# Copy local code to the container image.
2020
ENV APP_HOME /app

appengine/flexible/tasks/noxfile_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
TEST_CONFIG_OVERRIDE = {
2424
# You can opt out from the test for specific Python versions.
25-
"ignored_versions": ["2.7", "3.7"],
25+
# Note: Docker-based sample, testing only against version specified in Dockerfile (3.14)
26+
"ignored_versions": ["2.7", "3.7", "3.10"],
2627
# Old samples are opted out of enforcing Python type hints
2728
# All new samples should feature them
2829
"enforce_type_hints": False,

auth/custom-credentials/aws/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.13-slim
1+
FROM python:3.14-slim
22

33
RUN useradd -m appuser
44

auth/custom-credentials/aws/noxfile_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
# limitations under the License.
1414

1515
TEST_CONFIG_OVERRIDE = {
16+
# Note: Docker-based sample, testing only against version specified in Dockerfile (3.14)
1617
"ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"],
1718
}

cloud-sql/mysql/sqlalchemy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Use the official Python image.
1616
# https://hub.docker.com/_/python
17-
FROM python:3.13
17+
FROM python:3.14
1818

1919
RUN apt-get update
2020

cloud-sql/postgres/sqlalchemy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Use the official Python image.
1616
# https://hub.docker.com/_/python
17-
FROM python:3.13
17+
FROM python:3.14
1818

1919
RUN apt-get update
2020

cloud-sql/sql-server/sqlalchemy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Use the official Python image.
1616
# https://hub.docker.com/_/python
17-
FROM python:3.13
17+
FROM python:3.14
1818

1919
RUN apt-get update
2020

composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM python:3.11
15+
FROM python:3.14
1616

1717
# Allow statements and log messages to immediately appear in the Cloud Run logs
1818
ENV PYTHONUNBUFFERED True

composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/noxfile_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
TEST_CONFIG_OVERRIDE = {
3333
# You can opt out from the test for specific Python versions.
3434
# Skipping for Python 3.9 due to numpy compilation failure.
35+
# Note: Docker-based sample, testing only against version specified in Dockerfile (3.14)
3536
"ignored_versions": ["2.7", "3.9", "3.10", "3.11"],
3637
# Old samples are opted out of enforcing Python type hints
3738
# All new samples should feature them

dataflow/custom-containers/miniconda/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ FROM continuumio/miniconda3:22.11.1-alpine AS builder
1818

1919
# Create a virtual environment and make it standalone with conda-pack.
2020
# https://conda.github.io/conda-pack
21-
RUN conda create -y -n env python=3.9 \
21+
RUN conda create -y -n env python=3.14 \
2222
&& conda install -y conda-pack \
2323
&& conda-pack -n env -o /tmp/env.tar \
2424
&& mkdir /opt/python \
@@ -31,7 +31,7 @@ FROM ubuntu:latest
3131
WORKDIR /pipeline
3232

3333
# Set the entrypoint to Apache Beam SDK worker launcher.
34-
COPY --from=apache/beam_python3.9_sdk:2.55.1 /opt/apache/beam /opt/apache/beam
34+
COPY --from=apache/beam_python3.14_sdk:2.73.0 /opt/apache/beam /opt/apache/beam
3535
ENTRYPOINT [ "/opt/apache/beam/boot" ]
3636

3737
# Copy the python installation from the builder stage.

0 commit comments

Comments
 (0)