Skip to content

chore(deps): update dependency apache_beam to v2.66.0 #13531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dataflow/gemma-flex-template/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# For reproducible builds, it is better to also include transitive dependencies:
# https://github.com/GoogleCloudPlatform/python-docs-samples/blob/c93accadf3bd29e9c3166676abb2c95564579c5e/dataflow/flex-templates/pipeline_with_dependencies/requirements.txt#L22,
# but for simplicity of this example, we are only including the top-level dependencies.
apache_beam[gcp]==2.65.0
apache_beam[gcp]==2.66.0
Copy link
Contributor

Choose a reason for hiding this comment

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

high

Updating apache_beam to v2.66.0 here will cause a version mismatch with the Beam SDK used in the Dockerfile, which can lead to runtime failures for the Dataflow job.

The Dockerfile for this sample hardcodes the Beam SDK version at line 33:

# File: dataflow/gemma-flex-template/Dockerfile
...
32: # The Beam version should match the version specified in requirements.txt
33: COPY --from=apache/beam_python3.10_sdk:2.62.0 /opt/apache/beam /opt/apache/beam

As the comment on line 32 states, this version should match the one in requirements.txt.

To fix this, please update the Dockerfile to use a matching 2.66.0 image tag. This change is required in a separate file, but is a direct consequence of this dependency update.

immutabledict==4.2.0

# Also required, please download and install gemma_pytorch.
Expand Down