7904169: JMH: Specify annotation processor configuration in samples#165
7904169: JMH: Specify annotation processor configuration in samples#165FBibonne wants to merge 5 commits intoopenjdk:masterfrom
Conversation
- specify explicitly jmh-generator-annprocess dependency in <annotationProcessorPaths> Signed-off-by: Fabrice Bibonne <fabrice.bibonne@courriel.eco>
|
Hi @FBibonne, welcome to this OpenJDK project and thanks for contributing! We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user FBibonne" as summary for the issue. If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing |
|
@FBibonne This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@shipilev) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
/signed |
|
Thank you! Please allow for up to two weeks to process your OCA, although it is usually done within one to two business days. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated! |
Webrevs
|
|
@FBibonne This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
/touch |
|
@FBibonne The pull request is being re-evaluated and the inactivity timeout has been reset. |
|
I see now, you're doing this for jmh-samples. However, shouldn't the change follow same pattern as in PR #125? That is, keep the dependency as in and just add this to the compiler plugin? |
Configure annotation processor with the same pattern as core (openjdk#125)
|
OK. I agree with the pattern |
galderz
left a comment
There was a problem hiding this comment.
Thanks for changing that @FBibonne. I would however keep the dependency in place. The archetype does indeed do that too https://github.com/openjdk/jmh/blob/master/jmh-archetypes/jmh-java-benchmark-archetype/src/main/resources/archetype-resources/pom.xml#L54
shipilev
left a comment
There was a problem hiding this comment.
Please go to https://github.com/FBibonne/jmh/actions and enable the testing workflows. I agree with @galderz that dependency on jmh-generator-annprocess should stay.
|
Merged GHA fix -- 5b34c95 -- please merge from master to get clean test run. |
Signed-off-by: Fabrice Bibonne <fabrice.bibonne@courriel.eco>
shipilev
left a comment
There was a problem hiding this comment.
Looks fine, thanks. Feel free to /integrate once GHA turns out green.
|
/sponsor |
|
Going to push as commit d95d9e0. |
When building with maven jmh-samples with a jdk version 22+ , the annotation processor jmh-generator-annprocess is not executed and files and classes generated by jmh are not included in the jar. Then there is an error at runtime when trying to execute samples with command line such as
java -jar target/benchmarks.jar JMHSample_01:Exception in thread "main" java.lang.RuntimeException: ERROR: Unable to find the resource: /META-INF/BenchmarkListThis error happens because the jmh-sample pom.xml does not explicitly set jmh-generator-annprocess as an annotation processor path. This PR aims to correct this issue like the PR #125
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jmh.git pull/165/head:pull/165$ git checkout pull/165Update a local copy of the PR:
$ git checkout pull/165$ git pull https://git.openjdk.org/jmh.git pull/165/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 165View PR using the GUI difftool:
$ git pr show -t 165Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jmh/pull/165.diff
Using Webrev
Link to Webrev Comment