HBASE-15882 Upgrade to yetus precommit 0.3.0
Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
parent
0206dc67d6
commit
938ee73e7c
|
@ -36,8 +36,12 @@
|
||||||
|
|
||||||
personality_plugins "all"
|
personality_plugins "all"
|
||||||
|
|
||||||
|
## @description Globals specific to this personality
|
||||||
|
## @audience private
|
||||||
|
## @stability evolving
|
||||||
function personality_globals
|
function personality_globals
|
||||||
{
|
{
|
||||||
|
BUILDTOOL=maven
|
||||||
#shellcheck disable=SC2034
|
#shellcheck disable=SC2034
|
||||||
PROJECT_NAME=hbase
|
PROJECT_NAME=hbase
|
||||||
#shellcheck disable=SC2034
|
#shellcheck disable=SC2034
|
||||||
|
@ -58,6 +62,11 @@ function personality_globals
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## @description Queue up modules for this personality
|
||||||
|
## @audience private
|
||||||
|
## @stability evolving
|
||||||
|
## @param repostatus
|
||||||
|
## @param testtype
|
||||||
function personality_modules
|
function personality_modules
|
||||||
{
|
{
|
||||||
local repostatus=$1
|
local repostatus=$1
|
||||||
|
@ -71,13 +80,14 @@ function personality_modules
|
||||||
extra="-DHBasePatchProcess"
|
extra="-DHBasePatchProcess"
|
||||||
|
|
||||||
if [[ ${repostatus} == branch
|
if [[ ${repostatus} == branch
|
||||||
&& ${testtype} == mvninstall ]];then
|
&& ${testtype} == mvninstall ]] ||
|
||||||
personality_enqueue_module . ${extra}
|
[[ "${BUILDMODE}" == full ]];then
|
||||||
return
|
personality_enqueue_module . ${extra}
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${testtype} = findbugs ]]; then
|
if [[ ${testtype} = findbugs ]]; then
|
||||||
for module in ${CHANGED_MODULES}; do
|
for module in "${CHANGED_MODULES[@]}"; do
|
||||||
# skip findbugs on hbase-shell and hbase-it. hbase-it has nothing
|
# skip findbugs on hbase-shell and hbase-it. hbase-it has nothing
|
||||||
# in src/main/java where findbugs goes to look
|
# in src/main/java where findbugs goes to look
|
||||||
if [[ ${module} == hbase-shell ]]; then
|
if [[ ${module} == hbase-shell ]]; then
|
||||||
|
@ -130,7 +140,7 @@ function personality_modules
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for module in ${CHANGED_MODULES}; do
|
for module in "${CHANGED_MODULES[@]}"; do
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
personality_enqueue_module ${module} ${extra}
|
personality_enqueue_module ${module} ${extra}
|
||||||
done
|
done
|
||||||
|
@ -146,6 +156,10 @@ function personality_modules
|
||||||
|
|
||||||
add_test_type hadoopcheck
|
add_test_type hadoopcheck
|
||||||
|
|
||||||
|
## @description hadoopcheck file filter
|
||||||
|
## @audience private
|
||||||
|
## @stability evolving
|
||||||
|
## @param filename
|
||||||
function hadoopcheck_filefilter
|
function hadoopcheck_filefilter
|
||||||
{
|
{
|
||||||
local filename=$1
|
local filename=$1
|
||||||
|
@ -155,6 +169,10 @@ function hadoopcheck_filefilter
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## @description hadoopcheck test
|
||||||
|
## @audience private
|
||||||
|
## @stability evolving
|
||||||
|
## @param repostatus
|
||||||
function hadoopcheck_rebuild
|
function hadoopcheck_rebuild
|
||||||
{
|
{
|
||||||
local repostatus=$1
|
local repostatus=$1
|
||||||
|
@ -178,7 +196,7 @@ function hadoopcheck_rebuild
|
||||||
-Dhadoop-two.version="${hadoopver}"
|
-Dhadoop-two.version="${hadoopver}"
|
||||||
count=$(${GREP} -c ERROR "${logfile}")
|
count=$(${GREP} -c ERROR "${logfile}")
|
||||||
if [[ ${count} -gt 0 ]]; then
|
if [[ ${count} -gt 0 ]]; then
|
||||||
add_vote_table -1 hadoopcheck "Patch causes ${count} errors with Hadoop v${hadoopver}."
|
add_vote_table -1 hadoopcheck "${BUILDMODEMSG} causes ${count} errors with Hadoop v${hadoopver}."
|
||||||
((result=result+1))
|
((result=result+1))
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -193,9 +211,13 @@ function hadoopcheck_rebuild
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
|
|
||||||
# TODO if we need th protoc check, we probably need to check building all the modules that rely on hbase-protocol
|
# TODO if we need the protoc check, we probably need to check building all the modules that rely on hbase-protocol
|
||||||
add_test_type hbaseprotoc
|
add_test_type hbaseprotoc
|
||||||
|
|
||||||
|
## @description hbaseprotoc file filter
|
||||||
|
## @audience private
|
||||||
|
## @stability evolving
|
||||||
|
## @param filename
|
||||||
function hbaseprotoc_filefilter
|
function hbaseprotoc_filefilter
|
||||||
{
|
{
|
||||||
local filename=$1
|
local filename=$1
|
||||||
|
@ -205,14 +227,19 @@ function hbaseprotoc_filefilter
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## @description hadoopcheck test
|
||||||
|
## @audience private
|
||||||
|
## @stability evolving
|
||||||
|
## @param repostatus
|
||||||
function hbaseprotoc_rebuild
|
function hbaseprotoc_rebuild
|
||||||
{
|
{
|
||||||
local i=0
|
declare repostatus=$1
|
||||||
local fn
|
declare i=0
|
||||||
local module
|
declare fn
|
||||||
local logfile
|
declare module
|
||||||
local count
|
declare logfile
|
||||||
local result
|
declare count
|
||||||
|
declare result
|
||||||
|
|
||||||
if [[ "${repostatus}" = branch ]]; then
|
if [[ "${repostatus}" = branch ]]; then
|
||||||
return 0
|
return 0
|
||||||
|
@ -223,7 +250,7 @@ function hbaseprotoc_rebuild
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
big_console_header "Patch HBase protoc plugin"
|
big_console_header "HBase protoc plugin: ${BUILDMODE}"
|
||||||
|
|
||||||
start_clock
|
start_clock
|
||||||
|
|
||||||
|
@ -232,7 +259,7 @@ function hbaseprotoc_rebuild
|
||||||
modules_workers patch hbaseprotoc compile -DskipTests -Pcompile-protobuf -X -DHBasePatchProcess
|
modules_workers patch hbaseprotoc compile -DskipTests -Pcompile-protobuf -X -DHBasePatchProcess
|
||||||
|
|
||||||
# shellcheck disable=SC2153
|
# shellcheck disable=SC2153
|
||||||
until [[ $i -eq ${#MODULE[@]} ]]; do
|
until [[ $i -eq "${#MODULE[@]}" ]]; do
|
||||||
if [[ ${MODULE_STATUS[${i}]} == -1 ]]; then
|
if [[ ${MODULE_STATUS[${i}]} == -1 ]]; then
|
||||||
((result=result+1))
|
((result=result+1))
|
||||||
((i=i+1))
|
((i=i+1))
|
||||||
|
@ -263,6 +290,10 @@ function hbaseprotoc_rebuild
|
||||||
|
|
||||||
add_test_type hbaseanti
|
add_test_type hbaseanti
|
||||||
|
|
||||||
|
## @description hbaseanti file filter
|
||||||
|
## @audience private
|
||||||
|
## @stability evolving
|
||||||
|
## @param filename
|
||||||
function hbaseanti_filefilter
|
function hbaseanti_filefilter
|
||||||
{
|
{
|
||||||
local filename=$1
|
local filename=$1
|
||||||
|
@ -272,12 +303,20 @@ function hbaseanti_filefilter
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## @description hbaseanti patch file check
|
||||||
|
## @audience private
|
||||||
|
## @stability evolving
|
||||||
|
## @param filename
|
||||||
function hbaseanti_patchfile
|
function hbaseanti_patchfile
|
||||||
{
|
{
|
||||||
local patchfile=$1
|
local patchfile=$1
|
||||||
local warnings
|
local warnings
|
||||||
local result
|
local result
|
||||||
|
|
||||||
|
if [[ "${BUILDMODE}" = full ]]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
verify_needed_test hbaseanti
|
verify_needed_test hbaseanti
|
||||||
if [[ $? == 0 ]]; then
|
if [[ $? == 0 ]]; then
|
||||||
return 0
|
return 0
|
||||||
|
@ -307,7 +346,11 @@ function hbaseanti_patchfile
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Work around HBASE-15042
|
|
||||||
|
## @description hbase custom mvnsite file filter. See HBASE-15042
|
||||||
|
## @audience private
|
||||||
|
## @stability evolving
|
||||||
|
## @param filename
|
||||||
function mvnsite_filefilter
|
function mvnsite_filefilter
|
||||||
{
|
{
|
||||||
local filename=$1
|
local filename=$1
|
||||||
|
|
Loading…
Reference in New Issue