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 DE512200D0C for ; Wed, 20 Sep 2017 12:59:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DCCA91609E2; Wed, 20 Sep 2017 10:59:38 +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 0003C1609E1 for ; Wed, 20 Sep 2017 12:59:37 +0200 (CEST) Received: (qmail 30388 invoked by uid 500); 20 Sep 2017 10:59:37 -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 30379 invoked by uid 99); 20 Sep 2017 10:59:37 -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; Wed, 20 Sep 2017 10:59:37 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E9A57F32C3; Wed, 20 Sep 2017 10:59:36 +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 Message-Id: <4ffaeb846eeb40ceae8b3e6931c7f125@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-18833 Ensure precommit personality is up to date on all active branches Date: Wed, 20 Sep 2017 10:59:36 +0000 (UTC) archived-at: Wed, 20 Sep 2017 10:59:39 -0000 Repository: hbase Updated Branches: refs/heads/branch-2 d0a54352e -> ea610cfcf HBASE-18833 Ensure precommit personality is up to date on all active branches 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/ea610cfc Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/ea610cfc Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/ea610cfc Branch: refs/heads/branch-2 Commit: ea610cfcf7416e0dcdf04f93e968ba91d07e2b76 Parents: d0a5435 Author: Sean Busbey Authored: Mon Sep 18 08:58:09 2017 -0500 Committer: Sean Busbey Committed: Wed Sep 20 05:51:42 2017 -0500 ---------------------------------------------------------------------- dev-support/hbase-personality.sh | 85 ++++++++++++++++++++++++++--------- 1 file changed, 63 insertions(+), 22 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/ea610cfc/dev-support/hbase-personality.sh ---------------------------------------------------------------------- diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index 6745595..b7a2f97 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -51,18 +51,18 @@ function personality_globals #shellcheck disable=SC2034 GITHUB_REPO="apache/hbase" - # TODO use PATCH_BRANCH to select hadoop versions to use. # All supported Hadoop versions that we want to test the compilation with - # NOTE: The master defines below are reused by BRANCH_2 too; if you change - # master instances, be sure to adjust BRANCH_2 appropriately. - 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-alpha2" - - HBASE_BRANCH_2_HADOOP2_VERSIONS="${HBASE_MASTER_HADOOP2_VERSIONS}" - HBASE_BRANCH_2_HADOOP3_VERSIONS="${HBASE_MASTER_HADOOP3_VERSIONS}" - - 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="" + # 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. @@ -116,9 +116,12 @@ function personality_modules # tests respectively. if [[ ${testtype} = unit ]]; then extra="${extra} -PrunAllTests" + yetus_debug "EXCLUDE_TESTS_URL = ${EXCLUDE_TESTS_URL}" + yetus_debug "INCLUDE_TESTS_URL = ${INCLUDE_TESTS_URL}" if [[ -n "$EXCLUDE_TESTS_URL" ]]; then if wget "$EXCLUDE_TESTS_URL" -O "excludes"; then excludes=$(cat excludes) + yetus_debug "excludes=${excludes}" if [[ -n "${excludes}" ]]; then extra="${extra} -Dtest.exclude.pattern=${excludes}" fi @@ -130,6 +133,7 @@ function personality_modules elif [[ -n "$INCLUDE_TESTS_URL" ]]; then if wget "$INCLUDE_TESTS_URL" -O "includes"; then includes=$(cat includes) + yetus_debug "includes=${includes}" if [[ -n "${includes}" ]]; then extra="${extra} -Dtest=${includes}" fi @@ -161,6 +165,50 @@ function personality_modules ################################################### +add_test_type shadedjars + + +function shadedjars_initialize +{ + yetus_debug "initializing shaded client checks." + maven_add_install shadedjars + add_test shadedjars +} + +function shadedjars_clean +{ + "${MAVEN}" "${MAVEN_ARGS[@]}" clean -fae -pl hbase_shaded/hbase-shaded-check-invariants -am -Prelease +} + +## @description test the shaded client artifacts +## @audience private +## @stability evolving +## @param repostatus +function shadedjars_rebuild +{ + local repostatus=$1 + local logfile="${PATCH_DIR}/${repostatus}-shadedjars.txt" + + big_console_header "Checking shaded client builds on ${repostatus}" + + echo_and_redirect "${logfile}" \ + "${MAVEN}" "${MAVEN_ARGS[@]}" clean verify -fae --batch-mode \ + -pl hbase-shaded/hbase-shaded-check-invariants -am \ + -Dtest=NoUnitTests -DHBasePatchProcess -Prelease \ + -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dfindbugs.skip=true + + count=$(${GREP} -c '\[ERROR\]' "${logfile}") + if [[ ${count} -gt 0 ]]; then + add_vote_table -1 shadedjars "${repostatus} has ${count} errors when building our shaded downstream artifacts." + return 1 + fi + + add_vote_table +1 shadedjars "${repostatus} has no errors when building our shaded downstream artifacts." + return 0 +} + +################################################### + add_test_type hadoopcheck ## @description hadoopcheck file filter @@ -196,16 +244,9 @@ 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} - elif [[ "${PATCH_BRANCH}" = "branch-2" ]]; then - hbase_hadoop2_versions=${HBASE_BRANCH_2_HADOOP2_VERSIONS} - hbase_hadoop3_versions=${HBASE_BRANCH_2_HADOOP3_VERSIONS} - else - hbase_hadoop2_versions=${HBASE_HADOOP2_VERSIONS} - hbase_hadoop3_versions=${HBASE_HADOOP3_VERSIONS} - fi + hbase_hadoop2_versions=${HBASE_HADOOP2_VERSIONS} + hbase_hadoop3_versions=${HBASE_HADOOP3_VERSIONS} + export MAVEN_OPTS="${MAVEN_OPTS}" for hadoopver in ${hbase_hadoop2_versions}; do @@ -394,7 +435,7 @@ function mvnsite_filefilter local filename=$1 if [[ ${BUILDTOOL} = maven ]]; then - if [[ ${filename} =~ src/main/site || ${filename} =~ src/main/asciidoc ]]; then + if [[ ${filename} =~ src/site || ${filename} =~ src/main/asciidoc ]]; then yetus_debug "tests/mvnsite: ${filename}" add_test mvnsite fi