-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8350051: [JMH] Several tests fails NPE #23625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👋 Welcome back syan! A progress list of the required criteria for merging this PR into |
|
@sendaoYan This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. 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 56 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
@sendaoYan The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
|
/label add xml |
|
@sendaoYan
|
Webrevs
|
|
/label add net |
|
@sendaoYan |
|
/label add core-libs |
|
/label remove net |
|
@sendaoYan |
|
@sendaoYan |
erikj79
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is the right way to solve this. I would really like someone more familiar with the microbenchmarks to weigh in on how this was originally meant to work.
Hi, @cl4es, Could you take took this PR. |
|
The issue here looks like an oversight (of mine) in the migration from the standalone JMH repo. There we simply held a copy of the needed XML files, e.g. https://github.com/openjdk/jmh-jdk-microbenchmarks/blob/master/micros-jdk8/src/main/resources/org/openjdk/bench/javax/xml/msgAttach.xml As we're now in-tree I guess it makes sense to copy these over at build time as per this fix - though it creates an undocumented dependency. If anyone changes these tests on the functional side we'd silently break. Perhaps needs a unit test to guard and document the dependency? Taking a step back: If these particular micros have all been broken since JEP 230 was integrated in JDK 12 and no-one noticed until now - maybe they aren't really worth their weight and should instead be removed? |
After this PR, if the dependency XML files been removed will make
Where should I document the dependency, does anyone could give some suggestions. OTOH maybe we should remove this JMH test? |
|
If you have manually verified that the build fails if any of these files are removed then I'm happy. No new tests or documentation needed, really. I could cast my vote towards removing these particular micros. But as the work is done I say let's accept your change, (re-)evaluate their usefulness, and file a RFE to have them removed if they aren't. We have been building out the set of micros we regularly test in nightly / promotion testing, but due to resource constraints only a fraction is run on a regular basis - and javax.xml has not been a priority. |
Yes. I have verified that. If I remove the dependency XML file, then |
|
Going to push as commit 00d4e4a.
Your commit was automatically rebased without conflicts. |
|
@sendaoYan Pushed as commit 00d4e4a. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi all,
Several JMH tests fails 'Cannot invoke "java.io.InputStream.available()" because "is" is null', because the file 'build/linux-x86_64-server-release/images/test/micro/benchmarks.jar' missing the required xml input file defined by test/micro/org/openjdk/bench/javax/xml/AbstractXMLMicro.java. This PR copy the required xml file to benchmarks.jar, and remove two unexist xml input file.
After this PR, below JMH tests will run passes.
Test command:
Change has been verified locally, no risk.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/23625/head:pull/23625$ git checkout pull/23625Update a local copy of the PR:
$ git checkout pull/23625$ git pull https://git.openjdk.org/jdk.git pull/23625/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 23625View PR using the GUI difftool:
$ git pr show -t 23625Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/23625.diff
Using Webrev
Link to Webrev Comment