hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhang...@apache.org
Subject hbase git commit: HBASE-16887 Allow setting different hadoopcheck versions in precommit for different branches
Date Mon, 24 Oct 2016 01:59:11 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 2f4c91e41 -> 187ff190e


HBASE-16887 Allow setting different hadoopcheck versions in precommit for different branches


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/187ff190
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/187ff190
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/187ff190

Branch: refs/heads/master
Commit: 187ff190ed49e595200a3f60305b17b5947e4234
Parents: 2f4c91e
Author: zhangduo <zhangduo@apache.org>
Authored: Mon Oct 24 08:46:27 2016 +0800
Committer: zhangduo <zhangduo@apache.org>
Committed: Mon Oct 24 09:58:21 2016 +0800

----------------------------------------------------------------------
 dev-support/hbase-personality.sh | 27 ++++++++++++++++++++++-----
 1 file changed, 22 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/187ff190/dev-support/hbase-personality.sh
----------------------------------------------------------------------
diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh
index 469359c..069ffc4 100755
--- a/dev-support/hbase-personality.sh
+++ b/dev-support/hbase-personality.sh
@@ -53,8 +53,11 @@ function personality_globals
 
   # TODO use PATCH_BRANCH to select hadoop versions to use.
   # All supported Hadoop versions that we want to test the compilation with
-  HBASE_HADOOP2_VERSIONS="2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.6.1 2.6.2 2.6.3 2.7.1"
-  HBASE_HADOOP3_VERSIONS="3.0.0-alpha1"
+  HBASE_MASTER_HADOOP2_VERSIONS="2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.7.1 2.7.2 2.7.3"
+  HBASE_MASTER_HADOOP3_VERSIONS="3.0.0-alpha1"
+
+  HBASE_HADOOP2_VERSIONS="2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.7.1
2.7.2 2.7.3"
+  HBASE_HADOOP3_VERSIONS=""
 
   # TODO use PATCH_BRANCH to select jdk versions to use.
 
@@ -181,6 +184,8 @@ function hadoopcheck_rebuild
   local logfile
   local count
   local result=0
+  local hbase_hadoop2_versions
+  local hbase_hadoop3_versions
 
   if [[ "${repostatus}" = branch ]]; then
     return 0
@@ -188,8 +193,16 @@ function hadoopcheck_rebuild
 
   big_console_header "Compiling against various Hadoop versions"
 
+  if [[ "${PATCH_BRANCH}" = "master" ]]; then
+    hbase_hadoop2_versions=${HBASE_MASTER_HADOOP2_VERSIONS}
+    hbase_hadoop3_versions=${HBASE_MASTER_HADOOP3_VERSIONS}
+  else
+    hbase_hadoop2_versions=${HBASE_HADOOP2_VERSIONS}
+    hbase_hadoop3_versions=${HBASE_HADOOP3_VERSIONS}
+  fi
+
   export MAVEN_OPTS="${MAVEN_OPTS}"
-  for hadoopver in ${HBASE_HADOOP2_VERSIONS}; do
+  for hadoopver in ${hbase_hadoop2_versions}; do
     logfile="${PATCH_DIR}/patch-javac-${hadoopver}.txt"
     echo_and_redirect "${logfile}" \
       "${MAVEN}" clean install \
@@ -202,7 +215,7 @@ function hadoopcheck_rebuild
     fi
   done
 
-  for hadoopver in ${HBASE_HADOOP3_VERSIONS}; do
+  for hadoopver in ${hbase_hadoop3_versions}; do
     logfile="${PATCH_DIR}/patch-javac-${hadoopver}.txt"
     echo_and_redirect "${logfile}" \
       "${MAVEN}" clean install \
@@ -220,7 +233,11 @@ function hadoopcheck_rebuild
     return 1
   fi
 
-  add_vote_table +1 hadoopcheck "Patch does not cause any errors with Hadoop ${HBASE_HADOOP2_VERSIONS}
or ${HBASE_HADOOP3_VERSIONS}."
+  if [[ -n "${hbase_hadoop3_versions}" ]]; then
+    add_vote_table +1 hadoopcheck "Patch does not cause any errors with Hadoop ${hbase_hadoop2_versions}
or ${hbase_hadoop3_versions}."
+  else
+    add_vote_table +1 hadoopcheck "Patch does not cause any errors with Hadoop ${hbase_hadoop2_versions}."
+  fi
   return 0
 }
 


Mime
View raw message