-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8325525: Create jtreg test case for JDK-8325203 #19536
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
|
Hi @Vanitha-bp, welcome to this OpenJDK project and thanks for contributing! We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user Vanitha-bp" as summary for the issue. If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing |
|
@Vanitha-bp 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 450 new commits pushed to the
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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@alexeysemenyukoracle, @sashamatveev) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
@Vanitha-bp 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. |
|
/covered |
|
Thank you! Please allow for a few business days to verify that your employer has signed the OCA. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated! |
Webrevs
|
|
The test builds an installer that must be installed as a part of the test. This will not work in an environment where tests are executed under a user account with restricted permissions. Building app image instead of an installer is sufficient for this test. There are helper classes for writing jpackage tests in https://github.com/openjdk/jdk/tree/master/test/jdk/tools/jpackage/helpers/jdk/jpackage/test folder. I'd not use a file to communicate PID of the started process between the launcher and the test. I'd use stdout instead: Compiling, jarring, and running jpackage that will create app image from the jar with these helpers would be as follows: Then you run "ThirdPartyAppLauncher" class using jpackage launcher and capture its stdout: You may use one of the existing jpackage tests for the reference (https://github.com/openjdk/jdk/blob/master/test/jdk/tools/jpackage/share/AppLauncherEnvTest.java is a good example) |
|
Thanks for the inputs @alexeysemenyukoracle. I have addressed the review comments. |
sashamatveev
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.
Looks good.
|
|
Looks good. Thank you for doing all the adjustments to the code! |
|
Thanks @alexeysemenyukoracle and @sashamatveev for reviewing and providing valuable inputs. Please sponsor the changes. |
|
/integrate |
|
@Vanitha-bp |
|
/integrate |
|
@alexeysemenyukoracle Only the author (@Vanitha-bp) is allowed to issue the |
|
/sponsor |
|
Going to push as commit 81a0d1b.
Your commit was automatically rebased without conflicts. |
|
@alexeysemenyukoracle @Vanitha-bp Pushed as commit 81a0d1b. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Created jtreg test case for JDK-8325203 issue.
The JpackageTest created tests that the child process started from the app launched by jpackage launcher is not automatically terminated when the the launcher is terminated.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/19536/head:pull/19536$ git checkout pull/19536Update a local copy of the PR:
$ git checkout pull/19536$ git pull https://git.openjdk.org/jdk.git pull/19536/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 19536View PR using the GUI difftool:
$ git pr show -t 19536Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/19536.diff
Webrev
Link to Webrev Comment