You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by bo...@apache.org on 2020/03/05 00:08:50 UTC

[beam] branch master updated: Update verify_release_build script to run python tests with dev version.

This is an automated email from the ASF dual-hosted git repository.

boyuanz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new e2b58c9  Update verify_release_build script to run python tests with dev version.
     new b53afc5  Merge pull request #10782 from boyuanzz/validate_release_branch
e2b58c9 is described below

commit e2b58c9787d6abd93e65f60111a32910ed63dd15
Author: Boyuan Zhang <bo...@google.com>
AuthorDate: Wed Feb 5 16:39:19 2020 -0800

    Update verify_release_build script to run python tests with dev version.
---
 release/src/main/scripts/verify_release_build.sh | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/release/src/main/scripts/verify_release_build.sh b/release/src/main/scripts/verify_release_build.sh
index b1c1fb2..2ec6746 100755
--- a/release/src/main/scripts/verify_release_build.sh
+++ b/release/src/main/scripts/verify_release_build.sh
@@ -153,9 +153,14 @@ echo "After PR created, you need to comment phrases listed in description in the
 
 if [[ ! -z `which hub` ]]; then
   git checkout -b ${WORKING_BRANCH} origin/${RELEASE_BRANCH} --quiet
-  touch empty_file.json
-  git add .
-  git commit -m "Add empty file in order to create a test PR" --quiet
+  # The version change is needed for Dataflow python batch tests.
+  # Without changing to dev version, the dataflow pipeline will fail because of non-existed worker containers.
+  # Note that dataflow worker containers should be built after RC has been built.
+  sed -i -e "s/${RELEASE_VER}/${RELEASE_VER}.dev/g" sdks/python/apache_beam/version.py
+  sed -i -e "s/sdk_version=${RELEASE_VER}/sdk_version=${RELEASE_VER}.dev/g" gradle.properties
+  git add sdks/python/apache_beam/version.py
+  git add gradle.properties
+  git commit -m "Changed version.py and gradle.properties to python dev version to create a test PR" --quiet
   git push -f ${GITHUB_USERNAME} --quiet
 
   trigger_phrases=$(IFS=$'\n'; echo "${JOB_TRIGGER_PHRASES[*]}")