-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8352419: Test tools/jpackage/share/ErrorTest.java#id0 and #id1 fail #24294
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
8352419: Test tools/jpackage/share/ErrorTest.java#id0 and #id1 fail #24294
Conversation
…Stable order of platform package types. Make PackageTest fail if native packagers are unavailable.
|
👋 Welcome back asemenyuk! A progress list of the required criteria for merging this PR into |
|
@alexeysemenyukoracle 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 4 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 |
|
@alexeysemenyukoracle 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. |
c7b707f to
353e3f3
Compare
|
@sashamatveev PTAL |
|
@MBaesken, please try this patch out. |
Webrevs
|
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.
|
I see a test failure in tools/jpackage/helpers-test/jdk/jpackage/test/PackageTestTest.java with this PR when I run the test on Alpine without rpm or dpkg installed. The output contains 82 Skipped Exceptions like : And in the end it fails with: [ JUnit Containers: found 4, started 4, succeeded 4, failed 0, aborted 0, skipped 0] java.lang.Exception: JUnit test failure JavaTest Message: Test threw exception: java.lang.Exception |
|
The same issue can be seen on a Windows system without WIX installed. |
|
Good catch. I'll work on the fix |
|
@ArnoZeller, I've fixed the issue with PackageTestTest.java and verified that all jpackage tests pass on Windows without installed WiX. Please try again. |
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.
Latest commit looks good.
|
Test on Windows without WIX was successful - thanks for improving this! |
|
/integrate |
|
Going to push as commit 70e3250.
Your commit was automatically rebased without conflicts. |
|
@alexeysemenyukoracle Pushed as commit 70e3250. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Make tools/jpackage/share/ErrorTest.java test safely handle the case when native bundling is unavailable on the test host.
Additionally:
jtreg.SkippedExceptionand mark the test as skipped instead of silently doing nothing. This should mark a few jpackage tests "skipped" in tests runs on Alpine Linux that doesn't support either .deb or .rpm packaging.jtreg.SkippedExceptionfrom/jdk/testlib as this exception can be thrown from almost every jpackage test because of the changes in PackageTest. Instead embedjtreg.SkippedExceptionclassfile in TKit.java source and load it from there. This is a less intrusive alternative to addingin every jtreg test declaration
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24294/head:pull/24294$ git checkout pull/24294Update a local copy of the PR:
$ git checkout pull/24294$ git pull https://git.openjdk.org/jdk.git pull/24294/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 24294View PR using the GUI difftool:
$ git pr show -t 24294Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24294.diff
Using Webrev
Link to Webrev Comment