[
https://issues.apache.org/jira/browse/BEAM-8603?focusedWorklogId=423881&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-423881
]
ASF GitHub Bot logged work on BEAM-8603:
----------------------------------------
Author: ASF GitHub Bot
Created on: 17/Apr/20 02:37
Start Date: 17/Apr/20 02:37
Worklog Time Spent: 10m
Work Description: ihji commented on pull request #10055: [BEAM-8603] Add
Python SqlTransform
URL: https://github.com/apache/beam/pull/10055#discussion_r409958523
##########
File path:
buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
##########
@@ -1779,6 +1779,33 @@ class BeamModulePlugin implements Plugin<Project> {
cleanupTask.mustRunAfter pythonTask
config.cleanupJobServer.mustRunAfter pythonTask
}
+ // Task for running testcases in Python SDK
+ def testOpts = [
+ "--attr=UsesSqlExpansionService"
+ ]
+ def pipelineOpts = [
+ "--runner=PortableRunner",
+ "--environment_cache_millis=10000",
+ "--job_endpoint=${config.jobEndpoint}"
+ ]
+ def beamPythonTestPipelineOptions = [
+ "pipeline_opts": pipelineOpts,
+ "test_opts": testOpts,
+ "suite": "xlangSqlValidateRunner"
+ ]
+ def cmdArgs =
project.project(':sdks:python').mapToArgString(beamPythonTestPipelineOptions)
+ def pythonSqlTask = project.tasks.create(name:
config.name+"PythonUsingSql", type: Exec) {
Review comment:
If it's outside of the each block then it should be fine. The advantage of
using existing testing expansion service here is you don't need to start and
stop another expansion service inside the test code. The expansion service
starts and finishes at the beginning and the end of the whole test suite. You
can just pass the jar name and the port number by environment variables. Still
there's no harm in launching your own expansion service though.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 423881)
Time Spent: 9.5h (was: 9h 20m)
> Add Python SqlTransform MVP
> ---------------------------
>
> Key: BEAM-8603
> URL: https://issues.apache.org/jira/browse/BEAM-8603
> Project: Beam
> Issue Type: Improvement
> Components: dsl-sql, sdk-py-core
> Reporter: Brian Hulette
> Assignee: Brian Hulette
> Priority: Major
> Time Spent: 9.5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)