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

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

                Author: ASF GitHub Bot
            Created on: 11/Dec/19 09:47
            Start Date: 11/Dec/19 09:47
    Worklog Time Spent: 10m 
      Work Description: kamilwu commented on pull request #10125: [BEAM-8671] 
Added ParDo test running on Python 3.7
URL: https://github.com/apache/beam/pull/10125#discussion_r356495570
 
 

 ##########
 File path: .test-infra/jenkins/job_LoadTests_ParDo_Python_37.groovy
 ##########
 @@ -0,0 +1,71 @@
+/*
+ * 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.
+ */
+
+import CommonJobProperties as commonJobProperties
+import LoadTestsBuilder as loadTestsBuilder
+import PhraseTriggeringPostCommitBuilder
+
+def now = new Date().format("MMddHHmmss", TimeZone.getTimeZone('UTC'))
+
+def loadTestConfigurations = { datasetName -> [
+        [
+                title          : 'ParDo Python Load test: 2GB 100 byte records 
10 times',
+                test           : 
'apache_beam.testing.load_tests.pardo_test:ParDoTest.testParDo',
+                runner         : CommonTestProperties.Runner.DATAFLOW,
+                pipelineOptions: [
+                        job_name             : 
'load-tests-python37-dataflow-batch-pardo-1-' + now,
+                        project              : 'apache-beam-testing',
+                        temp_location        : 
'gs://temp-storage-for-perf-tests/loadtests',
+                        publish_to_big_query : true,
+                        metrics_dataset      : datasetName,
+                        metrics_table        : 
'python37_dataflow_batch_pardo_1',
+                        input_options        : '\'{' +
+                                '"num_records": 20000000,' +
+                                '"key_size": 10,' +
+                                '"value_size": 90}\'',
+                        iterations           : 10,
+                        number_of_counter_operations: 0,
+                        number_of_counters   : 0,
+                        num_workers          : 5,
+                        autoscaling_algorithm: 'NONE',
+                ]
+        ],
+]}
+
+def batchLoadTestJob = { scope, triggeringContext ->
+    scope.description('Runs Python 3.7 ParDo load tests on Dataflow runner in 
batch mode')
+    commonJobProperties.setTopLevelMainJobProperties(scope, 'master', 120)
+
+    def datasetName = loadTestsBuilder.getBigQueryDataset('load_test', 
triggeringContext)
+    for (testConfiguration in loadTestConfigurations(datasetName)) {
+        loadTestsBuilder.loadTest(scope, testConfiguration.title, 
testConfiguration.runner, CommonTestProperties.SDK.PYTHON_37, 
testConfiguration.pipelineOptions, testConfiguration.test)
+    }
+}
+
+PhraseTriggeringPostCommitBuilder.postCommitJob(
+        'beam_LoadTests_Python_37_ParDo_Dataflow_Batch',
+        'Run Python 3.7 Load Tests ParDo Dataflow Batch',
 
 Review comment:
   Sorry for that. I'll remember about it next time.
   
   I reran the test and the tests suite has just finished. I think the previous 
phrase trigger might not have been submitted to Jenkins, because Jenkins was 
being restarted yesterday.
   
 
----------------------------------------------------------------
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: 357736)
    Time Spent: 6h  (was: 5h 50m)

> Migrate Python version to 3.7
> -----------------------------
>
>                 Key: BEAM-8671
>                 URL: https://issues.apache.org/jira/browse/BEAM-8671
>             Project: Beam
>          Issue Type: Sub-task
>          Components: testing
>            Reporter: Kamil Wasilewski
>            Assignee: Kamil Wasilewski
>            Priority: Major
>          Time Spent: 6h
>  Remaining Estimate: 0h
>
> Currently, load tests run on Python 2.7. We should migrate to 3.7



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to