HBASE-19039 refactor shadedjars test to only run on java changes.

Signed-off-by: Mike Drob <mdrob@apache.org>
This commit is contained in:
Sean Busbey 2017-10-20 14:39:03 -05:00
parent dd4dbae764
commit b10ad9e97f
1 changed files with 14 additions and 3 deletions

View File

@ -171,12 +171,19 @@ function shadedjars_initialize
{
yetus_debug "initializing shaded client checks."
maven_add_install shadedjars
add_test shadedjars
}
function shadedjars_clean
## @description only run the test if java changes.
## @audience private
## @stability evolving
## @param filename
function shadedjars_filefilter
{
"${MAVEN}" "${MAVEN_ARGS[@]}" clean -fae -pl hbase_shaded/hbase-shaded-check-invariants -am -Prelease
local filename=$1
if [[ ${filename} =~ \.java$ ]] || [[ ${filename} =~ pom.xml$ ]]; then
add_test shadedjars
fi
}
## @description test the shaded client artifacts
@ -188,6 +195,10 @@ function shadedjars_rebuild
local repostatus=$1
local logfile="${PATCH_DIR}/${repostatus}-shadedjars.txt"
if ! verify_needed_test shadedjars; then
return 0
fi
big_console_header "Checking shaded client builds on ${repostatus}"
echo_and_redirect "${logfile}" \