[
https://issues.apache.org/jira/browse/BEAM-5985?focusedWorklogId=210975&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-210975
]
ASF GitHub Bot logged work on BEAM-5985:
----------------------------------------
Author: ASF GitHub Bot
Created on: 11/Mar/19 13:12
Start Date: 11/Mar/19 13:12
Worklog Time Spent: 10m
Work Description: lgajowy commented on pull request #7903: [BEAM-5985]
Dataflow batch load test jobs
URL: https://github.com/apache/beam/pull/7903#discussion_r264223982
##########
File path: .test-infra/jenkins/job_LoadTests_Java_Smoke.groovy
##########
@@ -0,0 +1,100 @@
+/*
+ * 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 CommonTestProperties
+import LoadTestsBuilder as loadTestsBuilder
+import PhraseTriggeringPostCommitBuilder
+
+def smokeTestConfigurations = [
+ [
+ title : 'GroupByKey load test Direct',
+ itClass :
'org.apache.beam.sdk.loadtests.GroupByKeyLoadTest',
+ runner : CommonTestProperties.Runner.DIRECT,
+ jobProperties: [
+ publishToBigQuery: true,
+ bigQueryDataset : 'load_test_SMOKE',
+ bigQueryTable : 'direct_gbk',
+ sourceOptions :
'{"numRecords":100000,"splitPointFrequencyRecords":1}',
+ stepOptions :
'{"outputRecordsPerInputRecord":1,"preservesInputKeyDistribution":true}',
+ fanout : 10,
+ iterations : 1,
+ ]
+ ],
+ [
+ title : 'GroupByKey load test Dataflow',
+ itClass :
'org.apache.beam.sdk.loadtests.GroupByKeyLoadTest',
+ runner : CommonTestProperties.Runner.DATAFLOW,
+ jobProperties: [
+ project : 'apache-beam-testing',
+ tempLocation :
'gs://temp-storage-for-perf-tests/smoketests',
+ publishToBigQuery: true,
+ bigQueryDataset : 'load_test_SMOKE',
+ bigQueryTable : 'dataflow_gbk',
+ sourceOptions :
'{"numRecords":100000,"splitPointFrequencyRecords":1}',
+ stepOptions :
'{"outputRecordsPerInputRecord":1,"preservesInputKeyDistribution":true}',
+ fanout : 10,
+ iterations : 1,
+ ]
+ ],
+ [
+ title : 'GroupByKey load test Flink',
+ itClass :
'org.apache.beam.sdk.loadtests.GroupByKeyLoadTest',
+ runner : CommonTestProperties.Runner.FLINK,
+ jobProperties: [
+ publishToBigQuery: true,
+ bigQueryDataset : 'load_test_SMOKE',
+ bigQueryTable : 'flink_gbk',
+ sourceOptions :
'{"numRecords":100000,"splitPointFrequencyRecords":1}',
+ stepOptions :
'{"outputRecordsPerInputRecord":1,"preservesInputKeyDistribution":true}',
+ fanout : 10,
+ iterations : 1,
+ ]
+ ],
+ [
+ title : 'GroupByKey load test Spark',
+ itClass :
'org.apache.beam.sdk.loadtests.GroupByKeyLoadTest',
+ runner : CommonTestProperties.Runner.SPARK,
+ jobProperties: [
+ sparkMaster : 'local[4]',
+ publishToBigQuery: true,
+ bigQueryDataset : 'load_test_SMOKE',
+ bigQueryTable : 'spark_gbk',
+ sourceOptions :
'{"numRecords":100000,"splitPointFrequencyRecords":1}',
+ stepOptions :
'{"outputRecordsPerInputRecord":1,"preservesInputKeyDistribution":true}',
+ fanout : 10,
+ iterations : 1,
+ ]
+ ]
+]
+
+
+// Runs a tiny version load test suite to ensure nothing is broken.
+PhraseTriggeringPostCommitBuilder.postCommitJob(
+ 'beam_Java_LoadTests_Smoke',
+ 'Run Java Load Tests Smoke',
+ 'Java Load Tests Smoke',
+ this
+) {
+ description("Runs load tests in \"smoke\" mode to check if everything works
well")
+ commonJobProperties.setTopLevelMainJobProperties(delegate, 'master', 120)
+
+ for (testConfiguration in smokeTestConfigurations) {
+ loadTestsBuilder.loadTest(delegate, testConfiguration.title,
testConfiguration.runner, CommonTestProperties.SDK.JAVA,
testConfiguration.jobProperties, testConfiguration.itClass,
CommonTestProperties.TriggeringContext.PR)
+ }
+}
Review comment:
👍
----------------------------------------------------------------
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: 210975)
Time Spent: 19.5h (was: 19h 20m)
> Create jenkins jobs to run the load tests for Java SDK
> ------------------------------------------------------
>
> Key: BEAM-5985
> URL: https://issues.apache.org/jira/browse/BEAM-5985
> Project: Beam
> Issue Type: Sub-task
> Components: testing
> Reporter: Lukasz Gajowy
> Assignee: Kasia Kucharczyk
> Priority: Major
> Time Spent: 19.5h
> Remaining Estimate: 0h
>
> How/how often/in what cases we run those tests is yet to be decided (this is
> part of the task)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)