Skip to content

chore(gemma2/dataflow): update google-cloud-aiplatform and protobuf for gemma2#14350

Merged
iennae merged 1 commit into
GoogleCloudPlatform:mainfrom
XrossFox:package-update-protobuf-gemma2
Jun 25, 2026
Merged

chore(gemma2/dataflow): update google-cloud-aiplatform and protobuf for gemma2#14350
iennae merged 1 commit into
GoogleCloudPlatform:mainfrom
XrossFox:package-update-protobuf-gemma2

Conversation

@XrossFox

Copy link
Copy Markdown
Contributor

Description

  • Update google-cloud-aiplatform to 1.158.0 in gemma2/ and dataflow/ samples
  • Update protobuf to 6.33.6 in gemma2/
  • Remove python version constraint for pytest in gemma2/

Fixes b/8400024

Checklist

Testing

  • I have tested this change on a live environment and verified it works as intended.

Compliance & Style


Post-Approval Actions

  • Please merge this PR for me once it is approved

…for gemma2

 - Update `google-cloud-aiplatform` to 1.158.0 in `gemma2/` and `dataflow/` samples
 - Update `protobuf` to 6.33.6 in `gemma2/`
 - Remove python version constraint for pytest in `gemma2/`

@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 dependencies across several requirements files, upgrading google-cloud-aiplatform to version 1.158.0 and updating protobuf and pytest versions. Feedback on the changes suggests retaining the [full] extra for google-cloud-aiplatform in gemma2/requirements.txt to prevent potential runtime ImportErrors from missing dependencies.

Comment thread gemma2/requirements.txt
@@ -1,2 +1,2 @@
google-cloud-aiplatform[full]==1.157.0
protobuf==5.29.5
google-cloud-aiplatform==1.158.0

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.

medium

The [full] extra was removed from google-cloud-aiplatform during this upgrade. If the gemma2 sample relies on any of the extra dependencies installed by google-cloud-aiplatform[full] (such as tensorboard, shap, etc.), this could cause runtime ImportErrors. Please retain the [full] extra.

google-cloud-aiplatform[full]==1.158.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tested this changes witouth the full, and found it to not be necessary, on the contrary, using the full caused issued on installation.

@XrossFox

Copy link
Copy Markdown
Contributor Author

I have tested this dependency changes on Python 3.10 and 3.14, both are working correctly. Please note that python 3.10 has a few warnings about that specific version being phased out:

image image

@Kef131 Kef131 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@XrossFox XrossFox marked this pull request as ready for review June 24, 2026 23:27
@XrossFox XrossFox requested review from a team as code owners June 24, 2026 23:27
@iennae iennae merged commit a5dbe88 into GoogleCloudPlatform:main Jun 25, 2026
9 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants