Skip to content

docs(samples): Remove Beam version from requirements.txt file#13002

Merged
glasnt merged 2 commits intoGoogleCloudPlatform:mainfrom
VeronicaWasson:flex_template_requirements
Jan 10, 2025
Merged

docs(samples): Remove Beam version from requirements.txt file#13002
glasnt merged 2 commits intoGoogleCloudPlatform:mainfrom
VeronicaWasson:flex_template_requirements

Conversation

@VeronicaWasson
Copy link
Contributor

Description

This sample pinned the Beam SDK version number. However, the latest template base image always uses the latest Beam, so it's not needed and can cause errors;

More information: b/374216225

Checklist

@VeronicaWasson VeronicaWasson requested review from a team as code owners December 17, 2024 01:29
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Hi VeronicaWasson,

Gemini is currently reviewing this pull request and will provide a full review shortly. In the meantime, here's a quick summary for you and other reviewers to get up to speed:

This pull request removes the pinned Beam SDK version from the requirements.txt file within the dataflow/flex-templates/getting_started directory. The intent, as stated in the description, is to resolve errors caused by pinning the Beam version when the latest template base image already uses the latest Beam version. The change involves a single line modification in dataflow/flex-templates/getting_started/requirements.txt, removing the specific version number and leaving only apache-beam[gcp]. This allows the build to use the latest available Beam SDK.

The change is straightforward and addresses a potential source of errors. The PR description also includes a reference to a related issue (b/374216225), which provides additional context.


Here's a little haiku to lighten the mood:

Version numbers gone,
Latest Beam now flows freely,
Errors fade away.

Thanks!
Gemini

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Dec 17, 2024
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

This pull request removes the pinned Beam SDK version from the requirements.txt file. This is a good change as it avoids potential conflicts with the base image's Beam version and aligns with the recommended practice of using the latest Beam SDK. The PR description clearly explains the rationale for the change and references the related bug report. The checklist is mostly complete, but there's one minor point to address regarding the README.

Copy link
Contributor

@glasnt glasnt left a comment

Choose a reason for hiding this comment

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

Thanks for this fix! If there are other samples that this fix can apply to, please create a new PR for those.

@glasnt glasnt merged commit 95ae028 into GoogleCloudPlatform:main Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants