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
JDK-8273745: VerifyLocale.java occasionally times out #5814
JDK-8273745: VerifyLocale.java occasionally times out #5814
Conversation
|
@jonathan-gibbons 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. |
Looks better than it was.
The test indeed seems to use too many resources for the value it provides. Here's what the test reports on my machine. Before the change:
Skipped 1 locales
Tested 1015 locales
After the change:
Skipped 623 locales
Tested 393 locales
For me, the change cuts the execution time from 20 seconds to 13. While it's good, it is still too long to reasonably test that the locale passed as an argument to javax.tools.DocumentationTool#getTask reaches the doclet. BTW, is there a test that exercises passing the locale through the CLI?
@jonathan-gibbons 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 6 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
I agree that the test is overweight for the benefit, but I couldn't think of a better way to reduce the number of invocations of javadoc and still have a chance of catching any problem values. I was alerted to this test because I did see it occasionally timing out (on my local system), and so the intent was to reduce the execution time to avoid that kind of spurious test failure. I'm open to applying further improvements if we can come up with any good suggestions. Meanwhile, I propose to integrate this fix as is. |
/integrate |
Going to push as commit 92b64a2.
Your commit was automatically rebased without conflicts. |
@jonathan-gibbons Pushed as commit 92b64a2. |
What would such problem values be? Have we seen any? I thought that this test simply verifies that if we put a locale on the one end (options), we will receive that same locale on the other end (doclet). Is there more to this test?
The fact that this test occasionally timed out on your machine surprises me. I mean, it used to take 20 seconds for me. Did it occasionally take more than 300 seconds for you? (AFAIK the default jtreg timeout is 5 minutes.) |
Please review a simple test-only update, to reduce the number of locales tested, and thereby reduce the number of javadoc-invocations
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5814/head:pull/5814
$ git checkout pull/5814
Update a local copy of the PR:
$ git checkout pull/5814
$ git pull https://git.openjdk.java.net/jdk pull/5814/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5814
View PR using the GUI difftool:
$ git pr show -t 5814
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5814.diff