-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8359337: XML/JAXP tests that make network connections should ensure that no proxy is selected #26052
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
…hat no proxy is selected
|
👋 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 2 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 ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
JoeWang-Java
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.
Thanks Jaikiran. nit: may add the bug id (8359337) to the @bug tag.
LanceAndersen
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.
Thank you for the assist with this Jai
|
Thank you Joe and Lance for the reviews. I've updated the tests to include the bug id as suggested by Joe. I'll integrate this tomorrow. |
|
What is the error seen on macOS when the proxy is not disabled? |
|
Hello Johannes,
These tests have been written to trigger specific error conditions. Some of them rely on a specific exception being thrown when communicating with an address that is known to be invalid. When a proxy is involved, the communication with the target address happens over the proxy which results in a different error (which depends on the proxy implementation). That causes the assertions in these tests to fail. |
|
Thank you all for the reviews. I'll go ahead and integrate this now. |
|
/integrate |
|
Going to push as commit 7583a7b.
Your commit was automatically rebased without conflicts. |
|
/backport :jdk25 |
|
@jaikiran the backport was successfully created on the branch backport-jaikiran-7583a7b8-jdk25 in my personal fork of openjdk/jdk. To create a pull request with this backport targeting openjdk/jdk:jdk25, just click the following link: The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:
If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk: |
Can I please get a review of this test-only change which addresses the issue noted in https://bugs.openjdk.org/browse/JDK-8359337?
On macOS, the JDK by default (without any explicit system properties) picks up the proxy settings configured on the host. These proxy settings then get used by the JVM wide
DefaultProxySelector. That can then result in some tests, like the ones listed in that issue, to fail.The commit in this PR updates these tests to disable the proxy when running these tests. I've verified that after these changes, these tests now pass on the host where these tests were failing previously. Additionally I've run tier2 to make sure nothing else is impacted due to this change.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26052/head:pull/26052$ git checkout pull/26052Update a local copy of the PR:
$ git checkout pull/26052$ git pull https://git.openjdk.org/jdk.git pull/26052/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26052View PR using the GUI difftool:
$ git pr show -t 26052Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26052.diff
Using Webrev
Link to Webrev Comment