[
https://issues.apache.org/jira/browse/BEAM-3339?focusedWorklogId=80902&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-80902
]
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_r174875382
##########
File path: release/src/main/groovy/mobilegaming-java-direct.groovy
##########
@@ -0,0 +1,84 @@
+#!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 DirectRunner.
+ * https://beam.apache.org/get-started/mobile-gaming-example/
+ */
+
+t.describe 'Run Apache Beam Java SDK Mobile Gaming Examples - Direct'
+
+QuickstartArchetype.generate(t)
+
+t.intent 'Running the Mobile-Gaming Code with DirectRunner'
+
+
+/**
+ * Run the UserScore example with DirectRunner
+ * */
+
+t.intent("Running: UserScore example on DirectRunner")
+t.run(MobileGamingJavaUtils.generateCommand("UserScore", "DirectRunner", t))
+t.run "grep user19_BananaWallaby java-userscore-result-direct-runner.txt* "
+t.see "total_score: 231, user: user19_BananaWallaby"
+t.intent("SUCCEED: UserScore successfully run on DirectRunners.")
+
+
+/**
+ * Run the HourlyTeamScore example with DirectRunner
+ * */
+
+t.intent("Running: HourlyTeamScore example on DirectRunner")
+t.run(MobileGamingJavaUtils.generateCommand("HourlyTeamScore", "DirectRunner",
t))
+t.run "grep AzureBilby java-hourlyteamscore-result-direct-runner.txt* "
+t.see "total_score: 2788, team: AzureBilby"
+t.intent("SUCCEED: HourlyTeamScore successfully run on DirectRunners.")
+
+
+/**
+ * Run the LeaderBoard example with DirectRunner
+ * */
+
+t.intent("Running: LeaderBoard example on DirectRunner")
+t.run("bq rm -f -t ${t.bqDataset()}.leaderboard_DirectRunner_user")
+t.run("bq rm -f -t ${t.bqDataset()}.leaderboard_DirectRunner_team")
+
+def InjectorThread = Thread.start() {
+ t.run(MobileGamingJavaUtils.generateCommand("Injector", "",t))
+}
+def LeaderBoardThread = Thread.start() {
+ t.run(MobileGamingJavaUtils.generateCommand("LeaderBoard",
"DirectRunner",t))
+}
+// wait 15 minutes for pipeline writing results
Review comment:
I'm not super happy about having a correctness test that requires fifteen
minutes, nor one that doesn't listen to some signal from the injector or
pipeline to note that 'everything is done'.
Even if this is how we move forwards for the time being, I'd like to see
that this is tracked to be more event-driven; we can expect to have a timeout,
but that's not really the same.
----------------------------------------------------------------
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: 80902)
Time Spent: 63h 20m (was: 63h 10m)
> 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 20m
> 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)