Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 581C7200D1A for ; Mon, 9 Oct 2017 19:02:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 56B6A160BE0; Mon, 9 Oct 2017 17:02:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A59D21609B8 for ; Mon, 9 Oct 2017 19:02:39 +0200 (CEST) Received: (qmail 78110 invoked by uid 500); 9 Oct 2017 17:02:38 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 78084 invoked by uid 99); 9 Oct 2017 17:02:38 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2017 17:02:38 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B61ECF5D41; Mon, 9 Oct 2017 17:02:37 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: busbey@apache.org To: commits@hbase.apache.org Date: Mon, 09 Oct 2017 17:02:39 -0000 Message-Id: <1ef673c14a834d8899677d0871030d78@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [3/5] hbase git commit: HBASE-18934 pick hadoop versions for precommit test after patch branch is determined. archived-at: Mon, 09 Oct 2017 17:02:40 -0000 HBASE-18934 pick hadoop versions for precommit test after patch branch is determined. Signed-off-by: Mike Drob Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/5b7bcdfc Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/5b7bcdfc Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/5b7bcdfc Branch: refs/heads/branch-1.3 Commit: 5b7bcdfc4da5a521db7d4d85b805cf5b4cc7e39a Parents: 0d836d9 Author: Sean Busbey Authored: Thu Oct 5 18:00:42 2017 -0500 Committer: Sean Busbey Committed: Mon Oct 9 11:47:32 2017 -0500 ---------------------------------------------------------------------- dev-support/hbase-personality.sh | 40 +++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/5b7bcdfc/dev-support/hbase-personality.sh ---------------------------------------------------------------------- diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index c58e47e..c0386e5 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -36,6 +36,15 @@ personality_plugins "all" +if ! declare -f "yetus_info" >/dev/null; then + + function yetus_info + { + echo "[$(date) INFO]: $*" 1>&2 + } + +fi + ## @description Globals specific to this personality ## @audience private ## @stability evolving @@ -51,19 +60,6 @@ function personality_globals #shellcheck disable=SC2034 GITHUB_REPO="apache/hbase" - # All supported Hadoop versions that we want to test the compilation with - # See the Hadoop section on prereqs in the HBase Reference Guide - if [[ "${PATCH_BRANCH}" = branch-1* ]]; then - 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="" - elif [[ ${PATCH_BRANCH} = branch-2* ]]; then - HBASE_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_HADOOP3_VERSIONS="3.0.0-alpha4" - else # master or a feature branch - HBASE_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_HADOOP3_VERSIONS="3.0.0-alpha4" - fi - # TODO use PATCH_BRANCH to select jdk versions to use. # Override the maven options @@ -244,9 +240,21 @@ function hadoopcheck_rebuild big_console_header "Compiling against various Hadoop versions" - hbase_hadoop2_versions=${HBASE_HADOOP2_VERSIONS} - hbase_hadoop3_versions=${HBASE_HADOOP3_VERSIONS} - + # All supported Hadoop versions that we want to test the compilation with + # See the Hadoop section on prereqs in the HBase Reference Guide + if [[ "${PATCH_BRANCH}" = branch-1* ]]; then + yetus_info "setting Hadoop versions to test based on branch-1-ish rules." + 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="" + elif [[ ${PATCH_BRANCH} = branch-2* ]]; then + yetus_info "setting Hadoop versions to test based on branch-2-ish rules." + hbase_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_hadoop3_versions="3.0.0-alpha4" + else # master or a feature branch + yetus_info "setting Hadoop versions to test based on master/feature branch rules." + hbase_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_hadoop3_versions="3.0.0-alpha4" + fi export MAVEN_OPTS="${MAVEN_OPTS}" for hadoopver in ${hbase_hadoop2_versions}; do