Repository: hbase Updated Branches: refs/heads/master 89d3b0b07 -> b10ad9e97
HBASE-19060 precommit plugin test 'hadoopcheck' should only run when java or maven files change. Signed-off-by: Mike Drob <md...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/dd4dbae7 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/dd4dbae7 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/dd4dbae7 Branch: refs/heads/master Commit: dd4dbae7643a7fb0beaa4e75a51d5a9c921c89b2 Parents: 89d3b0b Author: Sean Busbey <bus...@apache.org> Authored: Fri Oct 20 11:08:35 2017 -0500 Committer: Sean Busbey <bus...@apache.org> Committed: Fri Oct 20 19:35:14 2017 -0500 ---------------------------------------------------------------------- dev-support/hbase-personality.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/dd4dbae7/dev-support/hbase-personality.sh ---------------------------------------------------------------------- diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index 27c2169..88e773e 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