-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: parallel test and build #7093
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-XX:-TieredCompilation -XX:TieredStopAtLevel=1 -XX:+UseParallelGC -Djava.awt.headless=true | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-T2C | ||
--strict-checksums | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,10 @@ | |
<description>Parent for guava artifacts</description> | ||
<url>https://github.com/google/guava</url> | ||
<properties> | ||
<!-- Enable parallel test execution --> | ||
<parallel>all</parallel> | ||
<perCoreThreadCount>false</perCoreThreadCount> | ||
<threadCount>48</threadCount> | ||
Comment on lines
+15
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Parallel settings; tunable as properties from outside the build |
||
<!-- Override this with -Dtest.include="**/SomeTest.java" on the CLI --> | ||
<test.include>%regex[.*.class]</test.include> | ||
<truth.version>1.4.2</truth.version> | ||
|
@@ -31,6 +35,7 @@ | |
<otherVariant.version>HEAD-android-SNAPSHOT</otherVariant.version> | ||
<otherVariant.jvmEnvironment>android</otherVariant.jvmEnvironment> | ||
<otherVariant.jvmEnvironmentVariantName>android</otherVariant.jvmEnvironmentVariantName> | ||
<surefire.rerunFailingTestsCount>3</surefire.rerunFailingTestsCount> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Surefire retries |
||
</properties> | ||
<issueManagement> | ||
<system>GitHub Issues</system> | ||
|
@@ -230,7 +235,7 @@ | |
</plugin> | ||
<plugin> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>2.7.2</version> | ||
<version>3.2.5</version> | ||
<configuration> | ||
<includes> | ||
<include>${test.include}</include> | ||
|
@@ -249,6 +254,8 @@ | |
<!-- Set max heap for tests. --> | ||
<!-- Catch dependencies on the default locale by setting it to hi-IN. --> | ||
<argLine>-Xmx1536M -Duser.language=hi -Duser.country=IN ${test.add.opens}</argLine> | ||
<reuseForks>true</reuseForks> | ||
<forkCount>2C</forkCount> | ||
Comment on lines
+257
to
+258
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Test forks |
||
</configuration> | ||
</plugin> | ||
<plugin> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Older versions of Java and Maven don't seem to pick these up, but need to confirm with testing to make sure
-XX:+UseParallelGC
etc. don't break specific JVM versions.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, JDK 8 seems fine.