Skip to content
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

8295944: Move the Http2TestServer and related classes into a package of its own #12160

Closed
wants to merge 7 commits into from

Conversation

jaikiran
Copy link
Member

@jaikiran jaikiran commented Jan 24, 2023

Can I please get a review of this change which addresses https://bugs.openjdk.org/browse/JDK-8295944?

As noted in the issue, the HttpClient testing helper infrastructure code resides in a default (unnamed) packages within the test hierarchy. The commit in this PR moves those classes into a specific package. The tests have been updated to refer to them correctly with proper package name references.
Additionally as noted in the issue, the @modules declaration used in the httpclient tests, were all the same and were repeated in all these tests. The commit in this PR moves those module references into the TEST.properties to centralize such reference. Any test which needs additional modules can then use specific @modules declaration in the test definition.

No functional changes have been done in this PR.

tier1, tier2 and tier3 testing passed after these changes.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8295944: Move the Http2TestServer and related classes into a package of its own

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/12160/head:pull/12160
$ git checkout pull/12160

Update a local copy of the PR:
$ git checkout pull/12160
$ git pull https://git.openjdk.org/jdk pull/12160/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 12160

View PR using the GUI difftool:
$ git pr show -t 12160

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/12160.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 24, 2023

👋 Welcome back jpai! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr Pull request is ready for review label Jan 24, 2023
@openjdk
Copy link

openjdk bot commented Jan 24, 2023

@jaikiran The following label will be automatically applied to this pull request:

  • net

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.

@openjdk openjdk bot added the net net-dev@openjdk.org label Jan 24, 2023
@mlbridge
Copy link

mlbridge bot commented Jan 24, 2023

Webrevs

Copy link
Member

@dfuch dfuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice refactoring overall. Thanks for taking that on! There are a few places where some lines should have been removed but were not. I made some suggestions. Also there are 9 classes that have kept their custom @modules clause because they want to access

 *          java.base/sun.net.www
 *          java.base/sun.net 

I wonder if we should just add these two in TEST.properties - and then remove the @modules from these nine classes as well?

Comment on lines 69 to 70
* java.logging
* jdk.httpserver
Copy link
Member

@dfuch dfuch Jan 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't these two lines be removed as well?

Suggested change
* java.logging
* jdk.httpserver

Comment on lines 68 to 69
* java.logging
* jdk.httpserver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* java.logging
* jdk.httpserver

Comment on lines 29 to 30
* java.logging
* jdk.httpserver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* java.logging
* jdk.httpserver

Comment on lines 27 to 28
* java.logging
* jdk.httpserver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* java.logging
* jdk.httpserver

Comment on lines 28 to 29
* java.logging
* jdk.httpserver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* java.logging
* jdk.httpserver

* @modules java.base/sun.net.www.http
* java.net.http/jdk.internal.net.http.common
* java.net.http/jdk.internal.net.http.frame
* java.net.http/jdk.internal.net.http.hpack
* jdk.httpserver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* jdk.httpserver

Comment on lines 29 to 30
* java.logging
* jdk.httpserver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* java.logging
* jdk.httpserver

* @modules java.base/sun.net.www.http
* java.net.http/jdk.internal.net.http.common
* java.net.http/jdk.internal.net.http.frame
* java.net.http/jdk.internal.net.http.hpack
* jdk.httpserver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* jdk.httpserver

* @modules java.base/sun.net.www.http
* java.net.http/jdk.internal.net.http.common
* java.net.http/jdk.internal.net.http.frame
* java.net.http/jdk.internal.net.http.hpack
* jdk.httpserver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* jdk.httpserver

* @modules java.base/sun.net.www.http
* java.net.http/jdk.internal.net.http.common
* java.net.http/jdk.internal.net.http.frame
* java.net.http/jdk.internal.net.http.hpack
* jdk.httpserver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* jdk.httpserver

@jaikiran
Copy link
Member Author

Hello Daniel,

There are a few places where some lines should have been removed but were not. I made some suggestions.

Thank you for catching these. These were genuine issues and were a leftover from my @modules removal. I've fixed these now in the updated PR. I went through all the files again and did a search (with a different search term this time) and I think have now covered all these leftovers.

@jaikiran
Copy link
Member Author

Also there are 9 classes that have kept their custom @modules clause because they want to access

      java.base/sun.net.www
      java.base/sun.net 

I wonder if we should just add these two in TEST.properties - and then remove the @modules from these nine classes as well?

I think that's reasonable. When I changed most of these tests to remove @modules from their test definition, my selection of "common" declarations missed out these two declarations. I've now updated the TEST.properties to include these and also updated the relevant tests to remove the @modules declaration.

After this change, there remains few tests which use only a limited subset of the modules delcared in TEST.properties. I have left those tests as-is (for example CancelledResponse.java), since it didn't look necessary to remove those @modules. Let me know if you prefer otherwise and I'll update them as well.

Local testing with the latest state of the PR passed. I've now triggered a broader testing with these changes.

@openjdk
Copy link

openjdk bot commented Jan 25, 2023

@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:

8295944: Move the Http2TestServer and related classes into a package of its own

Reviewed-by: dfuchs

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 17 new commits pushed to the master branch:

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 master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jan 25, 2023
@jaikiran
Copy link
Member Author

Thank you Daniel for the review. tier1, tier2, tier3 testing came back successful.

@jaikiran
Copy link
Member Author

/integrate

@openjdk
Copy link

openjdk bot commented Jan 25, 2023

Going to push as commit 8a47429.
Since your change was applied there have been 19 commits pushed to the master branch:

  • c8ad600: 8301004: httpclient: Add more debug to HttpResponseInputStream
  • 74e1a8b: 8300236: Use VarHandle access in Data(Input | Output)Stream classes
  • a5d8e12: 8300244: Replace NULL with nullptr in share/interpreter/
  • 71107f4: 8300651: Replace NULL with nullptr in share/runtime/
  • 3c61d5a: 8300659: Refactor TestMemoryAwareness to use WhiteBox api for host values
  • b2071f7: 8300657: Remove null filtering in CLD oop handle area
  • 95fafd0: 8300644: Remove gc/shenandoah/jni/TestStringCriticalWithDedup.java
  • 5a478ef: 8297730: C2: Arraycopy intrinsic throws incorrect exception
  • 7465de4: 6603771: Nimbus L&F: Ctrl+F7 keybinding for Jinternal Frame throws a NPE.
  • fbe5ab0: 8300830: Remove redundant assertion in src/hotspot/share/runtime/javaCalls.cpp
  • ... and 9 more: https://git.openjdk.org/jdk/compare/544c16e0bdd4335b2624158fd1f6521984aa5079...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jan 25, 2023
@openjdk openjdk bot closed this Jan 25, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jan 25, 2023
@openjdk
Copy link

openjdk bot commented Jan 25, 2023

@jaikiran Pushed as commit 8a47429.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@jaikiran jaikiran deleted the 8295944 branch January 25, 2023 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated net net-dev@openjdk.org
Development

Successfully merging this pull request may close these issues.

2 participants