-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8314831: NMT tests ignore vm flags #15576
Conversation
👋 Welcome back mseledtsov! A progress list of the required criteria for merging this PR into |
Testing:
|
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.
Changes looks good.
@mseledts 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 15 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 |
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.
Okay. Are createTestJVM and createJavaProcessBuilder equivalent?
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.
The ProcessTools.createJavaProcessBuilder()
-> ProcessTools.createTestJvm()
change looks OK, but shouldn't we use createJavaProcessBuilderIgnoreTestJavaOpts()
for those tests that do not want arguments passed, instead of tagging them with "@requires vm.flagless" or am I understanding the point of #15452 incorrectly?
To answer a question from Thomas: Are createTestJVM and createJavaProcessBuilder equivalent? The difference is that createTestJVM() will pass the main/parent JVM command line flags to the child JVM, while createJavaProcessBuilder() will not. |
To answer a question from Gerard: shouldn't we use createJavaProcessBuilderIgnoreTestJavaOpts() ? As far as tagging tests with "@requires vm.flagless" - this is our (HotSpot) recommended way of tagging tests that do not pass the JVM args to child VM. This is done in addition to using createJavaProcessBuilder(). This provides us a uniform way of knowing which tests do not pass flags to child VMs, we can make proper test selection when executing with flags based on that information. |
Specifically, |
I thought we may want to use 15452, but if we have to get this patch in now, then tweak it later a bit and you're OK with that, then so am I. |
Thank you Leonid, Thomas, Gerard. /integrate |
Going to push as commit 9bf3dee.
Your commit was automatically rebased without conflicts. |
Some NMT tests do not pass Java/JVM test command line options (flags) to the child process. Such tests should be examined and broken down into 2 categories:
For details see the JBS issue, including on how the tests were assigned to each category and the reasoning behind it.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/15576/head:pull/15576
$ git checkout pull/15576
Update a local copy of the PR:
$ git checkout pull/15576
$ git pull https://git.openjdk.org/jdk.git pull/15576/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 15576
View PR using the GUI difftool:
$ git pr show -t 15576
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/15576.diff
Webrev
Link to Webrev Comment