[ 
https://issues.apache.org/jira/browse/BEAM-6527?focusedWorklogId=211326&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-211326
 ]

ASF GitHub Bot logged work on BEAM-6527:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Mar/19 21:48
            Start Date: 11/Mar/19 21:48
    Worklog Time Spent: 10m 
      Work Description: markflyhigh commented on pull request #7675: 
[BEAM-6527] Use Gradle to parallel Python tox tests
URL: https://github.com/apache/beam/pull/7675#discussion_r264444893
 
 

 ##########
 File path: sdks/python/test-suites/tox/py3/build.gradle
 ##########
 @@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * License); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Unit tests for Python 3
+ */
+
+apply plugin: org.apache.beam.gradle.BeamModulePlugin
+applyPythonNature()
+
+// Required to setup a Python 3 virtualenv.
+project.ext.python3 = true
+
+task lint {}
+check.dependsOn lint
+
+toxTask "lintPy3", "py3-lint"
+lint.dependsOn lintPy3
+
+toxTask "testPython3", "py3"
+test.dependsOn testPython3
+
+toxTask "testPy3Gcp", "py3-gcp"
+test.dependsOn testPy3Gcp
+
+toxTask "testPy3Cython", "py3-cython"
+test.dependsOn testPy3Cython
+// Ensure that testPy3Cython runs exclusively to other tests.
+testPy3Cython.mustRunAfter testPython3, testPy3Gcp
+testPy3Cython.mustRunAfter ':beam-sdks-python:testPy2Cython'
 
 Review comment:
   testPy3Cython and testPy2Cython run in parallel even I use `finalizedBy` in 
[here](https://github.com/apache/beam/pull/7675/files#diff-c197962302397baf3a4cc36463dce5eaR197).
 If they do not affect each other, I can remove this line.
 
----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 211326)
    Time Spent: 2h 40m  (was: 2.5h)

> Parallel tox (unit) tests run on Jenkins
> ----------------------------------------
>
>                 Key: BEAM-6527
>                 URL: https://issues.apache.org/jira/browse/BEAM-6527
>             Project: Beam
>          Issue Type: Sub-task
>          Components: testing
>            Reporter: Mark Liu
>            Assignee: Mark Liu
>            Priority: Major
>              Labels: triaged
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> Existing tox unit test suite (basic, gcp and cython) will be enabled in 
> multiple version of Python 3, which will significantly increase runtime of 
> Pre/PostCommit build. A parallel is wanted in tox or Gradle invocation to 
> control the time in a reasonable range (<30mins for PreCommit is desired).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to