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 8BD42200D0C for ; Wed, 20 Sep 2017 13:19:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8A6B71609E1; Wed, 20 Sep 2017 11:19:18 +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 D247B1609E3 for ; Wed, 20 Sep 2017 13:19:17 +0200 (CEST) Received: (qmail 6360 invoked by uid 500); 20 Sep 2017 11:19:16 -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 6174 invoked by uid 99); 20 Sep 2017 11:19:16 -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 11:19:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 050F0F32C3; Wed, 20 Sep 2017 11:19:15 +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: Wed, 20 Sep 2017 11:19:17 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [3/3] hbase git commit: HBASE-18833 Ensure precommit personality is up to date on all active branches archived-at: Wed, 20 Sep 2017 11:19:18 -0000 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/b5f1850d Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/b5f1850d Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/b5f1850d Branch: refs/heads/HBASE-18477 Commit: b5f1850d1f0499d8a9140a3f7169ccc61c5cd62e Parents: 4bd4f41 Author: Sean Busbey Authored: Mon Sep 18 08:58:09 2017 -0500 Committer: Sean Busbey Committed: Wed Sep 20 06:18:31 2017 -0500 ---------------------------------------------------------------------- dev-support/hbase-personality.sh | 50 ++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/b5f1850d/dev-support/hbase-personality.sh ---------------------------------------------------------------------- diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index 9f591b1..b7a2f97 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -119,8 +119,7 @@ function personality_modules yetus_debug "EXCLUDE_TESTS_URL = ${EXCLUDE_TESTS_URL}" yetus_debug "INCLUDE_TESTS_URL = ${INCLUDE_TESTS_URL}" if [[ -n "$EXCLUDE_TESTS_URL" ]]; then - wget "$EXCLUDE_TESTS_URL" -O "excludes" - if [[ $? -eq 0 ]]; then + if wget "$EXCLUDE_TESTS_URL" -O "excludes"; then excludes=$(cat excludes) yetus_debug "excludes=${excludes}" if [[ -n "${excludes}" ]]; then @@ -132,8 +131,7 @@ function personality_modules "${EXCLUDE_TESTS_URL}. Ignoring and proceeding." fi elif [[ -n "$INCLUDE_TESTS_URL" ]]; then - wget "$INCLUDE_TESTS_URL" -O "includes" - if [[ $? -eq 0 ]]; then + if wget "$INCLUDE_TESTS_URL" -O "includes"; then includes=$(cat includes) yetus_debug "includes=${includes}" if [[ -n "${includes}" ]]; then @@ -167,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