Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

plugins {
   id("us.ihmc.ihmc-build") version "0.15.15"
   id("us.ihmc.ihmc-ci") version "13.2.04"
}

User Guide

This plugin defines a concept of categories. Categories are communicated via the category Gradle property (i.e. gradle test -Pcategory=fast)and are used to set up a test process to run tests based on tags, parallel execution settings, and JVM arguments.

...

CategoryConfigurationSummary
fastclassesPerJVM = 0 // no limit
maxJVMs = 2
maxParallelTests = 4

Run untagged tests as fast as possible.

Assume no special runtime requirements.

allocationclassesPerJVM = 0
maxJVMs = 2
maxParallelTests = 1
includeTags += "allocation"
jvmArgs += getAllocationAgentJVMArg()"allocationAgent"
Run only 1 test per JVM process so allocations don't overlap.
Uses provided special accessor, allocationAgentJVMArg,
to get -javaagent:[..]java-allocation-instrumenter[..].jar
scsclassesPerJVM = 1
maxJVMs = 2
maxParallelTests = 1
includeTags += "scs"
jvmProperties.putAll(getScsDefaultJVMProps())
minHeapSizeGB = 6
maxHeapSizeGB = 8
Run SCS tests.
(Will eventually move SCS Gradle plugin)
These are the default settings for SCS. Accessible via getSCSDefaultJVMArgs().
videoclassesPerJVM = 1
maxJVMs = 2
maxParallelTests = 1
includeTags += "video"
jvmProperties["create.scs.gui"] = "true"
jvmProperties["show.scs.windows"] = "true"
jvmProperties["create.videos.dir"] = "/home/shadylady/bamboo-videos/"
jvmProperties["show.scs.yographics"] = "true"
jvmProperties["java.awt.headless"] = "false"
jvmProperties["create.videos"] = "true"
jvmProperties["openh264.license"] = "accept"
jvmProperties["disable.joint.subsystem.publisher"] = "true"
jvmProperties["scs.dataBuffer.size"] = "8142"
minHeapSizeGB = 6
maxHeapSizeGB = 8

Run SCS video recordings.

(Will eventually move SCS Gradle plugin)

...

Special JVM argument accessors:

  • getAllocationAgentJVMArg() "allocationAgent" - Find location of -javaagent:[..]java-allocation-instrumenter[..].jar

...