You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by yi...@apache.org on 2023/01/28 09:12:36 UTC

[hudi] branch release-0.13.0 updated (897d78401a2 -> 46cd7f6c2f3)

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

yihua pushed a change to branch release-0.13.0
in repository https://gitbox.apache.org/repos/asf/hudi.git


    from 897d78401a2 Create release branch for version 0.13.0.
     new 9dc6d796346 [MINOR] Add `hudi-platform-service` and `hudi-metaserver-server-bundle` to root pom (#7774)
     new 46cd7f6c2f3 [HUDI-5635] Fix release scripts (#7775)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 pom.xml                                    |  2 ++
 scripts/release/cut_release_branch.sh      | 20 ++++++++++----------
 scripts/release/deploy_staging_jars.sh     | 20 ++++++++++++++------
 scripts/release/validate_staged_bundles.sh |  4 ++++
 4 files changed, 30 insertions(+), 16 deletions(-)


[hudi] 01/02: [MINOR] Add `hudi-platform-service` and `hudi-metaserver-server-bundle` to root pom (#7774)

Posted by yi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

yihua pushed a commit to branch release-0.13.0
in repository https://gitbox.apache.org/repos/asf/hudi.git

commit 9dc6d7963461f2bb91ec15ae62d2c166eb6d7412
Author: Y Ethan Guo <et...@gmail.com>
AuthorDate: Fri Jan 27 22:36:57 2023 -0800

    [MINOR] Add `hudi-platform-service` and `hudi-metaserver-server-bundle` to root pom (#7774)
---
 pom.xml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pom.xml b/pom.xml
index 92905f85b95..35d6e3138ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -42,6 +42,7 @@
     <module>hudi-gcp</module>
     <module>hudi-hadoop-mr</module>
     <module>hudi-spark-datasource</module>
+    <module>hudi-platform-service</module>
     <module>hudi-timeline-service</module>
     <module>hudi-utilities</module>
     <module>hudi-sync</module>
@@ -54,6 +55,7 @@
     <module>packaging/hudi-presto-bundle</module>
     <module>packaging/hudi-utilities-bundle</module>
     <module>packaging/hudi-utilities-slim-bundle</module>
+    <module>packaging/hudi-metaserver-server-bundle</module>
     <module>packaging/hudi-timeline-server-bundle</module>
     <module>packaging/hudi-trino-bundle</module>
     <module>hudi-examples</module>


[hudi] 02/02: [HUDI-5635] Fix release scripts (#7775)

Posted by yi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

yihua pushed a commit to branch release-0.13.0
in repository https://gitbox.apache.org/repos/asf/hudi.git

commit 46cd7f6c2f3b9436b8d8c96d0909b1bdf90afa21
Author: Y Ethan Guo <et...@gmail.com>
AuthorDate: Sat Jan 28 00:50:18 2023 -0800

    [HUDI-5635] Fix release scripts (#7775)
---
 scripts/release/cut_release_branch.sh      | 20 ++++++++++----------
 scripts/release/deploy_staging_jars.sh     | 20 ++++++++++++++------
 scripts/release/validate_staged_bundles.sh |  4 ++++
 3 files changed, 28 insertions(+), 16 deletions(-)

diff --git a/scripts/release/cut_release_branch.sh b/scripts/release/cut_release_branch.sh
index 49b58391bdd..44ed5d7742b 100755
--- a/scripts/release/cut_release_branch.sh
+++ b/scripts/release/cut_release_branch.sh
@@ -56,12 +56,13 @@ else
 fi
 
 if [[ -z "$RELEASE" || -z "$NEXT_VERSION_IN_BASE_BRANCH" || -z "$RC_NUM" ]]; then
-	echo "This sricpt needs to be ran with params, please run with -h to get more instructions."
+	echo "This script needs to be ran with params, please run with -h to get more instructions."
 	exit
 fi
 
 
 MASTER_BRANCH=master
+NEXT_VERSION_BRANCH=MINOR-move-to-${NEXT_VERSION_IN_BASE_BRANCH}
 RELEASE_BRANCH=release-${RELEASE}
 GITHUB_REPO_URL=git@github.com:apache/hudi.git
 HUDI_ROOT_DIR=hudi
@@ -71,6 +72,7 @@ echo "=====================Environment Variables====================="
 echo "version: ${RELEASE}"
 echo "next_release: ${NEXT_VERSION_IN_BASE_BRANCH}"
 echo "working master branch: ${MASTER_BRANCH}"
+echo "working next-version branch: ${NEXT_VERSION_BRANCH}"
 echo "working release branch: ${RELEASE_BRANCH}"
 echo "local repo dir: ~/${LOCAL_CLONE_DIR}/${HUDI_ROOT_DIR}"
 echo "RC_NUM: $RC_NUM"
@@ -90,15 +92,16 @@ cd ${HUDI_ROOT_DIR}
 git branch ${RELEASE_BRANCH}
 
 git checkout ${MASTER_BRANCH}
+git checkout -b ${NEXT_VERSION_BRANCH}
 
 echo "====================Current working branch====================="
-echo ${MASTER_BRANCH}
+echo ${NEXT_VERSION_BRANCH}
 echo "==============================================================="
 
 # Update master branch
 mvn versions:set -DnewVersion=${NEXT_VERSION_IN_BASE_BRANCH}-SNAPSHOT
 
-echo "==============Update master branch as following================"
+echo "===========Update next-version branch as following============="
 git diff
 echo "==============================================================="
 
@@ -110,14 +113,11 @@ if [[ $confirmation != "y" ]]; then
   exit
 fi
 
-git commit -am "Moving to ${NEXT_VERSION_IN_BASE_BRANCH}-SNAPSHOT on master branch."
+git commit -am "[MINOR] Moving to ${NEXT_VERSION_IN_BASE_BRANCH}-SNAPSHOT on master branch."
 
-if git push origin ${MASTER_BRANCH}; then
-  break
-else
-  clean_up
-  exit
-fi
+echo "==============================================================="
+echo "!!Please open a PR based on ${NEXT_VERSION_BRANCH} branch for approval!! [Press ENTER to continue]"
+read confirmation
 
 # Checkout and update release branch
 git checkout ${RELEASE_BRANCH}
diff --git a/scripts/release/deploy_staging_jars.sh b/scripts/release/deploy_staging_jars.sh
index c6677bc58c9..35522d0209e 100755
--- a/scripts/release/deploy_staging_jars.sh
+++ b/scripts/release/deploy_staging_jars.sh
@@ -48,9 +48,9 @@ declare -a ALL_VERSION_OPTS=(
 "-Dscala-2.12 -Dspark3.1"  # this profile goes last in this section to ensure bundles use avro 1.8
 
 # spark bundles
-"-Dscala-2.11 -Dspark2.4 -pl packaging/hudi-spark-bundle -am"
+"-Dscala-2.11 -Dspark2.4 -pl packaging/hudi-spark-bundle,packaging/hudi-cli-bundle -am"
 "-Dscala-2.12 -Dspark2.4 -pl packaging/hudi-spark-bundle -am"
-"-Dscala-2.12 -Dspark3.3 -pl packaging/hudi-spark-bundle -am"
+"-Dscala-2.12 -Dspark3.3 -pl packaging/hudi-spark-bundle,packaging/hudi-cli-bundle -am"
 "-Dscala-2.12 -Dspark3.2 -pl packaging/hudi-spark-bundle -am"
 "-Dscala-2.12 -Dspark3.1 -pl packaging/hudi-spark-bundle -am"
 
@@ -101,10 +101,18 @@ COMMON_OPTIONS="-DdeployArtifacts=true -DskipTests -DretryFailedDeploymentCount=
 for v in "${ALL_VERSION_OPTS[@]}"
 do
   # clean everything before any round of depoyment
-  $MVN clean
-  echo "Building with options ${v}"
-  $MVN install "$COMMON_OPTIONS" "${v}"
+  $MVN clean $COMMON_OPTIONS
+  if [[ "$v" == *"$BUNDLE_MODULES_EXCLUDED"* ]]; then
+    # When deploying jars with bundle exclusions, we still need to build the bundles,
+    # by removing "-pl -packaging/hudi-aws-bundle...", otherwise the build fails.
+    v1=${v%${BUNDLE_MODULES_EXCLUDED}}
+    echo "Building with options ${v1%-pl }"
+    $MVN install $COMMON_OPTIONS ${v1%-pl }
+  else
+    echo "Building with options ${v}"
+    $MVN install $COMMON_OPTIONS ${v}
+  fi
   echo "Deploying to repository.apache.org with version options ${v%-am}"
   # remove `-am` option to only deploy intended modules
-  $MVN deploy "$COMMON_OPTIONS" "${v%-am}"
+  $MVN deploy $COMMON_OPTIONS ${v%-am}
 done
diff --git a/scripts/release/validate_staged_bundles.sh b/scripts/release/validate_staged_bundles.sh
index 25182786e4e..3fd2ab351b1 100755
--- a/scripts/release/validate_staged_bundles.sh
+++ b/scripts/release/validate_staged_bundles.sh
@@ -29,6 +29,9 @@ VERSION=$2
 STAGING_REPO="https://repository.apache.org/content/repositories/${REPO}/org/apache/hudi"
 
 declare -a BUNDLE_URLS=(
+"${STAGING_REPO}/hudi-aws-bundle/${VERSION}/hudi-aws-bundle-${VERSION}.jar"
+"${STAGING_REPO}/hudi-cli-bundle_2.11/${VERSION}/hudi-cli-bundle_2.11-${VERSION}.jar"
+"${STAGING_REPO}/hudi-cli-bundle_2.12/${VERSION}/hudi-cli-bundle_2.12-${VERSION}.jar"
 "${STAGING_REPO}/hudi-datahub-sync-bundle/${VERSION}/hudi-datahub-sync-bundle-${VERSION}.jar"
 "${STAGING_REPO}/hudi-flink1.13-bundle/${VERSION}/hudi-flink1.13-bundle-${VERSION}.jar"
 "${STAGING_REPO}/hudi-flink1.14-bundle/${VERSION}/hudi-flink1.14-bundle-${VERSION}.jar"
@@ -39,6 +42,7 @@ declare -a BUNDLE_URLS=(
 "${STAGING_REPO}/hudi-hive-sync-bundle/${VERSION}/hudi-hive-sync-bundle-${VERSION}.jar"
 "${STAGING_REPO}/hudi-integ-test-bundle/${VERSION}/hudi-integ-test-bundle-${VERSION}.jar"
 "${STAGING_REPO}/hudi-kafka-connect-bundle/${VERSION}/hudi-kafka-connect-bundle-${VERSION}.jar"
+"${STAGING_REPO}/hudi-metaserver-server-bundle/${VERSION}/hudi-metaserver-server-bundle-${VERSION}.jar"
 "${STAGING_REPO}/hudi-presto-bundle/${VERSION}/hudi-presto-bundle-${VERSION}.jar"
 "${STAGING_REPO}/hudi-spark-bundle_2.11/${VERSION}/hudi-spark-bundle_2.11-${VERSION}.jar"
 "${STAGING_REPO}/hudi-spark-bundle_2.12/${VERSION}/hudi-spark-bundle_2.12-${VERSION}.jar"