AnandInguva commented on code in PR #27052:
URL: https://github.com/apache/beam/pull/27052#discussion_r1222051215
##########
sdks/python/apache_beam/runners/dataflow/internal/apiclient_test.py:
##########
@@ -640,6 +640,25 @@ def
test_pinned_worker_harness_image_tag_used_in_dev_sdk(self):
# batch, legacy pipeline.
pipeline_options = PipelineOptions(
['--temp_location', 'gs://any-location/temp'])
+ env = apiclient.Environment(
+ [], #packages
+ pipeline_options,
+ '2.0.0', #any environment version
+ FAKE_PIPELINE_URL)
+ self.assertEqual(
+ env.proto.workerPools[0].workerHarnessContainerImage,
+ (
+ names.DATAFLOW_CONTAINER_IMAGE_REPOSITORY +
+ '/beam_python%d.%d_sdk:%s' % (
+ sys.version_info[0],
+ sys.version_info[1],
+ names.BEAM_FNAPI_CONTAINER_VERSION)))
+
+ pipeline_options = pipeline_options = PipelineOptions([
+ '--temp_location',
+ 'gs://any-location/temp',
+ '--experiments=disable_runner_v2'
Review Comment:
Changed it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]