reuvenlax commented on code in PR #41540:
URL: https://github.com/apache/beam/pull/41540#discussion_r4762774102
##########
buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy:
##########
@@ -1932,6 +1932,15 @@ class BeamModulePlugin implements Plugin<Project> {
args '-foe=true'
// Allow jmhTest to run concurrently with other jmhTest instances
systemProperties(['jmh.ignoreLock' : 'true'])
+ // Skip single-shot JMH execution during default `check`/`build`
presubmits unless
+ // `-PrunJmhTest` is set or `jmhTest` is invoked directly, while
still compiling, linting,
+ // and running fast JUnit smoke tests.
+ onlyIf {
+ project.hasProperty("runJmhTest") ||
+ project.gradle.startParameter.taskNames.any {
+ it == "jmhTest" || it.endsWith(":jmhTest")
+ }
+ }
}
project.check.dependsOn jmhTest
Review Comment:
done
##########
sdks/java/harness/jmh/src/main/java/org/apache/beam/fn/harness/jmh/StateAndSamplerBenchmark.java:
##########
@@ -0,0 +1,374 @@
+/*
Review Comment:
done - replaced with StateBenchmark
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]