feat: add Python 3.14 to samples testing image by parthea · Pull Request #13596 · GoogleCloudPlatform/python-docs-samples · GitHub
Skip to content

feat: add Python 3.14 to samples testing image#13596

Merged
iennae merged 7 commits into
mainfrom
add-python-314
Dec 17, 2025
Merged

feat: add Python 3.14 to samples testing image#13596
iennae merged 7 commits into
mainfrom
add-python-314

Conversation

@parthea

@parthea parthea commented Oct 7, 2025

Copy link
Copy Markdown
Collaborator

Similar to #12780

@parthea parthea requested review from a team as code owners October 7, 2025 19:32
@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label Oct 7, 2025
@gemini-code-assist

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

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 updates the Python versions in the testing Docker image, adding support for Python 3.14 and refreshing patch versions for others. My feedback focuses on improving the readability and maintainability of the Dockerfile where these versions are listed.

Comment thread .kokoro/docker/Dockerfile Outdated

@vchudnov-g vchudnov-g left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One small suggestion

Comment thread .kokoro/docker/Dockerfile Outdated
3.12.11 \
3.13.8 \
3.14.0" \
&& for PYTHON_VERSION in $PYTHON_VERSIONS; do \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd prefer to avoid variables that differ only by one letter. How about
for VERSION in $PYTHON_VERSIONS or for PYTHON_VERSION in $ALL_PYTHON_VERSIONS?

Comment thread .kokoro/docker/Dockerfile Outdated
&& echo "disable-ipv6" >> "${GNUPGHOME}/dirmngr.conf" \
&& /tmp/fetch_gpg_keys.sh \
&& PYTHON_VERSIONS="\
2.7.18 \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This commit removes Python 2.7 entirely from the base image. Will this affect CI?

Per an earlier update, #13066 (comment) indicates this was going to be removed, but it's still an active check on this PR. I also recall an earlier PR (can't find it now) where removing Python 2.7 breaks kokoro. Was that resolved? I'm cautious of an update that adds a new python version but also coincidently removes an older major version.

@glasnt

glasnt commented Oct 15, 2025

Copy link
Copy Markdown
Contributor

Guessing based on #12780 that we can't test the new image works until after this PR is merged and new changes come in?

I'm also guessing that the changes to this Docker image aren't tested until after this PR is merged and the image is rebuilt? (Automatically via a Cloud Build trigger, by the look of it).

Is there a manual way to test that the Dockerfile changes work before merging the PR?

(The failing tests here appear to all be related to individual tests not working, which I will begin addressing separetely.)

@chalmerlowe

Copy link
Copy Markdown
Contributor

@iennae iennae added kokoro:force-run Add this label to force Kokoro to re-run the tests. kokoro:run Add this label to force Kokoro to re-run the tests. labels Dec 12, 2025
@kokoro-team kokoro-team removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Dec 12, 2025
@vchudnov-g vchudnov-g added kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Dec 15, 2025
@kokoro-team kokoro-team removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Dec 15, 2025

@iennae iennae left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There are some samples that need to be updated; we're prioritizing new infra and unblocking samples that need the new runtimes.

@iennae iennae merged commit 181247a into main Dec 17, 2025
7 of 15 checks passed
@iennae iennae deleted the add-python-314 branch December 17, 2025 20:30
@vchudnov-g vchudnov-g added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kokoro:force-run Add this label to force Kokoro to re-run the tests. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants