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:
Michael Stack 2020-04-09 14:41:41 -07:00 committed by stack
parent 67b2e881ca
commit b843edb141
3 changed files with 7 additions and 4 deletions

View File

@ -137,7 +137,10 @@ function personality_modules
clear_personality_queue 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 if [[ "${PATCH_BRANCH}" = branch-1* ]]; then
extra="${extra} -Dhttps.protocols=TLSv1.2" extra="${extra} -Dhttps.protocols=TLSv1.2"
fi fi

View File

@ -172,7 +172,7 @@ fi
cd "${unpack_dir}" cd "${unpack_dir}"
echo "Follow the ref guide section on making a RC: Step 8 Build the binary tarball." 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 assembly:single >"${working_dir}/srctarball_install.log" 2>&1; then
for artifact in "${unpack_dir}"/hbase-assembly/target/hbase-*-bin.tar.gz; do for artifact in "${unpack_dir}"/hbase-assembly/target/hbase-*-bin.tar.gz; do
if [ -f "${artifact}" ]; then if [ -f "${artifact}" ]; then

View File

@ -4213,8 +4213,8 @@
<id>hbase.apache.org</id> <id>hbase.apache.org</id>
<name>HBase Website at hbase.apache.org</name> <name>HBase Website at hbase.apache.org</name>
<!-- On why this is the tmp dir and not hbase.apache.org, see <!-- On why this is the tmp dir and not hbase.apache.org, see
https://issues.apache.org/jira/browse/HBASE-7593?focusedCommentId=13555866&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13555866 https://issues.apache.org/jira/browse/HBASE-7593?focusedCommentId=13555866&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13555866
--> -->
<url>file:///tmp</url> <url>file:///tmp</url>
</site> </site>
</distributionManagement> </distributionManagement>