[
https://issues.apache.org/jira/browse/GEODE-5991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan McMahon updated GEODE-5991:
--------------------------------
Description:
There appears to be some compatibility issues between our current gradle
version (4.10) and configuration, and the JMH gradle plugin
(me.champeau.gradle.jmh). It is not clear if it is a version incompatibility,
or if the plugin is misconfigured.
To reproduce, build Geode then run a single JMH test like so:
{code:java}
./gradlew jmh -Pinclude=GetOnRegionBenchmark
{code}
Next, make some change to the test file i.e. GetOnRegionBenchmark.java in this
example. For instance, remove the @WarmUp annotation from the benchmark
method. Then run the above .gradlew command again. It should fail with the
following (or similar) error. A workaround is to add the `--info` flag to the
command, which appears to force a flush of some cached state and allows the
test to build/run correctly.
{noformat}
|develop → origin {111} U:2 | → ./gradlew jmh -Pinclude=GetOnRegionBenchmark
> Task :geode-core:jmhRunBytecodeGenerator
Processing 27 classes from
/Users/rmcmahon/dev/gemfire/open/geode-core/build/classes/java/jmh with
"reflection" generator
Writing out Java source to
/Users/rmcmahon/dev/gemfire/open/geode-core/build/jmh-generated-sources and
resources to
/Users/rmcmahon/dev/gemfire/open/geode-core/build/jmh-generated-resources
> Task :geode-core:jmh FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':geode-core:jmh'.
> A failure occurred while executing me.champeau.gradle.IsolatedRunner
> Error reading benchmark list
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with
Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See
https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 11s
31 actionable tasks: 5 executed, 26 up-to-date
{noformat}
was:
There appears to be some compatibility issues between our current gradle
version (4.10) and configuration, and the JMH gradle plugin
(me.champeau.gradle.jmh). It is not clear if it is a version incompatibility,
or if the plugin is misconfigured.
To reproduce, build Geode then run a single JMH test like so:
`./gradlew jmh -Pinclude=GetOnRegionBenchmark`
Next, make some change to the test file i.e. GetOnRegionBenchmark.java in this
example. For instance, remove the @WarmUp annotation from the benchmark
method. Then run the above .gradlew command again. It should fail with the
following (or similar) error. A workaround is to add the `--info` flag to the
command, which appears to force a flush of some cached state and allows the
test to build/run correctly.
```
|develop → origin {111} U:2 | → ./gradlew jmh -Pinclude=GetOnRegionBenchmark
> Task :geode-core:jmhRunBytecodeGenerator
Processing 27 classes from
/Users/rmcmahon/dev/gemfire/open/geode-core/build/classes/java/jmh with
"reflection" generator
Writing out Java source to
/Users/rmcmahon/dev/gemfire/open/geode-core/build/jmh-generated-sources and
resources to
/Users/rmcmahon/dev/gemfire/open/geode-core/build/jmh-generated-resources
> Task :geode-core:jmh FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':geode-core:jmh'.
> A failure occurred while executing me.champeau.gradle.IsolatedRunner
> Error reading benchmark list
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with
Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See
https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 11s
31 actionable tasks: 5 executed, 26 up-to-date
```
> JMH incompatibility with latest gradle version/configuration
> ------------------------------------------------------------
>
> Key: GEODE-5991
> URL: https://issues.apache.org/jira/browse/GEODE-5991
> Project: Geode
> Issue Type: Bug
> Components: build, tests
> Reporter: Ryan McMahon
> Priority: Major
>
> There appears to be some compatibility issues between our current gradle
> version (4.10) and configuration, and the JMH gradle plugin
> (me.champeau.gradle.jmh). It is not clear if it is a version
> incompatibility, or if the plugin is misconfigured.
> To reproduce, build Geode then run a single JMH test like so:
> {code:java}
> ./gradlew jmh -Pinclude=GetOnRegionBenchmark
> {code}
> Next, make some change to the test file i.e. GetOnRegionBenchmark.java in
> this example. For instance, remove the @WarmUp annotation from the benchmark
> method. Then run the above .gradlew command again. It should fail with the
> following (or similar) error. A workaround is to add the `--info` flag to
> the command, which appears to force a flush of some cached state and allows
> the test to build/run correctly.
> {noformat}
> |develop → origin {111} U:2 | → ./gradlew jmh -Pinclude=GetOnRegionBenchmark
> > Task :geode-core:jmhRunBytecodeGenerator
> Processing 27 classes from
> /Users/rmcmahon/dev/gemfire/open/geode-core/build/classes/java/jmh with
> "reflection" generator
> Writing out Java source to
> /Users/rmcmahon/dev/gemfire/open/geode-core/build/jmh-generated-sources and
> resources to
> /Users/rmcmahon/dev/gemfire/open/geode-core/build/jmh-generated-resources
> > Task :geode-core:jmh FAILED
> FAILURE: Build failed with an exception.
> * What went wrong:
> Execution failed for task ':geode-core:jmh'.
> > A failure occurred while executing me.champeau.gradle.IsolatedRunner
> > Error reading benchmark list
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output. Run with --scan to get full insights.
> * Get more help at https://help.gradle.org
> Deprecated Gradle features were used in this build, making it incompatible
> with Gradle 5.0.
> Use '--warning-mode all' to show the individual deprecation warnings.
> See
> https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings
> BUILD FAILED in 11s
> 31 actionable tasks: 5 executed, 26 up-to-date
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)