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

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

                Author: ASF GitHub Bot
            Created on: 11/Apr/18 08:00
            Start Date: 11/Apr/18 08:00
    Worklog Time Spent: 10m 
      Work Description: echauchot closed pull request #4976: [BEAM-2850] Add 
Nexmark PostCommit runs for spark, flink and direct runner
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/job_beam_PostCommit_Java_Nexmark_Direct.groovy 
b/.test-infra/jenkins/job_beam_PostCommit_Java_Nexmark_Direct.groovy
new file mode 100644
index 00000000000..6f07b076626
--- /dev/null
+++ b/.test-infra/jenkins/job_beam_PostCommit_Java_Nexmark_Direct.groovy
@@ -0,0 +1,47 @@
+/*
+ * 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
+
+// This job runs the suite of ValidatesRunner tests against the Flink runner.
+mavenJob('beam_PostCommit_Java_Nexmark_Direct') {
+  description('Runs the Nexmark suite on the Direct runner.')
+
+  // Set common parameters.
+  common_job_properties.setTopLevelMainJobProperties(delegate)
+
+  // Set maven parameters.
+  common_job_properties.setMavenConfig(delegate)
+
+  // Sets that this is a PostCommit job.
+  common_job_properties.setPostCommit(delegate)
+
+  // Allows triggering this build against pull requests.
+  common_job_properties.enablePhraseTriggeringFromPullRequest(
+    delegate,
+    'Apache Direct Runner Nexmark Tests',
+    'Run Direct Nexmark')
+
+  // Maven goals for this job.
+  steps {
+    shell('cd ' + common_job_properties.checkoutDir + '/sdks/java/nexmark/')
+    shell('echo *** RUN NEXMARK IN BATCH MODE ***; mvn -Pdirect-runner 
exec:java -Dexec.mainClass=org.apache.beam.sdk.nexmark.Main 
-Dexec.args="--runner=DirectRunner --suite=SMOKE --streaming=false 
--manageResources=false --monitorJobs=true --enforceEncodability=true 
--enforceImmutability=true"')
+    shell('echo *** RUN NEXMARK IN STREAMING MODE ***; mvn -Pdirect-runner 
exec:java -Dexec.mainClass=org.apache.beam.sdk.nexmark.Main 
-Dexec.args="--runner=DirectRunner --suite=SMOKE --streaming=true 
--manageResources=false --monitorJobs=true --enforceEncodability=true 
--enforceImmutability=true"')
+  }
+
+}
diff --git a/.test-infra/jenkins/job_beam_PostCommit_Java_Nexmark_Flink.groovy 
b/.test-infra/jenkins/job_beam_PostCommit_Java_Nexmark_Flink.groovy
new file mode 100644
index 00000000000..c5343cc3e38
--- /dev/null
+++ b/.test-infra/jenkins/job_beam_PostCommit_Java_Nexmark_Flink.groovy
@@ -0,0 +1,47 @@
+/*
+ * 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
+
+// This job runs the suite of ValidatesRunner tests against the Flink runner.
+mavenJob('beam_PostCommit_Java_Nexmark_Flink') {
+  description('Runs the Nexmark suite on the Flink runner.')
+
+  // Set common parameters.
+  common_job_properties.setTopLevelMainJobProperties(delegate)
+
+  // Set maven parameters.
+  common_job_properties.setMavenConfig(delegate)
+
+  // Sets that this is a PostCommit job.
+  common_job_properties.setPostCommit(delegate)
+
+  // Allows triggering this build against pull requests.
+  common_job_properties.enablePhraseTriggeringFromPullRequest(
+    delegate,
+    'Apache Flink Runner Nexmark Tests',
+    'Run Flink Nexmark')
+
+  // Maven goals for this job.
+  steps {
+    shell('cd ' + common_job_properties.checkoutDir + '/sdks/java/nexmark/')
+    shell('echo *** RUN NEXMARK IN BATCH MODE ***; mvn -Pflink-runner 
exec:java -Dexec.mainClass=org.apache.beam.sdk.nexmark.Main 
-Dexec.args="--runner=FlinkRunner --suite=SMOKE --streaming=false 
--manageResources=false --monitorJobs=true  --flinkMaster=local"')
+    shell('echo *** RUN NEXMARK IN STREAMING MODE ***; mvn -Pflink-runner 
exec:java -Dexec.mainClass=org.apache.beam.sdk.nexmark.Main 
-Dexec.args="--runner=FlinkRunner --suite=SMOKE --streamTimeout=60 
--streaming=true --manageResources=false --monitorJobs=true  
--flinkMaster=local"')
+  }
+
+}
diff --git a/.test-infra/jenkins/job_beam_PostCommit_Java_Nexmark_Spark.groovy 
b/.test-infra/jenkins/job_beam_PostCommit_Java_Nexmark_Spark.groovy
new file mode 100644
index 00000000000..79f41185ef0
--- /dev/null
+++ b/.test-infra/jenkins/job_beam_PostCommit_Java_Nexmark_Spark.groovy
@@ -0,0 +1,46 @@
+/*
+ * 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
+
+// This job runs the suite of ValidatesRunner tests against the Flink runner.
+mavenJob('beam_PostCommit_Java_Nexmark_Spark') {
+  description('Runs the Nexmark suite on the Spark runner.')
+
+  // Set common parameters.
+  common_job_properties.setTopLevelMainJobProperties(delegate)
+
+  // Set maven parameters.
+  common_job_properties.setMavenConfig(delegate)
+
+  // Sets that this is a PostCommit job.
+  common_job_properties.setPostCommit(delegate)
+
+  // Allows triggering this build against pull requests.
+  common_job_properties.enablePhraseTriggeringFromPullRequest(
+    delegate,
+    'Apache Spark Runner Nexmark Tests',
+    'Run Spark Nexmark')
+
+  // Maven goals for this job.
+  steps {
+    shell('cd ' + common_job_properties.checkoutDir + '/sdks/java/nexmark/')
+    shell('echo *** RUN NEXMARK IN BATCH MODE ***; mvn exec:java 
-Pspark-runner -Dexec.mainClass=org.apache.beam.sdk.nexmark.Main 
-Dexec.args="--runner=SparkRunner --suite=SMOKE --streaming=false 
--manageResources=false --monitorJobs=true"')
+  }
+
+}


 

----------------------------------------------------------------
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: 89836)
    Time Spent: 0.5h  (was: 20m)

> Add Nexmark to Beam Continuous Integration
> ------------------------------------------
>
>                 Key: BEAM-2850
>                 URL: https://issues.apache.org/jira/browse/BEAM-2850
>             Project: Beam
>          Issue Type: Improvement
>          Components: build-system, testing
>            Reporter: Ismaël Mejía
>            Assignee: Etienne Chauchot
>            Priority: Minor
>              Labels: nexmark
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




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

Reply via email to