@@ -41,9 +41,14 @@ function personality_globals
4141
4242 # Default Yetus settings for Tez
4343 # shellcheck disable=SC2034
44- DOCKERMEMLIMIT= 20g
44+ DOCKER_MEMORY= " 20g"
4545 # shellcheck disable=SC2034
46- PROCLIMIT=5500
46+ PROC_LIMIT=5500
47+
48+ # Unconditionally add compile and unit tests to ensure full build/UT on every PR as requested.
49+ # add_test in personality_globals is the recommended way in 0.15.1 to force-enable plugins.
50+ add_test compile
51+ add_test unit
4752}
4853
4954# # @description Module selection
@@ -59,11 +64,14 @@ function personality_modules
5964
6065 yetus_debug " Personality: ${repostatus} ${testtype} "
6166
67+ # Ensure a clean state for every test type
6268 clear_personality_queue
6369
6470 extra=" -Ptest-patch"
6571
66- # Always run these tests on the root module to ensure everything is covered
72+ # Always run these tests on the root module to ensure everything is covered.
73+ # Note: Analysis tests (javac, spotbugs, checkstyle, javadoc) are NOT forced to root
74+ # to allow them to run "smartly" only on changed modules.
6775 if [[ ${testtype} == unit || ${testtype} == compile || ${testtype} == mvninstall ]]; then
6876 yetus_debug " Forcing root module and fail-at-end for ${testtype} "
6977 extra=" ${extra} -fae"
@@ -84,20 +92,21 @@ function personality_modules
8492# # @audience private
8593# # @stability evolving
8694# # @replaceable no
87- function tez_file_filter
95+ function personality_file_filter
8896{
8997 local filename=$1
9098
9199 yetus_debug " Tez file filter: ${filename} "
92100
93- # Unconditionally add compile and unit tests to ensure full build/UT on every PR as requested
94- add_test compile
95- add_test unit
96-
97- if [[ ${filename} =~ \. java$ ]]; then
101+ if [[ ${filename} =~ \. java$ || ${filename} =~ \. proto$ || ${filename} =~ pom\. xml$ ]]; then
98102 add_test javac
99103 add_test spotbugs
100104 add_test checkstyle
105+ add_test javadoc
106+ fi
107+
108+ if [[ ${filename} =~ findbugs-exclude\. xml$ ]]; then
109+ add_test spotbugs
101110 fi
102111
103112 if [[ ${filename} =~ \. sh$ ]] || [[ ${filename} =~ Jenkinsfile ]]; then
0 commit comments