-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8367583: sun/security/util/AlgorithmConstraints/InvalidCryptoDisabledAlgos.java fails after JDK-8244336 #27269
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
…Algos.java fails after JDK-8244336
|
👋 Welcome back jpai! A progress list of the required criteria for merging this PR into |
|
@jaikiran 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
wangweij
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've seen this before. https://bugs.openjdk.org/browse/JDK-8345578.
Thank you Weijun for the review. The conditional code in For this current PR, would you suggest I wait for further reviews or would it be OK to go ahead with the integration? Locally I have verified this test now works (and used to previously fail). In our CI I have run tier2 and just this test too and that too passed (but that isn't of much consequence because the build number used in those runs will be 0). |
|
I spoke to Weijun and we decided to integrate this. |
|
/integrate |
|
Going to push as commit ff538c7. |
Can I please get a review of this test-only change which addresses the test failure in
sun/security/util/AlgorithmConstraints/InvalidCryptoDisabledAlgos.java?As noted in https://bugs.openjdk.org/browse/JDK-8367583, this test fails when run in our CI. The test intentionally sets up some Security property which is expected to cause a
ExceptionInInitializerErrorwhen a security API is used. The test also uses thejdk.test.lib.Utilstest library which in its static block has a piece of code which intializes aMessageDigestconditionally depending on whether or not thebuildpart of theRuntime.version()is greater than0. The initialization ofMessageDigestduring the static initialization of theUtilsclass leads to certain security APIs to be used too early and thus causing theExceptionInInitializerErrormuch before the test expected. The test thus ends up failing in that case.For local builds, build number is by default 0, so this failure wasn't observed locally. In order to reproduce this issue, I built a local JDK with:
I then ran this test against this built JDK and it was able to reproduce this failure.
The change in this PR updates the test to no longer use the test library's
Utilsclass and thus avoids this issue. The test continues to test the same APIs and expectations that it was previously doing, except that it does it without the use of this test utility class. I have run this test change locally against a JDK with build number 0 and against a JDK build number greater than 0 and it passes against both.I'll launched a CI run just to make sure nothing else fails with this change.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27269/head:pull/27269$ git checkout pull/27269Update a local copy of the PR:
$ git checkout pull/27269$ git pull https://git.openjdk.org/jdk.git pull/27269/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27269View PR using the GUI difftool:
$ git pr show -t 27269Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27269.diff
Using Webrev
Link to Webrev Comment