HBASE-24150 Allow module tests run in parallel (#1464)
Pass --threads=2 to mvn when yetus runs so some parallelism when dependencies allow. Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
67b2e881ca
commit
b843edb141
|
@ -137,7 +137,10 @@ function personality_modules
|
|||
|
||||
clear_personality_queue
|
||||
|
||||
extra="-DHBasePatchProcess"
|
||||
# At a few points, hbase modules can run build, test, etc. in parallel
|
||||
# Let it happen. Means we'll use more CPU but should be for short bursts.
|
||||
# https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3
|
||||
extra="--threads=2 -DHBasePatchProcess"
|
||||
if [[ "${PATCH_BRANCH}" = branch-1* ]]; then
|
||||
extra="${extra} -Dhttps.protocols=TLSv1.2"
|
||||
fi
|
||||
|
|
|
@ -172,7 +172,7 @@ fi
|
|||
|
||||
cd "${unpack_dir}"
|
||||
echo "Follow the ref guide section on making a RC: Step 8 Build the binary tarball."
|
||||
if mvn -DskipTests -Prelease --batch-mode -Dmaven.repo.local="${m2_tarbuild}" clean install \
|
||||
if mvn --threads=2 -DskipTests -Prelease --batch-mode -Dmaven.repo.local="${m2_tarbuild}" clean install \
|
||||
assembly:single >"${working_dir}/srctarball_install.log" 2>&1; then
|
||||
for artifact in "${unpack_dir}"/hbase-assembly/target/hbase-*-bin.tar.gz; do
|
||||
if [ -f "${artifact}" ]; then
|
||||
|
|
Loading…
Reference in New Issue