[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=114949=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-114949 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 22/Jun/18 22:21 Start Date: 22/Jun/18 22:21 Worklog Time Spent: 10m Work Description: alanmyrvold commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r197582490 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,220 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://s.apache.org/beam-release-validation) + +_Note_: -Prepourl and -Pver can be found in the RC vote email sent by Release Manager. +* Java Quickstart Validation + + Direct Runner: + ``` + ./gradlew :beam-runners-direct-java:runQuickstartJavaDirect \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Apex Local Runner + ``` + ./gradlew :beam-runners-apex:runQuickstartJavaApex \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Flink Local Runner + ``` + ./gradlew :beam-runners-flink_2.11:runQuickstartJavaFlinkLocal \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Spark Local Runner + ``` + ./gradlew :beam-runners-spark:runQuickstartJavaSpark \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Dataflow Runner + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runQuickstartJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=${YOUR_GCP_BUCKET} + ``` +* Java Mobile Game(UserScore, HourlyTeamScore, Leaderboard) + + Pre-request + * Create your own BigQuery dataset +``` +bq mk --project=${YOUR_GCP_PROJECT} ${YOUR_DATASET} +``` + * Create yout PubSub topic +``` +gcloud alpha pubsub topics create --project=${YOUR_GCP_PROJECT} ${YOUR_PROJECT_PUBSUB_TOPIC} +``` + * Setup your service account + +Goto IAM console in your project to create a service account as ```project owner``` + +Run +``` +gcloud iam service-accounts keys create ${YOUR_KEY_JSON} --iam-account ${YOUR_SERVICE_ACCOUNT_NAME}@${YOUR_PROJECT_NAME} +export GOOGLE_APPLICATION_CREDENTIALS=${PATH_TO_YOUR_KEY_JSON} +``` + Run + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runMobileGamingJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=gs://dataflow-samples/game/gaming_data1.csv \ + -PbqDataset=${YOUR_DATASET} -PpubsubTopic=${YOUR_PROJECT_PUBSUB_TOPIC} + ``` +* Python Quickstart(batch & streaming), MobileGame(UserScore, HourlyTeamScore) + + Create a new PR in apache/beam + + In comment area, type in ```Run Python ReleaseCandidate``` + +* Python Leaderboard & GameStats + * Get staging RC ```wget https://dist.apache.org/repos/dist/dev/beam/2.5.0/* ``` + * Verify the hashes + +``` +sha512sum -c apache-beam-2.5.0-python.zip.sha512 +sha512sum -c apache-beam-2.5.0-source-release.zip.sha512 +``` + * Build SDK + +``` +sudo apt-get install unzip +unzip apache-beam-2.5.0-source-release.zip +python setup.py sdist +``` + * Setup virtualenv + +``` +pip install --upgrade pip +pip install --upgrade setuptools +pip install --upgrade virtualenv +virtualenv beam_env + . beam_env/bin/activate +``` + * Install SDK + +``` +pip install dist/apache-beam-2.5.0.tar.gz +pip install dist/apache-beam-2.5.0.tar.gz[gcp] +``` + * Setup GCP + +Please repeat following steps for every following test. + +``` +bq rm -rf --project=${YOUR_PROJECT} ${USER}_test +bq mk --project=${YOUR_PROJECT} ${USER}_test +gsutil rm -rf ${YOUR_GS_STORAGE] +gsutil mb -p ${YOUR_PROJECT} ${YOUR_GS_STORAGE} +gcloud alpha pubsub topics create --project=${YOUR_PROJECT} ${YOUR_PUBSUB_TOPIC} +``` +Setup your service account as described in ```Java Mobile Game``` section above. + +Produce data by using java injector: +* Configure your ~/.m2/settings.xml as following: + ``` + + + +release-repo + +
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=114912=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-114912 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 22/Jun/18 20:55 Start Date: 22/Jun/18 20:55 Worklog Time Spent: 10m Work Description: asfgit closed pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468 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/src/contribute/release-guide.md b/src/contribute/release-guide.md index b2abf3203..6cc8abcce 100644 --- a/src/contribute/release-guide.md +++ b/src/contribute/release-guide.md @@ -30,6 +30,7 @@ The release process consists of several steps: 1. Prepare for the release 1. Build a release candidate 1. Vote on the release candidate +1. During vote process, run validation tests 1. If necessary, fix any issues and go back to step 3. 1. Finalize the release 1. Promote the release @@ -511,7 +512,220 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://s.apache.org/beam-release-validation) + +_Note_: -Prepourl and -Pver can be found in the RC vote email sent by Release Manager. +* Java Quickstart Validation + + Direct Runner: + ``` + ./gradlew :beam-runners-direct-java:runQuickstartJavaDirect \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Apex Local Runner + ``` + ./gradlew :beam-runners-apex:runQuickstartJavaApex \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Flink Local Runner + ``` + ./gradlew :beam-runners-flink_2.11:runQuickstartJavaFlinkLocal \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Spark Local Runner + ``` + ./gradlew :beam-runners-spark:runQuickstartJavaSpark \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Dataflow Runner + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runQuickstartJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=${YOUR_GCP_BUCKET} + ``` +* Java Mobile Game(UserScore, HourlyTeamScore, Leaderboard) + + Pre-request + * Create your own BigQuery dataset +``` +bq mk --project=${YOUR_GCP_PROJECT} ${YOUR_DATASET} +``` + * Create yout PubSub topic +``` +gcloud alpha pubsub topics create --project=${YOUR_GCP_PROJECT} ${YOUR_PROJECT_PUBSUB_TOPIC} +``` + * Setup your service account + +Goto IAM console in your project to create a service account as ```project owner``` + +Run +``` +gcloud iam service-accounts keys create ${YOUR_KEY_JSON} --iam-account ${YOUR_SERVICE_ACCOUNT_NAME}@${YOUR_PROJECT_NAME} +export GOOGLE_APPLICATION_CREDENTIALS=${PATH_TO_YOUR_KEY_JSON} +``` + Run + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runMobileGamingJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=gs://dataflow-samples/game/gaming_data1.csv \ + -PbqDataset=${YOUR_DATASET} -PpubsubTopic=${YOUR_PROJECT_PUBSUB_TOPIC} + ``` +* Python Quickstart(batch & streaming), MobileGame(UserScore, HourlyTeamScore) + + Create a new PR in apache/beam + + In comment area, type in ```Run Python ReleaseCandidate``` + +* Python Leaderboard & GameStats + * Get staging RC ```wget https://dist.apache.org/repos/dist/dev/beam/2.5.0/* ``` + * Verify the hashes + +``` +sha512sum -c apache-beam-2.5.0-python.zip.sha512 +sha512sum -c apache-beam-2.5.0-source-release.zip.sha512 +``` + * Build SDK + +``` +sudo apt-get install unzip +unzip apache-beam-2.5.0-source-release.zip +python setup.py sdist +``` + * Setup virtualenv + +``` +pip install --upgrade pip +pip install --upgrade setuptools +pip install --upgrade virtualenv +virtualenv beam_env + . beam_env/bin/activate +``` + * Install SDK + +``` +pip install dist/apache-beam-2.5.0.tar.gz +pip install dist/apache-beam-2.5.0.tar.gz[gcp] +``` + * Setup GCP
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=114903=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-114903 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 22/Jun/18 20:34 Start Date: 22/Jun/18 20:34 Worklog Time Spent: 10m Work Description: aaltay commented on issue #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#issuecomment-399574080 @asfgit merge 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: 114903) Time Spent: 2h 50m (was: 2h 40m) > Update release guide with how to perform release validations > > > Key: BEAM-4483 > URL: https://issues.apache.org/jira/browse/BEAM-4483 > Project: Beam > Issue Type: Bug > Components: build-system >Reporter: Boyuan Zhang >Assignee: Boyuan Zhang >Priority: Major > Time Spent: 2h 50m > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=114892=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-114892 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 22/Jun/18 20:08 Start Date: 22/Jun/18 20:08 Worklog Time Spent: 10m Work Description: boyuanzz commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r197556245 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,220 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://docs.google.com/spreadsheets/d/1qk-N5vjXvbcEk68GjbkSZTR8AGqyNUM-oLFo_ZXBpJw/edit#gid=152451807) Review comment: Fixed in https://github.com/apache/beam-site/pull/468/commits/ce2286c3569959ea1f3821bf8522127ed7c73bc4 . 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: 114892) Time Spent: 2h 40m (was: 2.5h) > Update release guide with how to perform release validations > > > Key: BEAM-4483 > URL: https://issues.apache.org/jira/browse/BEAM-4483 > Project: Beam > Issue Type: Bug > Components: build-system >Reporter: Boyuan Zhang >Assignee: Boyuan Zhang >Priority: Major > Time Spent: 2h 40m > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=114887=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-114887 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 22/Jun/18 19:38 Start Date: 22/Jun/18 19:38 Worklog Time Spent: 10m Work Description: alanmyrvold commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r197549133 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,220 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://docs.google.com/spreadsheets/d/1qk-N5vjXvbcEk68GjbkSZTR8AGqyNUM-oLFo_ZXBpJw/edit#gid=152451807) Review comment: Change to https://s.apache.org/beam-release-validation ? 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: 114887) Time Spent: 2.5h (was: 2h 20m) > Update release guide with how to perform release validations > > > Key: BEAM-4483 > URL: https://issues.apache.org/jira/browse/BEAM-4483 > Project: Beam > Issue Type: Bug > Components: build-system >Reporter: Boyuan Zhang >Assignee: Boyuan Zhang >Priority: Major > Time Spent: 2.5h > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=114857=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-114857 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 22/Jun/18 18:18 Start Date: 22/Jun/18 18:18 Worklog Time Spent: 10m Work Description: boyuanzz commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r197528932 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,208 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://docs.google.com/spreadsheets/d/1qk-N5vjXvbcEk68GjbkSZTR8AGqyNUM-oLFo_ZXBpJw/edit#gid=152451807) + +_Note_: -Prepourl and -Pver can be found in the RC vote email sent by Release Manager. +* Java Quickstart Validation + + Direct Runner: + ``` + ./gradlew :beam-runners-direct-java:runQuickstartJavaDirect \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Apex Local Runner + ``` + ./gradlew :beam-runners-apex:runQuickstartJavaApex \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Flink Local Runner + ``` + ./gradlew :beam-runners-flink_2.11:runQuickstartJavaFlinkLocal \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Spark Local Runner + ``` + ./gradlew :beam-runners-spark:runQuickstartJavaSpark \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Dataflow Runner + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runQuickstartJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=${YOUR_GCP_BUCKET} + ``` +* Java Mobile Game(UserScore, HourlyTeamScore, Leaderboard) + + Pre-request + * Create your own BigQuery dataset +``` +bq mk --project=${YOUR_GCP_PROJECT} ${YOUR_DATASET} +``` + * Create yout PubSub topic +``` +gcloud alpha pubsub topics create --project=${YOUR_GCP_PROJECT} ${YOUR_PROJECT_PUBSUB_TOPIC} +``` + * Setup your service account + +Goto IAM console in your project to create a service account as ```project owner``` + +Run +``` +gcloud iam service-accounts keys create ${YOUR_KEY_JSON} --iam-account ${YOUR_SERVICE_ACCOUNT_NAME}@${YOUR_PROJECT_NAME} +export GOOGLE_APPLICATION_CREDENTIALS=${PATH_TO_YOUR_KEY_JSON} +``` + Run + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runMobileGamingJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=gs://dataflow-samples/game/gaming_data1.csv \ + -PbqDataset=${YOUR_DATASET} -PpubsubTopic=${YOUR_PROJECT_PUBSUB_TOPIC} + ``` +* Python Quickstart(batch & streaming), MobileGame(UserScore, HourlyTeamScore) + + Create a new PR in apache/beam + + In comment area, type in ```Run Python ReleaseCandidate``` + +* Python Leaderboard & GameStats + * Get staging RC ```wget https://dist.apache.org/repos/dist/dev/beam/2.5.0/* ``` + * Verify the hashes + +``` +sha512sum -c apache-beam-2.5.0-python.zip.sha512 +sha512sum -c apache-beam-2.5.0-source-release.zip.sha512 +``` + * Build SDK + +``` +sudo apt-get install unzip +unzip apache-beam-2.5.0-source-release.zip +``` + * Setup virtualenv + +``` +pip install --upgrade pip +pip install --upgrade setuptools +pip install --upgrade virtualenv +virtualenv beam_env + . beam_env/bin/activate +``` + * Install SDK + +``` +pip install dist/apache-beam-2.5.0.tar.gz +pip install dist/apache-beam-2.5.0.tar.gz[gcp] +``` + * Setup GCP + +Please repeat following steps for every following test. + +``` +bq rm -rf --project=${YOUR_PROJECT} ${USER}_test +bq mk --project=${YOUR_PROJECT} ${USER}_test +gsutil rm -rf ${YOUR_GS_STORAGE] +gsutil mb -p ${YOUR_PROJECT} ${YOUR_GS_STORAGE} +gcloud alpha pubsub topics create --project=${YOUR_PROJECT} ${YOUR_PUBSUB_TOPIC} +``` +Setup your service account as described in ```Java Mobile Game``` section above. + +Produce data by using java injector: +* Configure your ~/.m2/settings.xml as following: + ``` + + + +release-repo
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=112906=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-112906 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 18/Jun/18 20:48 Start Date: 18/Jun/18 20:48 Worklog Time Spent: 10m Work Description: aaltay commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r196220146 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,208 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://docs.google.com/spreadsheets/d/1qk-N5vjXvbcEk68GjbkSZTR8AGqyNUM-oLFo_ZXBpJw/edit#gid=152451807) + +_Note_: -Prepourl and -Pver can be found in the RC vote email sent by Release Manager. +* Java Quickstart Validation + + Direct Runner: + ``` + ./gradlew :beam-runners-direct-java:runQuickstartJavaDirect \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Apex Local Runner + ``` + ./gradlew :beam-runners-apex:runQuickstartJavaApex \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Flink Local Runner + ``` + ./gradlew :beam-runners-flink_2.11:runQuickstartJavaFlinkLocal \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Spark Local Runner + ``` + ./gradlew :beam-runners-spark:runQuickstartJavaSpark \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver=${RELEASE_VERSION} + ``` + Dataflow Runner + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runQuickstartJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=${YOUR_GCP_BUCKET} + ``` +* Java Mobile Game(UserScore, HourlyTeamScore, Leaderboard) + + Pre-request + * Create your own BigQuery dataset +``` +bq mk --project=${YOUR_GCP_PROJECT} ${YOUR_DATASET} +``` + * Create yout PubSub topic +``` +gcloud alpha pubsub topics create --project=${YOUR_GCP_PROJECT} ${YOUR_PROJECT_PUBSUB_TOPIC} +``` + * Setup your service account + +Goto IAM console in your project to create a service account as ```project owner``` + +Run +``` +gcloud iam service-accounts keys create ${YOUR_KEY_JSON} --iam-account ${YOUR_SERVICE_ACCOUNT_NAME}@${YOUR_PROJECT_NAME} +export GOOGLE_APPLICATION_CREDENTIALS=${PATH_TO_YOUR_KEY_JSON} +``` + Run + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runMobileGamingJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-${KEY} \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=gs://dataflow-samples/game/gaming_data1.csv \ + -PbqDataset=${YOUR_DATASET} -PpubsubTopic=${YOUR_PROJECT_PUBSUB_TOPIC} + ``` +* Python Quickstart(batch & streaming), MobileGame(UserScore, HourlyTeamScore) + + Create a new PR in apache/beam + + In comment area, type in ```Run Python ReleaseCandidate``` + +* Python Leaderboard & GameStats + * Get staging RC ```wget https://dist.apache.org/repos/dist/dev/beam/2.5.0/* ``` + * Verify the hashes + +``` +sha512sum -c apache-beam-2.5.0-python.zip.sha512 +sha512sum -c apache-beam-2.5.0-source-release.zip.sha512 +``` + * Build SDK + +``` +sudo apt-get install unzip +unzip apache-beam-2.5.0-source-release.zip +``` + * Setup virtualenv + +``` +pip install --upgrade pip +pip install --upgrade setuptools +pip install --upgrade virtualenv +virtualenv beam_env + . beam_env/bin/activate +``` + * Install SDK + +``` +pip install dist/apache-beam-2.5.0.tar.gz +pip install dist/apache-beam-2.5.0.tar.gz[gcp] +``` + * Setup GCP + +Please repeat following steps for every following test. + +``` +bq rm -rf --project=${YOUR_PROJECT} ${USER}_test +bq mk --project=${YOUR_PROJECT} ${USER}_test +gsutil rm -rf ${YOUR_GS_STORAGE] +gsutil mb -p ${YOUR_PROJECT} ${YOUR_GS_STORAGE} +gcloud alpha pubsub topics create --project=${YOUR_PROJECT} ${YOUR_PUBSUB_TOPIC} +``` +Setup your service account as described in ```Java Mobile Game``` section above. + +Produce data by using java injector: +* Configure your ~/.m2/settings.xml as following: + ``` + + + +release-repo +
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=112838=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-112838 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 18/Jun/18 17:55 Start Date: 18/Jun/18 17:55 Worklog Time Spent: 10m Work Description: boyuanzz commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r196169548 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,171 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://docs.google.com/spreadsheets/d/1qk-N5vjXvbcEk68GjbkSZTR8AGqyNUM-oLFo_ZXBpJw/edit#gid=152451807) + +* Java Quickstart Validation + Direct Runner: + ``` + ./gradlew :beam-runners-direct-java:runQuickstartJavaDirect \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Apex Local Runner + ``` + ./gradlew :beam-runners-apex:runQuickstartJavaApex \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Flink Local Runner + ``` + ./gradlew :beam-runners-flink_2.11:runQuickstartJavaFlinkLocal \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Spark Local Runner + ``` + ./gradlew :beam-runners-spark:runQuickstartJavaSpark \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Dataflow Runner + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runQuickstartJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=${YOUR_GCP_BUCKET} + ``` +* Java Mobile Game(UserScore, HourlyTeamScore, Leaderboard) + + Pre-request + * Create your own BigQuery dataset +``` +bq mk --project=${YOUR_GCP_PROJECT} ${YOUR_DATASET} +``` + * Create yout PubSub topic +``` +gcloud alpha pubsub topics create --project=${YOUR_GCP_PROJECT} ${YOUR_PROJECT_PUBSUB_TOPIC} +``` + * Setup your service account + +Goto IAM console in your project to create a service account as ```project owner``` + +Run +``` +gcloud iam service-accounts keys create ${YOUR_KEY_JSON} --iam-account ${YOUR_SERVICE_ACCOUNT_NAME}@${YOUR_PROJECT_NAME} +export GOOGLE_APPLICATION_CREDENTIALS=${PATH_TO_YOUR_KEY_JSON} +``` + Run + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runMobileGamingJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=gs://dataflow-samples/game/gaming_data1.csv \ + -PbqDataset=${YOUR_DATASET} -PpubsubTopic=${YOUR_PROJECT_PUBSUB_TOPIC} + ``` +* Python Quickstart(batch & streaming), MobileGame(UserScore, HourlyTeamScore) + + Create a new PR in apache/beam + + In comment area, type in ```Run Python ReleaseCandidate``` + +* Python Leaderboard & GameStats + * Get staging RC ```wget https://dist.apache.org/repos/dist/dev/beam/2.5.0/* ``` + * Verify the hashes + +``` +sha512sum -c apache-beam-2.5.0-python.zip.sha512 +sha512sum -c apache-beam-2.5.0-source-release.zip.sha512 +``` + * Build SDK + +``` +sudo apt-get install unzip +unzip apache-beam-2.5.0-source-release.zip +``` + * Setup virtualenv + +``` +pip install --upgrade pip +pip install --upgrade setuptools +pip install --upgrade virtualenv +virtualenv beam_env + . beam_env/bin/activate +``` + * Install SDK + +``` +pip install dist/apache-beam-2.5.0.tar.gz +pip install dist/apache-beam-2.5.0.tar.gz[gcp] +``` + * Setup GCP + +Please repeat following steps for every following test + +``` +bq rm -rf --project=${YOUR_PROJECT} ${USER}_test +bq mk --project=${YOUR_PROJECT} ${USER}_test +gsutil rm -rf ${YOUR_GS_STORAGE] +gsutil mb -p ${YOUR_PROJECT} ${YOUR_GS_STORAGE} +gcloud alpha pubsub topics create --project=${YOUR_PROJECT} ${YOUR_PUBSUB_TOPIC} +``` +Setup your service account as described in ```Java Mobile Game``` section above + +Produce data by using java injector + +``` +mvn archetype:generate \ + -DarchetypeGroupId=org.apache.beam \ + -DarchetypeArtifactId=beam-sdks-java-maven-archetypes-examples \ + -DarchetypeVersion=2.4.0 \ Review comment:
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=112500=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-112500 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 16/Jun/18 00:59 Start Date: 16/Jun/18 00:59 Worklog Time Spent: 10m Work Description: lukecwik commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r195888911 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,171 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://docs.google.com/spreadsheets/d/1qk-N5vjXvbcEk68GjbkSZTR8AGqyNUM-oLFo_ZXBpJw/edit#gid=152451807) + +* Java Quickstart Validation + Direct Runner: + ``` + ./gradlew :beam-runners-direct-java:runQuickstartJavaDirect \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Apex Local Runner + ``` + ./gradlew :beam-runners-apex:runQuickstartJavaApex \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Flink Local Runner + ``` + ./gradlew :beam-runners-flink_2.11:runQuickstartJavaFlinkLocal \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Spark Local Runner + ``` + ./gradlew :beam-runners-spark:runQuickstartJavaSpark \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Dataflow Runner + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runQuickstartJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=${YOUR_GCP_BUCKET} + ``` +* Java Mobile Game(UserScore, HourlyTeamScore, Leaderboard) + + Pre-request + * Create your own BigQuery dataset +``` +bq mk --project=${YOUR_GCP_PROJECT} ${YOUR_DATASET} +``` + * Create yout PubSub topic +``` +gcloud alpha pubsub topics create --project=${YOUR_GCP_PROJECT} ${YOUR_PROJECT_PUBSUB_TOPIC} +``` + * Setup your service account + +Goto IAM console in your project to create a service account as ```project owner``` + +Run +``` +gcloud iam service-accounts keys create ${YOUR_KEY_JSON} --iam-account ${YOUR_SERVICE_ACCOUNT_NAME}@${YOUR_PROJECT_NAME} +export GOOGLE_APPLICATION_CREDENTIALS=${PATH_TO_YOUR_KEY_JSON} +``` + Run + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runMobileGamingJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=gs://dataflow-samples/game/gaming_data1.csv \ + -PbqDataset=${YOUR_DATASET} -PpubsubTopic=${YOUR_PROJECT_PUBSUB_TOPIC} + ``` +* Python Quickstart(batch & streaming), MobileGame(UserScore, HourlyTeamScore) + + Create a new PR in apache/beam + + In comment area, type in ```Run Python ReleaseCandidate``` + +* Python Leaderboard & GameStats + * Get staging RC ```wget https://dist.apache.org/repos/dist/dev/beam/2.5.0/* ``` + * Verify the hashes + +``` +sha512sum -c apache-beam-2.5.0-python.zip.sha512 +sha512sum -c apache-beam-2.5.0-source-release.zip.sha512 +``` + * Build SDK + +``` +sudo apt-get install unzip +unzip apache-beam-2.5.0-source-release.zip +``` + * Setup virtualenv + +``` +pip install --upgrade pip +pip install --upgrade setuptools +pip install --upgrade virtualenv +virtualenv beam_env + . beam_env/bin/activate +``` + * Install SDK + +``` +pip install dist/apache-beam-2.5.0.tar.gz +pip install dist/apache-beam-2.5.0.tar.gz[gcp] +``` + * Setup GCP + +Please repeat following steps for every following test + +``` +bq rm -rf --project=${YOUR_PROJECT} ${USER}_test +bq mk --project=${YOUR_PROJECT} ${USER}_test +gsutil rm -rf ${YOUR_GS_STORAGE] +gsutil mb -p ${YOUR_PROJECT} ${YOUR_GS_STORAGE} +gcloud alpha pubsub topics create --project=${YOUR_PROJECT} ${YOUR_PUBSUB_TOPIC} +``` +Setup your service account as described in ```Java Mobile Game``` section above + +Produce data by using java injector + +``` +mvn archetype:generate \ + -DarchetypeGroupId=org.apache.beam \ + -DarchetypeArtifactId=beam-sdks-java-maven-archetypes-examples \ + -DarchetypeVersion=2.4.0 \ Review comment:
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=112499=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-112499 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 16/Jun/18 00:58 Start Date: 16/Jun/18 00:58 Worklog Time Spent: 10m Work Description: lukecwik commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r195888911 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,171 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://docs.google.com/spreadsheets/d/1qk-N5vjXvbcEk68GjbkSZTR8AGqyNUM-oLFo_ZXBpJw/edit#gid=152451807) + +* Java Quickstart Validation + Direct Runner: + ``` + ./gradlew :beam-runners-direct-java:runQuickstartJavaDirect \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Apex Local Runner + ``` + ./gradlew :beam-runners-apex:runQuickstartJavaApex \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Flink Local Runner + ``` + ./gradlew :beam-runners-flink_2.11:runQuickstartJavaFlinkLocal \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Spark Local Runner + ``` + ./gradlew :beam-runners-spark:runQuickstartJavaSpark \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Dataflow Runner + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runQuickstartJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=${YOUR_GCP_BUCKET} + ``` +* Java Mobile Game(UserScore, HourlyTeamScore, Leaderboard) + + Pre-request + * Create your own BigQuery dataset +``` +bq mk --project=${YOUR_GCP_PROJECT} ${YOUR_DATASET} +``` + * Create yout PubSub topic +``` +gcloud alpha pubsub topics create --project=${YOUR_GCP_PROJECT} ${YOUR_PROJECT_PUBSUB_TOPIC} +``` + * Setup your service account + +Goto IAM console in your project to create a service account as ```project owner``` + +Run +``` +gcloud iam service-accounts keys create ${YOUR_KEY_JSON} --iam-account ${YOUR_SERVICE_ACCOUNT_NAME}@${YOUR_PROJECT_NAME} +export GOOGLE_APPLICATION_CREDENTIALS=${PATH_TO_YOUR_KEY_JSON} +``` + Run + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runMobileGamingJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=gs://dataflow-samples/game/gaming_data1.csv \ + -PbqDataset=${YOUR_DATASET} -PpubsubTopic=${YOUR_PROJECT_PUBSUB_TOPIC} + ``` +* Python Quickstart(batch & streaming), MobileGame(UserScore, HourlyTeamScore) + + Create a new PR in apache/beam + + In comment area, type in ```Run Python ReleaseCandidate``` + +* Python Leaderboard & GameStats + * Get staging RC ```wget https://dist.apache.org/repos/dist/dev/beam/2.5.0/* ``` + * Verify the hashes + +``` +sha512sum -c apache-beam-2.5.0-python.zip.sha512 +sha512sum -c apache-beam-2.5.0-source-release.zip.sha512 +``` + * Build SDK + +``` +sudo apt-get install unzip +unzip apache-beam-2.5.0-source-release.zip +``` + * Setup virtualenv + +``` +pip install --upgrade pip +pip install --upgrade setuptools +pip install --upgrade virtualenv +virtualenv beam_env + . beam_env/bin/activate +``` + * Install SDK + +``` +pip install dist/apache-beam-2.5.0.tar.gz +pip install dist/apache-beam-2.5.0.tar.gz[gcp] +``` + * Setup GCP + +Please repeat following steps for every following test + +``` +bq rm -rf --project=${YOUR_PROJECT} ${USER}_test +bq mk --project=${YOUR_PROJECT} ${USER}_test +gsutil rm -rf ${YOUR_GS_STORAGE] +gsutil mb -p ${YOUR_PROJECT} ${YOUR_GS_STORAGE} +gcloud alpha pubsub topics create --project=${YOUR_PROJECT} ${YOUR_PUBSUB_TOPIC} +``` +Setup your service account as described in ```Java Mobile Game``` section above + +Produce data by using java injector + +``` +mvn archetype:generate \ + -DarchetypeGroupId=org.apache.beam \ + -DarchetypeArtifactId=beam-sdks-java-maven-archetypes-examples \ + -DarchetypeVersion=2.4.0 \ Review comment:
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=112477=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-112477 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 15/Jun/18 23:01 Start Date: 15/Jun/18 23:01 Worklog Time Spent: 10m Work Description: boyuanzz commented on issue #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#issuecomment-397762877 Hey @alanmyrvold , please review commit https://github.com/apache/beam-site/pull/468/commits/7792feeb9b74fec37449c4b7ba831393d17f066c . Thanks for your help! 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: 112477) Time Spent: 1.5h (was: 1h 20m) > Update release guide with how to perform release validations > > > Key: BEAM-4483 > URL: https://issues.apache.org/jira/browse/BEAM-4483 > Project: Beam > Issue Type: Bug > Components: build-system >Reporter: Boyuan Zhang >Assignee: Boyuan Zhang >Priority: Major > Time Spent: 1.5h > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=112475=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-112475 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 15/Jun/18 22:50 Start Date: 15/Jun/18 22:50 Worklog Time Spent: 10m Work Description: boyuanzz commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r195878948 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,171 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://docs.google.com/spreadsheets/d/1qk-N5vjXvbcEk68GjbkSZTR8AGqyNUM-oLFo_ZXBpJw/edit#gid=152451807) + +* Java Quickstart Validation + Direct Runner: + ``` + ./gradlew :beam-runners-direct-java:runQuickstartJavaDirect \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Apex Local Runner + ``` + ./gradlew :beam-runners-apex:runQuickstartJavaApex \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Flink Local Runner + ``` + ./gradlew :beam-runners-flink_2.11:runQuickstartJavaFlinkLocal \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Spark Local Runner + ``` + ./gradlew :beam-runners-spark:runQuickstartJavaSpark \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Dataflow Runner + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runQuickstartJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=${YOUR_GCP_BUCKET} + ``` +* Java Mobile Game(UserScore, HourlyTeamScore, Leaderboard) + + Pre-request + * Create your own BigQuery dataset +``` +bq mk --project=${YOUR_GCP_PROJECT} ${YOUR_DATASET} +``` + * Create yout PubSub topic +``` +gcloud alpha pubsub topics create --project=${YOUR_GCP_PROJECT} ${YOUR_PROJECT_PUBSUB_TOPIC} +``` + * Setup your service account + +Goto IAM console in your project to create a service account as ```project owner``` + +Run +``` +gcloud iam service-accounts keys create ${YOUR_KEY_JSON} --iam-account ${YOUR_SERVICE_ACCOUNT_NAME}@${YOUR_PROJECT_NAME} +export GOOGLE_APPLICATION_CREDENTIALS=${PATH_TO_YOUR_KEY_JSON} +``` + Run + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runMobileGamingJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=gs://dataflow-samples/game/gaming_data1.csv \ + -PbqDataset=${YOUR_DATASET} -PpubsubTopic=${YOUR_PROJECT_PUBSUB_TOPIC} + ``` +* Python Quickstart(batch & streaming), MobileGame(UserScore, HourlyTeamScore) + + Create a new PR in apache/beam + + In comment area, type in ```Run Python ReleaseCandidate``` + +* Python Leaderboard & GameStats + * Get staging RC ```wget https://dist.apache.org/repos/dist/dev/beam/2.5.0/* ``` + * Verify the hashes + +``` +sha512sum -c apache-beam-2.5.0-python.zip.sha512 +sha512sum -c apache-beam-2.5.0-source-release.zip.sha512 +``` + * Build SDK + +``` +sudo apt-get install unzip +unzip apache-beam-2.5.0-source-release.zip +``` + * Setup virtualenv + +``` +pip install --upgrade pip +pip install --upgrade setuptools +pip install --upgrade virtualenv +virtualenv beam_env + . beam_env/bin/activate +``` + * Install SDK + +``` +pip install dist/apache-beam-2.5.0.tar.gz +pip install dist/apache-beam-2.5.0.tar.gz[gcp] +``` + * Setup GCP + +Please repeat following steps for every following test + +``` +bq rm -rf --project=${YOUR_PROJECT} ${USER}_test +bq mk --project=${YOUR_PROJECT} ${USER}_test +gsutil rm -rf ${YOUR_GS_STORAGE] +gsutil mb -p ${YOUR_PROJECT} ${YOUR_GS_STORAGE} +gcloud alpha pubsub topics create --project=${YOUR_PROJECT} ${YOUR_PUBSUB_TOPIC} +``` +Setup your service account as described in ```Java Mobile Game``` section above + +Produce data by using java injector + +``` +mvn archetype:generate \ + -DarchetypeGroupId=org.apache.beam \ + -DarchetypeArtifactId=beam-sdks-java-maven-archetypes-examples \ + -DarchetypeVersion=2.4.0 \ Review comment:
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=112448=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-112448 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 15/Jun/18 21:22 Start Date: 15/Jun/18 21:22 Worklog Time Spent: 10m Work Description: alanmyrvold commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r195864967 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,183 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://docs.google.com/spreadsheets/d/1qk-N5vjXvbcEk68GjbkSZTR8AGqyNUM-oLFo_ZXBpJw/edit#gid=152451807) + +* Java Quickstart Validation + Direct Runner: + ``` + ./gradlew :beam-runners-direct-java:runQuickstartJavaDirect \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ Review comment: Need to add a comment to replace 1041 by the version being used for the release 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: 112448) Time Spent: 1h 10m (was: 1h) > Update release guide with how to perform release validations > > > Key: BEAM-4483 > URL: https://issues.apache.org/jira/browse/BEAM-4483 > Project: Beam > Issue Type: Bug > Components: build-system >Reporter: Boyuan Zhang >Assignee: Boyuan Zhang >Priority: Major > Time Spent: 1h 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=112447=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-112447 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 15/Jun/18 21:21 Start Date: 15/Jun/18 21:21 Worklog Time Spent: 10m Work Description: alanmyrvold commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r195864783 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,171 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://docs.google.com/spreadsheets/d/1qk-N5vjXvbcEk68GjbkSZTR8AGqyNUM-oLFo_ZXBpJw/edit#gid=152451807) + +* Java Quickstart Validation + Direct Runner: + ``` + ./gradlew :beam-runners-direct-java:runQuickstartJavaDirect \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Apex Local Runner + ``` + ./gradlew :beam-runners-apex:runQuickstartJavaApex \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Flink Local Runner + ``` + ./gradlew :beam-runners-flink_2.11:runQuickstartJavaFlinkLocal \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Spark Local Runner + ``` + ./gradlew :beam-runners-spark:runQuickstartJavaSpark \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Dataflow Runner + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runQuickstartJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=${YOUR_GCP_BUCKET} + ``` +* Java Mobile Game(UserScore, HourlyTeamScore, Leaderboard) + + Pre-request + * Create your own BigQuery dataset +``` +bq mk --project=${YOUR_GCP_PROJECT} ${YOUR_DATASET} +``` + * Create yout PubSub topic +``` +gcloud alpha pubsub topics create --project=${YOUR_GCP_PROJECT} ${YOUR_PROJECT_PUBSUB_TOPIC} +``` + * Setup your service account + +Goto IAM console in your project to create a service account as ```project owner``` + +Run +``` +gcloud iam service-accounts keys create ${YOUR_KEY_JSON} --iam-account ${YOUR_SERVICE_ACCOUNT_NAME}@${YOUR_PROJECT_NAME} +export GOOGLE_APPLICATION_CREDENTIALS=${PATH_TO_YOUR_KEY_JSON} +``` + Run + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runMobileGamingJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=gs://dataflow-samples/game/gaming_data1.csv \ + -PbqDataset=${YOUR_DATASET} -PpubsubTopic=${YOUR_PROJECT_PUBSUB_TOPIC} + ``` +* Python Quickstart(batch & streaming), MobileGame(UserScore, HourlyTeamScore) + + Create a new PR in apache/beam + + In comment area, type in ```Run Python ReleaseCandidate``` + +* Python Leaderboard & GameStats + * Get staging RC ```wget https://dist.apache.org/repos/dist/dev/beam/2.5.0/* ``` + * Verify the hashes + +``` +sha512sum -c apache-beam-2.5.0-python.zip.sha512 +sha512sum -c apache-beam-2.5.0-source-release.zip.sha512 +``` + * Build SDK + +``` +sudo apt-get install unzip +unzip apache-beam-2.5.0-source-release.zip +``` + * Setup virtualenv + +``` +pip install --upgrade pip +pip install --upgrade setuptools +pip install --upgrade virtualenv +virtualenv beam_env + . beam_env/bin/activate +``` + * Install SDK + +``` +pip install dist/apache-beam-2.5.0.tar.gz +pip install dist/apache-beam-2.5.0.tar.gz[gcp] +``` + * Setup GCP + +Please repeat following steps for every following test + +``` +bq rm -rf --project=${YOUR_PROJECT} ${USER}_test +bq mk --project=${YOUR_PROJECT} ${USER}_test +gsutil rm -rf ${YOUR_GS_STORAGE] +gsutil mb -p ${YOUR_PROJECT} ${YOUR_GS_STORAGE} +gcloud alpha pubsub topics create --project=${YOUR_PROJECT} ${YOUR_PUBSUB_TOPIC} +``` +Setup your service account as described in ```Java Mobile Game``` section above + +Produce data by using java injector + +``` +mvn archetype:generate \ + -DarchetypeGroupId=org.apache.beam \ + -DarchetypeArtifactId=beam-sdks-java-maven-archetypes-examples \ + -DarchetypeVersion=2.4.0 \ Review
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=112057=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-112057 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 14/Jun/18 21:27 Start Date: 14/Jun/18 21:27 Worklog Time Spent: 10m Work Description: boyuanzz commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r195576852 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,171 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://docs.google.com/spreadsheets/d/1qk-N5vjXvbcEk68GjbkSZTR8AGqyNUM-oLFo_ZXBpJw/edit#gid=152451807) + +* Java Quickstart Validation + Direct Runner: + ``` + ./gradlew :beam-runners-direct-java:runQuickstartJavaDirect \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Apex Local Runner + ``` + ./gradlew :beam-runners-apex:runQuickstartJavaApex \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Flink Local Runner + ``` + ./gradlew :beam-runners-flink_2.11:runQuickstartJavaFlinkLocal \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Spark Local Runner + ``` + ./gradlew :beam-runners-spark:runQuickstartJavaSpark \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Dataflow Runner + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runQuickstartJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=${YOUR_GCP_BUCKET} + ``` +* Java Mobile Game(UserScore, HourlyTeamScore, Leaderboard) + + Pre-request + * Create your own BigQuery dataset +``` +bq mk --project=${YOUR_GCP_PROJECT} ${YOUR_DATASET} +``` + * Create yout PubSub topic +``` +gcloud alpha pubsub topics create --project=${YOUR_GCP_PROJECT} ${YOUR_PROJECT_PUBSUB_TOPIC} +``` + * Setup your service account + +Goto IAM console in your project to create a service account as ```project owner``` + +Run +``` +gcloud iam service-accounts keys create ${YOUR_KEY_JSON} --iam-account ${YOUR_SERVICE_ACCOUNT_NAME}@${YOUR_PROJECT_NAME} +export GOOGLE_APPLICATION_CREDENTIALS=${PATH_TO_YOUR_KEY_JSON} +``` + Run + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runMobileGamingJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=gs://dataflow-samples/game/gaming_data1.csv \ + -PbqDataset=${YOUR_DATASET} -PpubsubTopic=${YOUR_PROJECT_PUBSUB_TOPIC} + ``` +* Python Quickstart(batch & streaming), MobileGame(UserScore, HourlyTeamScore) + + Create a new PR in apache/beam + + In comment area, type in ```Run Python ReleaseCandidate``` + +* Python Leaderboard & GameStats + * Get staging RC ```wget https://dist.apache.org/repos/dist/dev/beam/2.5.0/* ``` + * Verify the hashes + +``` +sha512sum -c apache-beam-2.5.0-python.zip.sha512 +sha512sum -c apache-beam-2.5.0-source-release.zip.sha512 +``` + * Build SDK + +``` +sudo apt-get install unzip +unzip apache-beam-2.5.0-source-release.zip +``` + * Setup virtualenv + +``` +pip install --upgrade pip +pip install --upgrade setuptools +pip install --upgrade virtualenv +virtualenv beam_env + . beam_env/bin/activate +``` + * Install SDK + +``` +pip install dist/apache-beam-2.5.0.tar.gz +pip install dist/apache-beam-2.5.0.tar.gz[gcp] +``` + * Setup GCP + +Please repeat following steps for every following test + +``` +bq rm -rf --project=${YOUR_PROJECT} ${USER}_test +bq mk --project=${YOUR_PROJECT} ${USER}_test +gsutil rm -rf ${YOUR_GS_STORAGE] +gsutil mb -p ${YOUR_PROJECT} ${YOUR_GS_STORAGE} +gcloud alpha pubsub topics create --project=${YOUR_PROJECT} ${YOUR_PUBSUB_TOPIC} +``` +Setup your service account as described in ```Java Mobile Game``` section above + +Produce data by using java injector + +``` +mvn archetype:generate \ + -DarchetypeGroupId=org.apache.beam \ + -DarchetypeArtifactId=beam-sdks-java-maven-archetypes-examples \ + -DarchetypeVersion=2.4.0 \ +
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=111931=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-111931 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 14/Jun/18 17:05 Start Date: 14/Jun/18 17:05 Worklog Time Spent: 10m Work Description: boyuanzz commented on issue #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#issuecomment-397368430 Re: @yifanzou For the tests which has been automated, I put automation test command in the guide. For the rest of the tests, I list manually run commands. 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: 111931) Time Spent: 40m (was: 0.5h) > Update release guide with how to perform release validations > > > Key: BEAM-4483 > URL: https://issues.apache.org/jira/browse/BEAM-4483 > Project: Beam > Issue Type: Bug > Components: build-system >Reporter: Boyuan Zhang >Assignee: Boyuan Zhang >Priority: Major > Time Spent: 40m > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=111926=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-111926 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 14/Jun/18 16:58 Start Date: 14/Jun/18 16:58 Worklog Time Spent: 10m Work Description: boyuanzz commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r195498234 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,171 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://docs.google.com/spreadsheets/d/1qk-N5vjXvbcEk68GjbkSZTR8AGqyNUM-oLFo_ZXBpJw/edit#gid=152451807) + +* Java Quickstart Validation + Direct Runner: + ``` + ./gradlew :beam-runners-direct-java:runQuickstartJavaDirect \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Apex Local Runner + ``` + ./gradlew :beam-runners-apex:runQuickstartJavaApex \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Flink Local Runner + ``` + ./gradlew :beam-runners-flink_2.11:runQuickstartJavaFlinkLocal \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Spark Local Runner + ``` + ./gradlew :beam-runners-spark:runQuickstartJavaSpark \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Dataflow Runner + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runQuickstartJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=${YOUR_GCP_BUCKET} + ``` +* Java Mobile Game(UserScore, HourlyTeamScore, Leaderboard) + + Pre-request + * Create your own BigQuery dataset +``` +bq mk --project=${YOUR_GCP_PROJECT} ${YOUR_DATASET} +``` + * Create yout PubSub topic +``` +gcloud alpha pubsub topics create --project=${YOUR_GCP_PROJECT} ${YOUR_PROJECT_PUBSUB_TOPIC} +``` + * Setup your service account + +Goto IAM console in your project to create a service account as ```project owner``` + +Run +``` +gcloud iam service-accounts keys create ${YOUR_KEY_JSON} --iam-account ${YOUR_SERVICE_ACCOUNT_NAME}@${YOUR_PROJECT_NAME} +export GOOGLE_APPLICATION_CREDENTIALS=${PATH_TO_YOUR_KEY_JSON} +``` + Run + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runMobileGamingJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=gs://dataflow-samples/game/gaming_data1.csv \ + -PbqDataset=${YOUR_DATASET} -PpubsubTopic=${YOUR_PROJECT_PUBSUB_TOPIC} + ``` +* Python Quickstart(batch & streaming), MobileGame(UserScore, HourlyTeamScore) + + Create a new PR in apache/beam + + In comment area, type in ```Run Python ReleaseCandidate``` + +* Python Leaderboard & GameStats + * Get staging RC ```wget https://dist.apache.org/repos/dist/dev/beam/2.5.0/* ``` + * Verify the hashes + +``` +sha512sum -c apache-beam-2.5.0-python.zip.sha512 +sha512sum -c apache-beam-2.5.0-source-release.zip.sha512 +``` + * Build SDK + +``` +sudo apt-get install unzip +unzip apache-beam-2.5.0-source-release.zip +``` + * Setup virtualenv + +``` +pip install --upgrade pip +pip install --upgrade setuptools +pip install --upgrade virtualenv +virtualenv beam_env + . beam_env/bin/activate +``` + * Install SDK + +``` +pip install dist/apache-beam-2.5.0.tar.gz +pip install dist/apache-beam-2.5.0.tar.gz[gcp] +``` + * Setup GCP + +Please repeat following steps for every following test + +``` +bq rm -rf --project=${YOUR_PROJECT} ${USER}_test +bq mk --project=${YOUR_PROJECT} ${USER}_test +gsutil rm -rf ${YOUR_GS_STORAGE] +gsutil mb -p ${YOUR_PROJECT} ${YOUR_GS_STORAGE} +gcloud alpha pubsub topics create --project=${YOUR_PROJECT} ${YOUR_PUBSUB_TOPIC} +``` +Setup your service account as described in ```Java Mobile Game``` section above + +Produce data by using java injector + +``` +mvn archetype:generate \ + -DarchetypeGroupId=org.apache.beam \ + -DarchetypeArtifactId=beam-sdks-java-maven-archetypes-examples \ + -DarchetypeVersion=2.4.0 \ +
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=111924=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-111924 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 14/Jun/18 16:56 Start Date: 14/Jun/18 16:56 Worklog Time Spent: 10m Work Description: boyuanzz commented on a change in pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468#discussion_r195497507 ## File path: src/contribute/release-guide.md ## @@ -511,7 +512,171 @@ If there are no issues, reply on the vote thread to close the voting. Then, tall There are no disapproving votes. Thanks everyone! + +### Run validation tests +All tests listed in this [spreadsheet](https://docs.google.com/spreadsheets/d/1qk-N5vjXvbcEk68GjbkSZTR8AGqyNUM-oLFo_ZXBpJw/edit#gid=152451807) + +* Java Quickstart Validation + Direct Runner: + ``` + ./gradlew :beam-runners-direct-java:runQuickstartJavaDirect \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Apex Local Runner + ``` + ./gradlew :beam-runners-apex:runQuickstartJavaApex \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Flink Local Runner + ``` + ./gradlew :beam-runners-flink_2.11:runQuickstartJavaFlinkLocal \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Spark Local Runner + ``` + ./gradlew :beam-runners-spark:runQuickstartJavaSpark \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver=${RELEASE_VERSION} + ``` + Dataflow Runner + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runQuickstartJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=${YOUR_GCP_BUCKET} + ``` +* Java Mobile Game(UserScore, HourlyTeamScore, Leaderboard) + + Pre-request + * Create your own BigQuery dataset +``` +bq mk --project=${YOUR_GCP_PROJECT} ${YOUR_DATASET} +``` + * Create yout PubSub topic +``` +gcloud alpha pubsub topics create --project=${YOUR_GCP_PROJECT} ${YOUR_PROJECT_PUBSUB_TOPIC} +``` + * Setup your service account + +Goto IAM console in your project to create a service account as ```project owner``` + +Run +``` +gcloud iam service-accounts keys create ${YOUR_KEY_JSON} --iam-account ${YOUR_SERVICE_ACCOUNT_NAME}@${YOUR_PROJECT_NAME} +export GOOGLE_APPLICATION_CREDENTIALS=${PATH_TO_YOUR_KEY_JSON} +``` + Run + ``` + ./gradlew :beam-runners-google-cloud-dataflow-java:runMobileGamingJavaDataflow \ + -Prepourl=https://repository.apache.org/content/repositories/orgapachebeam-1041 \ + -Pver= ${RELEASE_VERSION}\ + -PgcpProject=${YOUR_GCP_PROJECT} \ + -PgcsBucket=gs://dataflow-samples/game/gaming_data1.csv \ + -PbqDataset=${YOUR_DATASET} -PpubsubTopic=${YOUR_PROJECT_PUBSUB_TOPIC} + ``` +* Python Quickstart(batch & streaming), MobileGame(UserScore, HourlyTeamScore) + + Create a new PR in apache/beam + + In comment area, type in ```Run Python ReleaseCandidate``` + +* Python Leaderboard & GameStats + * Get staging RC ```wget https://dist.apache.org/repos/dist/dev/beam/2.5.0/* ``` + * Verify the hashes + +``` +sha512sum -c apache-beam-2.5.0-python.zip.sha512 +sha512sum -c apache-beam-2.5.0-source-release.zip.sha512 +``` + * Build SDK + +``` +sudo apt-get install unzip +unzip apache-beam-2.5.0-source-release.zip +``` + * Setup virtualenv + +``` +pip install --upgrade pip +pip install --upgrade setuptools +pip install --upgrade virtualenv +virtualenv beam_env + . beam_env/bin/activate +``` + * Install SDK + +``` +pip install dist/apache-beam-2.5.0.tar.gz +pip install dist/apache-beam-2.5.0.tar.gz[gcp] +``` + * Setup GCP + +Please repeat following steps for every following test + +``` +bq rm -rf --project=${YOUR_PROJECT} ${USER}_test +bq mk --project=${YOUR_PROJECT} ${USER}_test +gsutil rm -rf ${YOUR_GS_STORAGE] +gsutil mb -p ${YOUR_PROJECT} ${YOUR_GS_STORAGE} +gcloud alpha pubsub topics create --project=${YOUR_PROJECT} ${YOUR_PUBSUB_TOPIC} +``` +Setup your service account as described in ```Java Mobile Game``` section above + +Produce data by using java injector + +``` +mvn archetype:generate \ + -DarchetypeGroupId=org.apache.beam \ + -DarchetypeArtifactId=beam-sdks-java-maven-archetypes-examples \ + -DarchetypeVersion=2.4.0 \ Review comment:
[jira] [Work logged] (BEAM-4483) Update release guide with how to perform release validations
[ https://issues.apache.org/jira/browse/BEAM-4483?focusedWorklogId=111739=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-111739 ] ASF GitHub Bot logged work on BEAM-4483: Author: ASF GitHub Bot Created on: 14/Jun/18 00:55 Start Date: 14/Jun/18 00:55 Worklog Time Spent: 10m Work Description: boyuanzz opened a new pull request #468: [BEAM-4483]Add instructions about how to perform release validations URL: https://github.com/apache/beam-site/pull/468 r: @aaltay @alanmyrvold cc: @pabloem 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: 111739) Time Spent: 10m Remaining Estimate: 0h > Update release guide with how to perform release validations > > > Key: BEAM-4483 > URL: https://issues.apache.org/jira/browse/BEAM-4483 > Project: Beam > Issue Type: Bug > Components: build-system >Reporter: Boyuan Zhang >Assignee: Boyuan Zhang >Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.3#76005)