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

8296718: Refactor bootstrap Test Common Functionalities to test/lib/Utils #11029

Closed
wants to merge 2 commits into from

Conversation

bwhuang-us
Copy link
Contributor

@bwhuang-us bwhuang-us commented Nov 7, 2022

There is no new changes in the open portion of JDK, but extracting common functionalities in bootstrap Utils to test/lib/Utils which can be used in the closed part.


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-8296718: Refactor bootstrap Test Common Functionalities to test/lib/Utils

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 11029

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

Using diff file

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

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 7, 2022

👋 Welcome back bhuang! 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 Nov 7, 2022
@openjdk
Copy link

openjdk bot commented Nov 7, 2022

@bwhuang-us The following labels will be automatically applied to this pull request:

  • core-libs
  • hotspot-runtime
  • jmx
  • serviceability

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added serviceability serviceability-dev@openjdk.org hotspot-runtime hotspot-runtime-dev@openjdk.org jmx jmx-dev@openjdk.org core-libs core-libs-dev@openjdk.org labels Nov 7, 2022
@mlbridge
Copy link

mlbridge bot commented Nov 7, 2022

Webrevs

@sspitsyn
Copy link
Contributor

sspitsyn commented Nov 7, 2022

The refactoring looks pretty good.
But I have a couple of questions.
Q1: The method grantAccess is converted to the util method grantFileAccess and it does not look the same. Could you, please, explain what are the changes?
Q2: I'm confused about conversion of the shell tests. Your fix does not convert any shell test. Also, I do not see any changes to the shell ile test/jdk/sun/management/jmxremote/bootstrap/ReadWriteForbidsCreateTest.sh listed in the enhancement. Can you explain, please?

@bwhuang-us
Copy link
Contributor Author

bwhuang-us commented Nov 8, 2022

Hi @sspitsyn, the methods grantAccess and grantFileAccess are almost identical except for the parameter AccessControl access being changed to a boolean which is used to indicate user access or full access. There is also a minor change in building a new ACL entry out of the original entry.

For your Q2 , it is in closed part of JDK. Please see the JBS ticket for the PR link.

Copy link
Contributor

@sspitsyn sspitsyn left a comment

Choose a reason for hiding this comment

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

I've placed a couple of comments.
Otherwise, it looks okay to me.
Thanks,
Serguei

@bwhuang-us bwhuang-us changed the title JDK-8293450 Convert test/closed/sun/management/ shell tests to Java version JDK-8293450 Convert test/sun/management/ shell tests to Java version Nov 8, 2022
Copy link
Contributor

@sspitsyn sspitsyn left a 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 update.
Looks good.
Thanks,
Serguei

Copy link
Contributor

@kevinjwalls kevinjwalls left a comment

Choose a reason for hiding this comment

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

Looks ok! 8-)

@bwhuang-us
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Nov 9, 2022

@bwhuang-us This pull request has not yet been marked as ready for integration.

@bwhuang-us
Copy link
Contributor Author

It seems there is an integration issue with this PR as the JBS ticket is marked as confidential. I will open a new ticket for this change.

@bwhuang-us bwhuang-us changed the title JDK-8293450 Convert test/sun/management/ shell tests to Java version JDK-8296718 Refactor bootstrap Test Common Functionalities to test/lib/Utils Nov 9, 2022
@bwhuang-us
Copy link
Contributor Author

/issue JDK-8296718

@openjdk
Copy link

openjdk bot commented Nov 9, 2022

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

8296718: Refactor bootstrap Test Common Functionalities to test/lib/Utils

Reviewed-by: sspitsyn, kevinw

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 58 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 Nov 9, 2022
@openjdk openjdk bot changed the title JDK-8296718 Refactor bootstrap Test Common Functionalities to test/lib/Utils 8296718: Refactor bootstrap Test Common Functionalities to test/lib/Utils Nov 9, 2022
@openjdk
Copy link

openjdk bot commented Nov 9, 2022

@bwhuang-us This issue is referenced in the PR title - it will now be updated.

@bwhuang-us
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Nov 9, 2022

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

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Nov 9, 2022

@bwhuang-us Pushed as commit cc8bf95.

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

@bwhuang-us bwhuang-us deleted the JDK-8293450 branch March 1, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-libs core-libs-dev@openjdk.org hotspot-runtime hotspot-runtime-dev@openjdk.org integrated Pull request has been integrated jmx jmx-dev@openjdk.org serviceability serviceability-dev@openjdk.org
3 participants