Skip to content

Commit

Permalink
Update Dataflow dev container image tag. (apache#27545)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvalentyn authored and aleksandr-dudko committed Jul 19, 2023
1 parent a021c76 commit d7204b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ def _get_required_container_version():
current version of the SDK.
"""
if 'dev' in beam_version.__version__:
return names.BEAM_FNAPI_CONTAINER_VERSION
return names.BEAM_DEV_SDK_CONTAINER_TAG
else:
return _get_container_image_tag()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def test_pinned_worker_harness_image_tag_used_in_dev_sdk(self):
'/beam_python%d.%d_sdk:%s' % (
sys.version_info[0],
sys.version_info[1],
names.BEAM_FNAPI_CONTAINER_VERSION)))
names.BEAM_DEV_SDK_CONTAINER_TAG)))

pipeline_options = PipelineOptions(
['--temp_location', 'gs://any-location/temp'])
Expand All @@ -651,7 +651,7 @@ def test_pinned_worker_harness_image_tag_used_in_dev_sdk(self):
'/beam_python%d.%d_sdk:%s' % (
sys.version_info[0],
sys.version_info[1],
names.BEAM_FNAPI_CONTAINER_VERSION)))
names.BEAM_DEV_SDK_CONTAINER_TAG)))

@mock.patch(
'apache_beam.runners.dataflow.internal.apiclient.'
Expand Down
13 changes: 4 additions & 9 deletions sdks/python/apache_beam/runners/dataflow/internal/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,10 @@
SOURCE_TYPE = 'CustomSourcesType'
SERIALIZED_SOURCE_KEY = 'serialized_source'

# In a released SDK, container tags are selected based on the SDK version.
# Unreleased versions use container versions based on values of
# BEAM_CONTAINER_VERSION and BEAM_FNAPI_CONTAINER_VERSION (see below).

# Update this version to the next version whenever there is a change that will
# require changes to legacy Dataflow worker execution environment.
BEAM_CONTAINER_VERSION = 'beam-master-20230629'
# Update this version to the next version whenever there is a change that
# In a released SDK, Python sdk container image is tagged with the SDK version.
# Unreleased sdks use container image tag specified below.
# Update this tag whenever there is a change that
# requires changes to SDK harness container or SDK harness launcher.
BEAM_FNAPI_CONTAINER_VERSION = 'beam-master-20230705'
BEAM_DEV_SDK_CONTAINER_TAG = 'beam-master-20230717'

DATAFLOW_CONTAINER_IMAGE_REPOSITORY = 'gcr.io/cloud-dataflow/v1beta3'

0 comments on commit d7204b2

Please sign in to comment.