8373105: Test tools/jpackage/share/AsyncTest.java failed: problem running hdiutil#28912
8373105: Test tools/jpackage/share/AsyncTest.java failed: problem running hdiutil#28912sashamatveev wants to merge 2 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back almatvee! A progress list of the required criteria for merging this PR into |
|
@sashamatveev 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 37 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. ➡️ To integrate this PR with the above commit message to the |
|
@sashamatveev 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. |
Webrevs
|
|
@alexeysemenyukoracle Please review. |
|
I once suspected jpackage's DMG attach/detach code was not very reliable, as the fixed volume name is used and filed JDK-8371494 to investigate. Back then, as I never observed AsyncTest failures, I closed the CR as not an issue. It merely took some time to reveal the problem. We need both jpackage and the test code fixed. |
|
We do not need to fix jpackage. It is already uses random mount root. Example from trace: |
|
Oh, right. The issue is with the |
| // See JDK-8373105. "hdiutil" does not handle such cases very good. | ||
| final Path mountRoot; | ||
| try { | ||
| mountRoot = Files.createTempDirectory("mountRoot"); |
There was a problem hiding this comment.
Temporary test files should be created in the test working directory. Use TKit.createTempDirectory("mount-root") instead.
It also makes the newly added TKit.deleteDirectoryRecursive(mountRoot, ""); call redundant, as the test working directory will be deleted automatically when the test exits.
TKit.createTempDirectory() throws unchecked exceptions; the try/catch is redundant.
…ning hdiutil [v2]
|
8373105: Test tools/jpackage/share/AsyncTest.java failed: problem running hdiutil [v2]
|
|
/integrate |
|
Going to push as commit 2d09284.
Your commit was automatically rebased without conflicts. |
|
@sashamatveev Pushed as commit 2d09284. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
hdiutildoes not handle attaching/detaching DMG with same name asynchronously multiple times well enough.-nobrowse, so DMG will not be added to Finder. We do not need DMG to be shown in Finder when attached during test.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28912/head:pull/28912$ git checkout pull/28912Update a local copy of the PR:
$ git checkout pull/28912$ git pull https://git.openjdk.org/jdk.git pull/28912/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28912View PR using the GUI difftool:
$ git pr show -t 28912Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28912.diff
Using Webrev
Link to Webrev Comment