From 42717e93a4fd9aa9381701059bcea81d0192830f Mon Sep 17 00:00:00 2001 From: Luke Cwik Date: Fri, 14 Feb 2020 08:54:41 -0800 Subject: [PATCH] [BEAM-9317] Fix portable test executions to specify the beam_fn_api argument This allows for SDK level overrides when executing portable pipelines to occur. --- .../main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy index 00d59bd83a28..b6391c4749d1 100644 --- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy +++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy @@ -1642,7 +1642,8 @@ class BeamModulePlugin implements Plugin { def beamTestPipelineOptions = [ "--runner=org.apache.beam.runners.portability.testing.TestPortableRunner", "--jobServerDriver=${config.jobServerDriver}", - "--environmentCacheMillis=10000" + "--environmentCacheMillis=10000", + "--experiments=beam_fn_api", ] beamTestPipelineOptions.addAll(config.pipelineOpts) if (config.environment == PortableValidatesRunnerConfiguration.Environment.EMBEDDED) {