[
https://issues.apache.org/jira/browse/HADOOP-11984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Nauroth updated HADOOP-11984:
-----------------------------------
Attachment: HADOOP-11984.024.patch
I agree that we're really close, and the ~4x reduction in time for
hadoop-common tests highlighted by Steve sure is pleasant. :-)
I'm attaching patch v024 with 2 changes:
# pom.xml no longer defines {{test.build.shared.data}}. Vinay solved this
problem differently by using {{ServerSocketUtil#getPort}}, so there is no
longer a need for a shared directory for multiple JUnit processes to coordinate
with lock files corresponding to ports.
# Since the HDFS fixes have been spun off into the separate HDFS-9139 JIRA, we
need to be careful not to trigger {{-Pparallel-tests}} for HDFS builds until
after that gets completed. To help move things forward for hadoop-common, I've
introduced a temporary hack in test-patch.sh so that it only uses
{{-Pparallel-tests}} for the hadoop-common build.
> Enable parallel JUnit tests in pre-commit.
> ------------------------------------------
>
> Key: HADOOP-11984
> URL: https://issues.apache.org/jira/browse/HADOOP-11984
> Project: Hadoop Common
> Issue Type: Improvement
> Components: build, scripts, test
> Reporter: Chris Nauroth
> Assignee: Chris Nauroth
> Attachments: HADOOP-11984.001.patch, HADOOP-11984.002.patch,
> HADOOP-11984.003.patch, HADOOP-11984.004.patch, HADOOP-11984.005.patch,
> HADOOP-11984.006.patch, HADOOP-11984.007.patch, HADOOP-11984.008.patch,
> HADOOP-11984.009.patch, HADOOP-11984.010.patch, HADOOP-11984.011.patch,
> HADOOP-11984.013.patch, HADOOP-11984.014.patch, HADOOP-11984.015.patch,
> HADOOP-11984.016.patch, HADOOP-11984.017.patch, HADOOP-11984.019.patch,
> HADOOP-11984.020.patch, HADOOP-11984.021.patch, HADOOP-11984.022.patch,
> HADOOP-11984.023.patch, HADOOP-11984.024.patch,
> HADOOP-11984.HADOOP-12111.018.patch
>
>
> HADOOP-9287 and related issues implemented the parallel-tests Maven profile
> for running JUnit tests in multiple concurrent processes. This issue
> proposes to activate that profile during pre-commit to speed up execution.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)