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

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_r174876187
 
 

 ##########
 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*"
+
+
+/**
+ * Run the LeaderBoard example on DataflowRunner
+ * */
+
+t.intent("Running: LeaderBoard example on DataflowRunner")
+t.run("bq rm -f -t ${t.bqDataset()}.leaderboard_DataflowRunner_user")
+t.run("bq rm -f -t ${t.bqDataset()}.leaderboard_DataflowRunner_team")
+
+def InjectorThread = Thread.start() {
+    t.run(MobileGamingJavaUtils.generateCommand("Injector", "", t))
+}
+
+def LeaderBoardThread = Thread.start() {
+    t.run(MobileGamingJavaUtils.generateCommand("LeaderBoard", 
"DataflowRunner", t))
+}
+// wait 15 minutes for pipeline writing results
+t.run("sleep 900")
+InjectorThread.stop()
+LeaderBoardThread.stop()
+
+t.run "bq query SELECT table_id FROM ${t.bqDataset()}.__TABLES_SUMMARY__"
+t.see "leaderboard_DataflowRunner_user"
+t.see "leaderboard_DataflowRunner_team"
+t.run """bq query --batch "SELECT user FROM 
[${t.gcpProject()}:${t.bqDataset()}.leaderboard_DataflowRunner_user] LIMIT 
10\""""
+t.seeOneOf(MobileGamingJavaUtils.COLORS)
 
 Review comment:
   I'd really like to be able to configure the injector to use a constant (but 
arbitrary) seed which we can match actual outputs against the expected 
generation (for at least on-time work)

----------------------------------------------------------------
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: 80903)
    Time Spent: 63.5h  (was: 63h 20m)

> 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: 63.5h
>  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