-
Notifications
You must be signed in to change notification settings - Fork 150
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
8335912: Add an operation mode to the jar command when extracting to not overwriting existing files #608
Conversation
👋 Welcome back abakhtin! A progress list of the required criteria for merging this PR into |
@alexeybakhtin This change now passes all automated pre-integration checks. 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 5 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 |
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
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 for this contribution.
One minor comment regarding the text "-k/k" in the warning message. Passing the argument as a standalone "-k" seems to work only with GNUStyleOptions. We can pass "-k..." (along with other options), but the most typical invocation would be "-xk...". I'm okay with the suggested "-k/k" text but would have been okay with with "k" too.
I have the impression that the addition of "main.help.opt.extract.keep-old-files" is related to GNUStyleOptions. The place where "-k Do not overwrite existing files" was added is not the exact equivalent, but we should be able to live with that. Just wonder if we should add "k" to "[vfmn0PMe]". What do you think?
The test "testGnuOptionsKeptOldFile" does not apply, does it? The leading "-" is optional for the non-Gnu interface.
Hello @martinuy
You are right. "-k" is not used separately, so I have updated the warning message
Good catch. Thank you. It should be added as soon as it is main usage string for JDK8
Right. "testGnuOptionsKeptOldFile" does not apply for JDK8 |
@alexeybakhtin , thanks for considering the suggested changes. Looks like What do you think? |
Thank you @martinuy |
|
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.
The change looks good to me. Martin has already covered the same comments I would have had about the initial version. I note that the simple warn
method is pulled in from JDK-8164805, which is fine because we hardly want to backport a change to do with modular JARs to 8u.
I appreciate you considering the translated property files, as I think there's a building problem there in update releases. I'll say more on this in reply to Martin's comment.
They do tend to get documented, but in separate updates from the i18n team. The last one is JDK-8337054 for JDK 23. I suspect we'll get another mass update for 24 when it is released, which will include these. There is an issue with backport releases that we don't get these updates when Oracle cede ownership of them. The last one for 8u is 8214357. We likely need to do a check for where the base properties file has keys that the translations do not, but content changes to existing keys will be harder to spot. Contributing translations for this to trunk might be a good way to open conversation on this, if you have the time. |
/approve yes |
@gnu-andrew |
/integrate |
Going to push as commit 5a4b440.
Your commit was automatically rebased without conflicts. |
@alexeybakhtin Pushed as commit 5a4b440. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
The two newly added tests fails. Tests:
Test log snippet:
|
The minimum jtreg version of jdk11u-dev is 7.3.1+1, the minimum jtreg version of jdk8u-dev seems to be 5.1. So these two tests can't backport from jdk11u-dev to jdk8u-dev directively. The |
Sorry for breaking this compatibility, but is there any document that defines the minimum jtreg version for jdk8u-dev? |
jdk8u-dev: https://github.com/openjdk/jdk8u-dev/blob/master/make/conf/test-dependencies#L29 jdk11u-dev: https://github.com/openjdk/jdk11u-dev/blob/master/make/conf/github-actions.conf#L29 or: https://github.com/openjdk/jdk11u-dev/blob/master/test/jdk/TEST.ROOT#L65 |
Thank you @sendaoYan, Could you suggest how we should deal with these tests? Should I submit an issue to remove these tests OR add them to the ProblemList OR update jtreg requirements? |
Maybe there are some tests in jdk8u-dev depends jtreg5.1, so I think update jtreg version requirements maybe not a good idea. |
Thank you for the finding one more time. Please have a look at the proposed fix at #612 |
Not clean backport from JDK11 patch:
JTREG tests passed
Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/608/head:pull/608
$ git checkout pull/608
Update a local copy of the PR:
$ git checkout pull/608
$ git pull https://git.openjdk.org/jdk8u-dev.git pull/608/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 608
View PR using the GUI difftool:
$ git pr show -t 608
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/608.diff
Using Webrev
Link to Webrev Comment