From 01ab747a5fbde8604c9893d5959467011679538d Mon Sep 17 00:00:00 2001 From: Sean Busbey Date: Fri, 20 Oct 2017 11:08:35 -0500 Subject: [PATCH] HBASE-19060 precommit plugin test 'hadoopcheck' should only run when java or maven files change. Signed-off-by: Mike Drob --- dev-support/hbase-personality.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index 9b23e11b1d1..01c3d85488f 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -218,7 +218,7 @@ function hadoopcheck_filefilter { local filename=$1 - if [[ ${filename} =~ \.java$ ]]; then + if [[ ${filename} =~ \.java$ ]] || [[ ${filename} =~ pom.xml$ ]]; then add_test hadoopcheck fi } @@ -241,6 +241,10 @@ function hadoopcheck_rebuild return 0 fi + if ! verify_needed_test hadoopcheck; then + return 0 + fi + big_console_header "Compiling against various Hadoop versions" # All supported Hadoop versions that we want to test the compilation with @@ -317,7 +321,7 @@ function hbaseprotoc_filefilter fi } -## @description hadoopcheck test +## @description check hbase proto compilation ## @audience private ## @stability evolving ## @param repostatus