You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by an...@apache.org on 2016/04/13 02:23:49 UTC
sentry git commit: SENTRY-1108: Improve surefire execution to run
tests concurrently. Could be used a test run profile for pre-commit job.
(Anne Yu, reviewed by HaoHao).
Repository: sentry
Updated Branches:
refs/heads/master 95db288b9 -> d7cc6e69e
SENTRY-1108: Improve surefire execution to run tests concurrently. Could be used a test run profile for pre-commit job. (Anne Yu, reviewed by HaoHao).
Project: http://git-wip-us.apache.org/repos/asf/sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/sentry/commit/d7cc6e69
Tree: http://git-wip-us.apache.org/repos/asf/sentry/tree/d7cc6e69
Diff: http://git-wip-us.apache.org/repos/asf/sentry/diff/d7cc6e69
Branch: refs/heads/master
Commit: d7cc6e69ea54ddaafc59bc3568a9bfc0ac765db3
Parents: 95db288
Author: Anne Yu <an...@cloudera.com>
Authored: Tue Apr 12 16:31:03 2016 -0700
Committer: Anne Yu <an...@cloudera.com>
Committed: Tue Apr 12 17:47:23 2016 -0700
----------------------------------------------------------------------
pom.xml | 44 ++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 42 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/sentry/blob/d7cc6e69/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index c3754ed..ea955ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -765,7 +765,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>2.18</version>
+ <version>2.19.1</version>
<configuration>
<rerunFailingTestsCount>3</rerunFailingTestsCount>
<environmentVariables>
@@ -888,7 +888,47 @@ limitations under the License.
<buildtools.dir>${basedir}/../../build-tools</buildtools.dir>
</properties>
</profile>
-
+ <profile>
+ <id>skipSlowAndNotThreadSafeTests</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.19.1</version>
+ <configuration>
+ <argLine>-Xms256m -Xmx2g -XX:MaxPermSize=256m</argLine>
+ <environmentVariables>
+ <HADOOP_CLIENT_OPTS>-Xmx1500m -Dhive.log.dir=./target/</HADOOP_CLIENT_OPTS>
+ </environmentVariables>
+ <forkCount>2.5C</forkCount>
+ <forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
+ <redirectTestOutputToFile>true</redirectTestOutputToFile>
+ <rerunFailingTestsCount>3</rerunFailingTestsCount>
+ <reuseForks>false</reuseForks>
+ <systemPropertyVariables>
+ <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
+ </systemPropertyVariables>
+ <excludes combine.children="append">
+ <exclude>%regex[org.apache.sentry.tests.e2e.*.class]</exclude>
+ <exclude>%regex[org.apache.sentry.binding.hive.TestURI.class]</exclude>
+ <exclude>%regex[org.apache.sentry.provider.db.service.thrift.*.class]</exclude>
+ <exclude>%regex[org.apache.solr.handler.admin.*.class]</exclude>
+ <exclude>%regex[org.apache.sentry.provider.db.generic.service.thrift.*.class]</exclude>
+ <exclude>%regex[org.apache.sentry.provider.db.generic.tools.TestSentryShellSolr.*.class]</exclude>
+ </excludes>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.surefire</groupId>
+ <artifactId>surefire-junit47</artifactId>
+ <version>2.19.1</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<repositories>