[
https://issues.apache.org/jira/browse/BEAM-3840?focusedWorklogId=81334&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-81334
]
ASF GitHub Bot logged work on BEAM-3840:
----------------------------------------
Author: ASF GitHub Bot
Created on: 16/Mar/18 19:54
Start Date: 16/Mar/18 19:54
Worklog Time Spent: 10m
Work Description: aaltay commented on a change in pull request #4853:
[BEAM-3840] Get python mobile-gaming automating on core runners
URL: https://github.com/apache/beam/pull/4853#discussion_r174960610
##########
File path: release/src/main/groovy/python_release_automation_utils.sh
##########
@@ -0,0 +1,101 @@
+#!/bin/bash
+#
+# 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.
+#
+
+
+set -e
+set -v
+
+print_separator() {
+ echo
"############################################################################"
+ echo $1
+ echo
"############################################################################"
+}
+
+update_gcloud() {
+ curl
https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-189.0.0-linux-x86_64.tar.gz
\
+ --output gcloud.tar.gz
+ tar xf gcloud.tar.gz
+ ./google-cloud-sdk/install.sh --quiet
+ . ./google-cloud-sdk/path.bash.inc
+ gcloud components update --quiet || echo 'gcloud components update failed'
+ gcloud -v
+}
+
+get_version() {
+ # this function will pull python sdk version from
sdk/python/apache_beam/version.py and eliminate postfix '.dev'
+ version=$(awk '/__version__/{print $3}' sdks/python/apache_beam/version.py)
+ if [[ $version = *".dev"* ]]
+ then
+ echo $version | cut -c 2- | rev | cut -d'.' -f2- | rev
+ else
+ echo $version
+ fi
+}
+
+# Quickstart Pubsub Utils
+run_pubsub_publish(){
+ words=("hello world!", "I like cats!", "Python", "hello Python", "hello
Python")
+ for word in ${words[@]}
+ do
+ gcloud pubsub topics publish $PUBSUB_TOPIC1 --message "$word"
+ done
+ sleep 10
+}
+
+run_pubsub_pull() {
+ gcloud pubsub subscriptions pull --project=$PROJECT_ID
$PUBSUB_SUBSCRIPTION --limit=100 --auto-ack
+}
+
+create_pubsub() {
+ gcloud pubsub topics create --project=$PROJECT_ID $PUBSUB_TOPIC1
+ gcloud pubsub topics create --project=$PROJECT_ID $PUBSUB_TOPIC2
+ gcloud pubsub subscriptions create --project=$PROJECT_ID
$PUBSUB_SUBSCRIPTION --topic $PUBSUB_TOPIC2
+}
+
+cleanup_pubsub() {
+ gcloud pubsub topics delete --project=$PROJECT_ID $PUBSUB_TOPIC1
+ gcloud pubsub topics delete --project=$PROJECT_ID $PUBSUB_TOPIC2
+ gcloud pubsub subscriptions delete --project=$PROJECT_ID
$PUBSUB_SUBSCRIPTION
+}
+
+
+# Python RC configurations
+VERSION=$(get_version)
+CANDIDATE_URL="https://dist.apache.org/repos/dist/dev/beam/$VERSION/"
+BEAM_PYTHON_SDK="apache-beam-$VERSION-python.zip"
+
+# Cloud Configurations
+PROJECT_ID='apache-beam-testing'
+BUCKET_NAME='temp-storage-for-release-validation-tests/nightly-snapshot-validation'
+TEMP_DIR='/tmp'
+DATASET='beam_postrelease_mobile_gaming'
+NUM_WORKERS=1
+
+# Quickstart configurations
+SHA1_FILE_NAME="apache-beam-$VERSION-python.zip.sha1"
+MD5_FILE_NAME="apache-beam-$VERSION-python.zip.md5"
Review comment:
md5 files are being removed from the release process. I believe 2.4.0 will
not have them.
----------------------------------------------------------------
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: 81334)
Time Spent: 12h 10m (was: 12h)
> Get Python Mobile-Gaming Running on Core Runners
> ------------------------------------------------
>
> Key: BEAM-3840
> URL: https://issues.apache.org/jira/browse/BEAM-3840
> Project: Beam
> Issue Type: Sub-task
> Components: examples-python
> Affects Versions: 2.5.0
> Reporter: yifan zou
> Assignee: yifan zou
> Priority: Major
> Fix For: 2.5.0
>
> Time Spent: 12h 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)