Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2054 Fix Kafka transient unit test failures
  3. KAFKA-2613

Consider capping `maxParallelForks` for Jenkins builds

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0.0
    • Component/s: build
    • Labels:
      None

      Description

      We currently set `maxParallelForks` to the number returned by `Runtime.availableProcessors`.

        tasks.withType(Test) {
          maxParallelForks = Runtime.runtime.availableProcessors()
        }
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              ewencp Ewen Cheslack-Postava
              Reporter:
              ijuma Ismael Juma
              Reviewer:
              Gwen Shapira
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: