You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bu...@apache.org on 2017/09/11 07:43:05 UTC
[38/50] [abbrv] hbase git commit: HBASE-18760 Make
hbase-shaded-check-invariants part of precommit
HBASE-18760 Make hbase-shaded-check-invariants part of precommit
Signed-off-by: Apekshit Sharma <ap...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/79d9f7a7
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/79d9f7a7
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/79d9f7a7
Branch: refs/heads/HBASE-18467
Commit: 79d9f7a73483966f2bd1185cf2cfaf4599d39585
Parents: 591d86a
Author: Sean Busbey <bu...@apache.org>
Authored: Fri Sep 8 14:50:30 2017 -0500
Committer: Sean Busbey <bu...@apache.org>
Committed: Sun Sep 10 23:11:01 2017 -0500
----------------------------------------------------------------------
dev-support/hbase-personality.sh | 44 +++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/79d9f7a7/dev-support/hbase-personality.sh
----------------------------------------------------------------------
diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh
index 9f591b1..cf7c6b9 100755
--- a/dev-support/hbase-personality.sh
+++ b/dev-support/hbase-personality.sh
@@ -167,6 +167,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