[
https://issues.apache.org/jira/browse/BEAM-6635?focusedWorklogId=197034&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-197034
]
ASF GitHub Bot logged work on BEAM-6635:
----------------------------------------
Author: ASF GitHub Bot
Created on: 11/Feb/19 16:49
Start Date: 11/Feb/19 16:49
Worklog Time Spent: 10m
Work Description: swegner commented on pull request #7795: [BEAM-6635]
increase maxHeapSize for test tasks
URL: https://github.com/apache/beam/pull/7795#discussion_r255594561
##########
File path:
buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
##########
@@ -671,8 +671,12 @@ class BeamModulePlugin implements Plugin<Project> {
include "**/*TestCase.class"
}
- // Configure all test tasks to use JUnit
- project.tasks.withType(Test) { useJUnit {} }
+ project.tasks.withType(Test) {
+ // Configure all test tasks to use JUnit
+ useJUnit {}
+ // default maxHeapSize on gradle 5 is 512m, lets increase to handle
more demanding tests
+ maxHeapSize = '2g'
Review comment:
Do you think we need this across the board? It would be nice if most test
tasks could accept the lower default, and let individual projects override as
necessary.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 197034)
Time Spent: 1h 20m (was: 1h 10m)
> Fix java.lang.OutOfMemoryError: Java heap space on gradle 5
> -----------------------------------------------------------
>
> Key: BEAM-6635
> URL: https://issues.apache.org/jira/browse/BEAM-6635
> Project: Beam
> Issue Type: Bug
> Components: build-system
> Reporter: Michael Luckey
> Assignee: Michael Luckey
> Priority: Major
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> With gradle 5
> {noformat}
> All workers, including compilers and test executors, now start with 512MB of
> heap.
> The previous default was 1/4th of physical memory. Large projects may have to
> increase
> this setting on the relevant tasks, e.g. JavaCompile or Test.
> {noformat}
> This change cause some of our test to fail.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)