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

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

                Author: ASF GitHub Bot
            Created on: 15/Mar/18 17:58
            Start Date: 15/Mar/18 17:58
    Worklog Time Spent: 10m 
      Work Description: tgroh commented on a change in pull request #4788: 
[BEAM-3339] Mobile gaming automation for Java nightly snapshot on core runners
URL: https://github.com/apache/beam/pull/4788#discussion_r174875713
 
 

 ##########
 File path: release/src/main/groovy/mobilegaming-java-dataflow.groovy
 ##########
 @@ -0,0 +1,92 @@
+#!groovy
+/*
+ * 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 MobileGamingJavaUtils
+
+t = new TestScripts(args)
+
+/*
+ * Run the mobile game examples on Dataflow.
+ * https://beam.apache.org/get-started/mobile-gaming-example/
+ */
+
+t.describe 'Run Apache Beam Java SDK Mobile Gaming Examples - Dataflow'
+
+QuickstartArchetype.generate(t)
+
+t.intent 'Running the Mobile-Gaming Code with Dataflow runner'
+StringBuilder cmd = new StringBuilder()
+StringBuilder exeArgs = new StringBuilder()
+
+
+/**
+ *  Run the UserScore example on DataflowRunner
+ * */
+
+t.intent("Running: UserScore example on DataflowRunner")
+
+t.run(MobileGamingJavaUtils.generateCommand("UserScore", "DataflowRunner", t))
+t.run "gsutil cat gs://${t.gcsBucket()}/java-userscore-result-dataflow-runner* 
| grep user19_BananaWallaby"
+t.see "total_score: 231, user: user19_BananaWallaby"
+t.intent("SUCCEED: UserScore successfully run on DataflowRunner.")
+t.run "gsutil rm gs://${t.gcsBucket()}/java-userscore-result-dataflow-runner*"
+
+
+/**
+ * Run the HourlyTeamScore example on DataflowRunner
+ * */
+
+t.intent("Running: HourlyTeamScore example on DataflowRunner")
+t.run(MobileGamingJavaUtils.generateCommand("HourlyTeamScore", 
"DataflowRunner", t))
+t.run "gsutil cat 
gs://${t.gcsBucket()}/java-hourlyteamscore-result-dataflow-runner* | grep 
AzureBilby "
+t.see "total_score: 2788, team: AzureBilby"
+t.intent("SUCCEED: HourlyTeamScore successfully run on DataflowRunner.")
+t.run "gsutil rm 
gs://${t.gcsBucket()}/java-hourlyteamscore-result-dataflow-runner*"
 
 Review comment:
   Can we configure these patterns to be identified per-run?
   
   Is it possible to configure the testing buckets to also have a TTL, in case 
we write the files but then the test dies? Do we already have such a 
configuration?

----------------------------------------------------------------
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:
us...@infra.apache.org


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

    Worklog Id:     (was: 80901)
    Time Spent: 63h 10m  (was: 63h)

> Create post-release testing of the nightly snapshots
> ----------------------------------------------------
>
>                 Key: BEAM-3339
>                 URL: https://issues.apache.org/jira/browse/BEAM-3339
>             Project: Beam
>          Issue Type: Improvement
>          Components: testing
>            Reporter: Alan Myrvold
>            Assignee: Jason Kuster
>            Priority: Major
>          Time Spent: 63h 10m
>  Remaining Estimate: 0h
>
> The nightly java snapshots in 
> https://repository.apache.org/content/groups/snapshots/org/apache/beam should 
> be verified by following the 
> https://beam.apache.org/get-started/quickstart-java/ instructions, to verify 
> that the release is usable.



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

Reply via email to