[ https://issues.apache.org/jira/browse/KAFKA-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14951391#comment-14951391 ]
ASF GitHub Bot commented on KAFKA-2613: --------------------------------------- GitHub user ewencp opened a pull request: https://github.com/apache/kafka/pull/293 KAFKA-2613: Make maxParallelForks configurable via Gradle config so it can be turned down on shared build infrastructure. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ewencp/kafka kafka-2613-user-configurable-max-forks Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/293.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #293 ---- commit 946a3ad65d848f2864f4ec81c12a1a55a96d4b50 Author: Ewen Cheslack-Postava <m...@ewencp.org> Date: 2015-10-09T23:31:02Z KAFKA-2613: Make maxParallelForks configurable via Gradle config so it can be turned down on shared build infrastructure. ---- > Consider capping `maxParallelForks` for Jenkins builds > ------------------------------------------------------ > > Key: KAFKA-2613 > URL: https://issues.apache.org/jira/browse/KAFKA-2613 > Project: Kafka > Issue Type: Sub-task > Components: build > Reporter: Ismael Juma > > We currently set `maxParallelForks` to the number returned by > `Runtime.availableProcessors`. > {code} > tasks.withType(Test) { > maxParallelForks = Runtime.runtime.availableProcessors() > } > {code} > This returns the number of logical cores (including hyperthreaded cores) in > the machine. > This is usually OK when running the tests locally, but the Apache Jenkins > slaves run 2 to 3 jobs simultaneously causing a higher number of timing > related failures. > A potential solution is to allow `maxParallelForks` to be set via a Gradle > property and use that property to set it to an appropriate value when the > build is run from Jenkins. -- This message was sent by Atlassian JIRA (v6.3.4#6332)