-
Notifications
You must be signed in to change notification settings - Fork 300
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
CODETOOLS-7902936: Stray output in forked VM breaks external version parsing #41
CODETOOLS-7902936: Stray output in forked VM breaks external version parsing #41
Conversation
On an XML parse error, try again after stripping the prefix up to the XML prelude. Failing that, include the process output in the thrown exception to help the user diagnose the root cause.
👋 Welcome back jzaugg! A progress list of the required criteria for merging this PR into |
Webrevs
|
This code path is only exercised when specifying an alternative I manually tested the change by:
|
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 see little sense in trying to recover here. The stray VM output can come in the middle of that XML dump too. I would prefer to cover the "hard to debug" part only: dump the proper diagnostics and then fail hard. We can probably print the helpful message how to shun the VM warnings, if user is so inclined?
No worries, I thought I'd throw the whole gamut in here and let you decide what to include.
What advice could we give? The use can't currently add JVM options to the FWIW, I haven't yet found a way to reconfigure the Linux system to avoid my particular VM warning. Not necessarily because its hard to fix, but more because I'm clueless about this part of Linux. At some point an OS upgrade would make sense but that could introduce a discontinuity into our historical benchmark results. The other options I haven't explored, but seem easy enough to implement are:
|
Just throw a more useful exception and leave the user to resolve the root cause.
Argh. I thought we can ask user to provide
Yes, temp file would be cleanest option here. Call |
Done. That enabled a small cleanup to implement this in terms of I've also added a test that exercises |
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.
This is good. Rename the test file, and we are good to go.
@Warmup(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS) | ||
@Fork(1) | ||
@State(Scope.Thread) | ||
public class JvmOption { |
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.
This should be JvmOptionTest
to match the naming convention for the tests.
@retronym 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 |
/integrate |
/sponsor |
Just pushed an extra commit to remove an unused import I introduced, hope I haven't provoked a race condition in the bot! |
Clever bot! |
/integrate |
Ok, now waiting for GHAs to complete again. |
/sponsor |
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jmh pull/41/head:pull/41
$ git checkout pull/41
Update a local copy of the PR:
$ git checkout pull/41
$ git pull https://git.openjdk.java.net/jmh pull/41/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 41
View PR using the GUI difftool:
$ git pr show -t 41
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jmh/pull/41.diff