[
https://issues.apache.org/jira/browse/BEAM-4225?focusedWorklogId=117280&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-117280
]
ASF GitHub Bot logged work on BEAM-4225:
----------------------------------------
Author: ASF GitHub Bot
Created on: 29/Jun/18 08:35
Start Date: 29/Jun/18 08:35
Worklog Time Spent: 10m
Work Description: echauchot closed pull request #4976: [BEAM-4225] Add
Nexmark PostCommit runs for spark, flink and direct runner and export to
Bigquery
URL: https://github.com/apache/beam/pull/4976
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/.test-infra/jenkins/NexmarkBigqueryProperties.groovy
b/.test-infra/jenkins/NexmarkBigqueryProperties.groovy
new file mode 100644
index 00000000000..c7b2265ae71
--- /dev/null
+++ b/.test-infra/jenkins/NexmarkBigqueryProperties.groovy
@@ -0,0 +1,28 @@
+/*
+ * 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.
+ */
+
+// contains Big query related properties for Nexmark runs
+class NexmarkBigqueryProperties {
+
+ static String nexmarkBigQueryArgs = ['--bigQueryTable=nexmark',
+ '--bigQueryDataset=nexmark',
+ '--project=apache-beam-testing',
+
'--resourceNameMode=QUERY_RUNNER_AND_MODE',
+ '--exportSummaryToBigQuery=true',
+
'--tempLocation=gs://temp-storage-for-perf-tests/'].join(' ')
+}
\ No newline at end of file
diff --git a/.test-infra/jenkins/NoPhraseTriggeringPostCommitBuilder.groovy
b/.test-infra/jenkins/NoPhraseTriggeringPostCommitBuilder.groovy
new file mode 100644
index 00000000000..429da38db4e
--- /dev/null
+++ b/.test-infra/jenkins/NoPhraseTriggeringPostCommitBuilder.groovy
@@ -0,0 +1,31 @@
+/*
+ * 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 PostcommitJobBuilder
+/**
+ * This class is an extension of PostCommitBuilder that disables github phrase
triggering.
+ */
+class NoPhraseTriggeringPostCommitBuilder extends PostcommitJobBuilder{
+ static void postCommitJob(nameBase,
+ githubUiHint,
+ scope,
+ jobDefinition = {}) {
+ PostcommitJobBuilder jb = new PostcommitJobBuilder(scope, jobDefinition)
+ jb.defineAutoPostCommitJob(nameBase)
+ }
+}
diff --git a/.test-infra/jenkins/PostcommitJobBuilder.groovy
b/.test-infra/jenkins/PostcommitJobBuilder.groovy
index 4ab6f718ffe..ce41d265353 100644
--- a/.test-infra/jenkins/PostcommitJobBuilder.groovy
+++ b/.test-infra/jenkins/PostcommitJobBuilder.groovy
@@ -29,7 +29,7 @@ class PostcommitJobBuilder {
private def jobDefinition;
private def job;
- private PostcommitJobBuilder(scope, jobDefinition = {}) {
+ PostcommitJobBuilder(scope, jobDefinition = {}) {
this.scope = scope
this.jobDefinition = jobDefinition
this.job = null
@@ -45,7 +45,7 @@ class PostcommitJobBuilder {
jb.defineGhprbTriggeredJob(nameBase + "_PR", triggerPhrase, githubUiHint,
false)
}
- private void defineAutoPostCommitJob(name) {
+ void defineAutoPostCommitJob(name) {
def autoBuilds = scope.job(name) {
cjp.setAutoJob delegate
}
diff --git a/.test-infra/jenkins/job_PostCommit_Java_Nexmark_Direct.groovy
b/.test-infra/jenkins/job_PostCommit_Java_Nexmark_Direct.groovy
new file mode 100644
index 00000000000..cb1e1177d14
--- /dev/null
+++ b/.test-infra/jenkins/job_PostCommit_Java_Nexmark_Direct.groovy
@@ -0,0 +1,69 @@
+/*
+ * 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 common_job_properties
+import NexmarkBigqueryProperties
+import NoPhraseTriggeringPostCommitBuilder
+
+// This job runs the suite of ValidatesRunner tests against the Direct runner.
+NoPhraseTriggeringPostCommitBuilder.postCommitJob('beam_PostCommit_Java_Nexmark_Direct',
+ 'Direct Runner Nexmark Tests', this) {
+ description('Runs the Nexmark suite on the Direct runner.')
+
+ // Execute concurrent builds if necessary.
+ concurrentBuild()
+
+ // Set common parameters.
+ common_job_properties.setTopLevelMainJobProperties(delegate, 'master', 240)
+
+ // Gradle goals for this job.
+ steps {
+ shell('echo *** RUN NEXMARK IN BATCH MODE USING DIRECT RUNNER ***')
+ gradle {
+ rootBuildScriptDir(common_job_properties.checkoutDir)
+ tasks(':beam-sdks-java-nexmark:run')
+ common_job_properties.setGradleSwitches(delegate)
+ switches('-Pnexmark.runner=":beam-runners-direct-java"' +
+ ' -Pnexmark.args="' +
+ [NexmarkBigqueryProperties.nexmarkBigQueryArgs,
+ '--runner=DirectRunner',
+ '--streaming=false',
+ '--suite=SMOKE',
+ '--manageResources=false',
+ '--monitorJobs=true',
+ '--enforceEncodability=true',
+ '--enforceImmutability=true"'].join(' '))
+ }
+ shell('echo *** RUN NEXMARK IN STREAMING MODE USING DIRECT RUNNER ***')
+ gradle {
+ rootBuildScriptDir(common_job_properties.checkoutDir)
+ tasks(':beam-sdks-java-nexmark:run')
+ common_job_properties.setGradleSwitches(delegate)
+ switches('-Pnexmark.runner=":beam-runners-direct-java"' +
+ ' -Pnexmark.args="' +
+ [NexmarkBigqueryProperties.nexmarkBigQueryArgs,
+ '--runner=DirectRunner',
+ '--streaming=true',
+ '--suite=SMOKE',
+ '--manageResources=false',
+ '--monitorJobs=true',
+ '--enforceEncodability=true',
+ '--enforceImmutability=true"'].join(' '))
+ }
+ }
+}
diff --git a/.test-infra/jenkins/job_PostCommit_Java_Nexmark_Flink.groovy
b/.test-infra/jenkins/job_PostCommit_Java_Nexmark_Flink.groovy
new file mode 100644
index 00000000000..4aad246e0ee
--- /dev/null
+++ b/.test-infra/jenkins/job_PostCommit_Java_Nexmark_Flink.groovy
@@ -0,0 +1,69 @@
+/*
+ * 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 common_job_properties
+import NexmarkBigqueryProperties
+import NoPhraseTriggeringPostCommitBuilder
+
+// This job runs the suite of ValidatesRunner tests against the Flink runner.
+NoPhraseTriggeringPostCommitBuilder.postCommitJob('beam_PostCommit_Java_Nexmark_Flink',
+ 'Flink Runner Nexmark Tests', this) {
+ description('Runs the Nexmark suite on the Flink runner.')
+
+ // Execute concurrent builds if necessary.
+ concurrentBuild()
+
+ // Set common parameters.
+ common_job_properties.setTopLevelMainJobProperties(delegate, 'master', 240)
+
+ // Gradle goals for this job.
+ steps {
+ shell('echo *** RUN NEXMARK IN BATCH MODE USING FLINK RUNNER ***')
+ gradle {
+ rootBuildScriptDir(common_job_properties.checkoutDir)
+ tasks(':beam-sdks-java-nexmark:run')
+ common_job_properties.setGradleSwitches(delegate)
+ switches('-Pnexmark.runner=":beam-runners-flink_2.11"' +
+ ' -Pnexmark.args="' +
+ [NexmarkBigqueryProperties.nexmarkBigQueryArgs,
+ '--runner=FlinkRunner',
+ '--streaming=false',
+ '--suite=SMOKE',
+ '--streamTimeout=60' ,
+ '--manageResources=false',
+ '--monitorJobs=true',
+ '--flinkMaster=local"'].join(' '))
+ }
+ shell('echo *** RUN NEXMARK IN STREAMING MODE USING FLINK RUNNER ***')
+ gradle {
+ rootBuildScriptDir(common_job_properties.checkoutDir)
+ tasks(':beam-sdks-java-nexmark:run')
+ common_job_properties.setGradleSwitches(delegate)
+ switches('-Pnexmark.runner=":beam-runners-flink_2.11"' +
+ ' -Pnexmark.args="' +
+ [NexmarkBigqueryProperties.nexmarkBigQueryArgs,
+ '--runner=FlinkRunner',
+ '--streaming=true',
+ '--suite=SMOKE',
+ '--streamTimeout=60' ,
+ '--manageResources=false',
+ '--monitorJobs=true',
+ '--flinkMaster=local"'].join(' '))
+ }
+ }
+}
diff --git a/.test-infra/jenkins/job_PostCommit_Java_Nexmark_Spark.groovy
b/.test-infra/jenkins/job_PostCommit_Java_Nexmark_Spark.groovy
new file mode 100644
index 00000000000..6043b7bc973
--- /dev/null
+++ b/.test-infra/jenkins/job_PostCommit_Java_Nexmark_Spark.groovy
@@ -0,0 +1,52 @@
+/*
+ * 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 common_job_properties
+import NexmarkBigqueryProperties
+import NoPhraseTriggeringPostCommitBuilder
+
+// This job runs the suite of ValidatesRunner tests against the Spark runner.
+NoPhraseTriggeringPostCommitBuilder.postCommitJob('beam_PostCommit_Java_Nexmark_Spark',
+ 'Spark Runner Nexmark Tests', this) {
+ description('Runs the Nexmark suite on the Spark runner.')
+
+ // Execute concurrent builds if necessary.
+ concurrentBuild()
+
+ // Set common parameters.
+ common_job_properties.setTopLevelMainJobProperties(delegate, 'master', 240)
+
+ // Gradle goals for this job.
+ steps {
+ shell('echo *** RUN NEXMARK IN BATCH MODE USING SPARK RUNNER ***')
+ gradle {
+ rootBuildScriptDir(common_job_properties.checkoutDir)
+ tasks(':beam-sdks-java-nexmark:run')
+ common_job_properties.setGradleSwitches(delegate)
+ switches('-Pnexmark.runner=":beam-runners-spark"' +
+ ' -Pnexmark.args="' +
+ [NexmarkBigqueryProperties.nexmarkBigQueryArgs,
+ '--runner=SparkRunner',
+ '--streaming=false',
+ '--suite=SMOKE',
+ '--streamTimeout=60' ,
+ '--manageResources=false',
+ '--monitorJobs=true'].join(' '))
+ }
+ }
+}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 117280)
Time Spent: 10h 20m (was: 10h 10m)
> Integrate Nexmark with perfkit dashboards
> -----------------------------------------
>
> Key: BEAM-4225
> URL: https://issues.apache.org/jira/browse/BEAM-4225
> Project: Beam
> Issue Type: Improvement
> Components: examples-nexmark
> Reporter: Etienne Chauchot
> Assignee: Etienne Chauchot
> Priority: Major
> Time Spent: 10h 20m
> Remaining Estimate: 0h
>
> The aim is to run Nexmark as post-commits and export the results to the
> performance dashboards:
> see the threads:
> [https://lists.apache.org/thread.html/9f8fe1c6df7d8bfe2697332e69722ca4edd2810adc6a914cdf32da29@%3Cdev.beam.apache.org%3E]
> https://lists.apache.org/thread.html/701196efd6e74b7715785d43019a4a73e8a093997f59662fdadf8f2a@%3Cdev.beam.apache.org%3E
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)