Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a217db

Browse files
committed
[BEAM-9707] Hardcode Unified harness image for fixing dataflow VR 2 tests
1 parent 5820ab6 commit 1a217db

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

sdks/python/apache_beam/runners/dataflow/internal/apiclient.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,17 @@ def __init__(
196196
# TODO: Use enumerated type instead of strings for job types.
197197
if job_type.startswith('FNAPI_'):
198198
self.debug_options.experiments = self.debug_options.experiments or []
199+
200+
# TODO(BEAM-9707) : Remove hardcoding runner_harness_container for
201+
# Unified worker.
202+
if _use_unified_worker(
203+
options) and not self.debug_options.lookup_experiment(
204+
'runner_harness_container_image'
205+
) and 'dev' in beam_version.__version__:
206+
self.debug_options.add_experiment(
207+
'runner_harness_container_image='
208+
'gcr.io/cloud-dataflow/v1beta3/unified-harness:20200402-rc00')
209+
199210
if self.debug_options.lookup_experiment(
200211
'runner_harness_container_image') or _use_unified_worker(options):
201212
# Default image is not used if user provides a runner harness image.

sdks/python/scripts/run_integration_test.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ if [[ -z $PIPELINE_OPTS ]]; then
232232
# Add --runner_v2 if provided
233233
if [[ "$RUNNER_V2" = true ]]; then
234234
opts+=("--experiments=use_runner_v2")
235-
# Cleanup jira BEAM-9391
236-
opts+=("--experiments=runner_harness_container_image=gcr.io/cloud-dataflow/v1beta3/unified-harness:20200227-rc01")
237235
if [[ "$STREAMING" = true ]]; then
238236
# Dataflow Runner V2 only supports streaming engine.
239237
opts+=("--enable_streaming_engine")

0 commit comments

Comments
 (0)