JDK-8248248 : [macos] EmptyFolderPackageTest.java fails EmptyFolderPackageTest-dmg-setup.scpt exited with 134 code
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: 15,16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2020-06-24
  • Updated: 2021-12-03
  • Resolved: 2020-07-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16 b08Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
The following test failed in the JDK16 CI:

tools/jpackage/share/EmptyFolderPackageTest.java

Here's a snippet from the log file:

2020-06-24 13:43:50.251 diskimages-helper[77807:108465883] DIHelperHDID serveImage: connecting to myDrive 0x3C17
2020-06-24 13:43:50.251 diskimages-helper[77807:108465883] DIHelperHDID serveImage: register _readBuffer 0x113bdf000
2020-06-24 13:43:50.251 diskimages-helper[77807:108465883] DIHelperHDID serveImage: activating drive port 15115
2020-06-24 13:43:50.251 diskimages-helper[77807:108465883] DIHelperHDID serveImage: set cache enabled=TRUE returned FAILURE.
2020-06-24 13:43:51.047 diskimages-helper[77807:108465883] DIHelperHDID serveImage: set on IO thread=TRUE returned SUCCESS.
2020-06-24 13:43:51.047 diskimages-helper[77807:108465883] -processKernelRequest: will sleep received
Mounting?
2020-06-24 13:43:59.641 diskimages-helper[77807:108465881] _mountDevEntries: disk4s1 aborting mountpoint postflight because disk image has no band size specified.
Finishing?
Finishing?
/dev/disk4          	GUID_partition_scheme          	
/dev/disk4s1        	Apple_HFS                      	/private/var/folders/jn/3j5zlmnj4zs5tlhls80bv42r000_dc/T/jdk.incubator.jpackage1962945015785689894/images/EmptyFolderPackageTest
Running [osascript, /var/folders/jn/3j5zlmnj4zs5tlhls80bv42r000_dc/T/jdk.incubator.jpackage1962945015785689894/config/EmptyFolderPackageTest-dmg-setup.scpt]
Timeout refired 480 times
java.io.IOException: Command [osascript, /var/folders/jn/3j5zlmnj4zs5tlhls80bv42r000_dc/T/jdk.incubator.jpackage1962945015785689894/config/EmptyFolderPackageTest-dmg-setup.scpt] exited with 134 code
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Executor.executeExpectSuccess(Executor.java:75)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.IOUtils.exec(IOUtils.java:167)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.IOUtils.exec(IOUtils.java:135)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.MacDmgBundler.buildDMG(MacDmgBundler.java:351)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.MacDmgBundler.bundle(MacDmgBundler.java:91)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.MacDmgBundler.execute(MacDmgBundler.java:493)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.generateBundle(Arguments.java:680)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.processArguments(Arguments.java:549)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.main.Main.execute(Main.java:98)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.main.Main.main(Main.java:52)
Running [/usr/bin/SetFile, -c, icnC, /var/folders/jn/3j5zlmnj4zs5tlhls80bv42r000_dc/T/jdk.incubator.jpackage1962945015785689894/images/EmptyFolderPackageTest/.VolumeIcon.icns]
Running [/usr/bin/SetFile, -a, C, /var/folders/jn/3j5zlmnj4zs5tlhls80bv42r000_dc/T/jdk.incubator.jpackage1962945015785689894/images/EmptyFolderPackageTest]
Running [/usr/bin/hdiutil, detach, -force, -verbose, /var/folders/jn/3j5zlmnj4zs5tlhls80bv42r000_dc/T/jdk.incubator.jpackage1962945015785689894/images/EmptyFolderPackageTest]
hdiutil: detach: processing "/var/folders/jn/3j5zlmnj4zs5tlhls80bv42r000_dc/T/jdk.incubator.jpackage1962945015785689894/images/EmptyFolderPackageTest"
LetDIDriverSettleDown: calling IOServiceWaitQuiet...
DI_kextWaitQuiet: about to call IOServiceWaitQuiet...
DI_kextWaitQuiet: IOServiceWaitQuiet took 0.130713 seconds
LetDiskImageDriverSettleDown: wait took 0.130814 seconds
"disk4" unmounted.
"disk4" ejected.
Running [/usr/bin/hdiutil, convert, /var/folders/jn/3j5zlmnj4zs5tlhls80bv42r000_dc/T/jdk.incubator.jpackage1962945015785689894/images/EmptyFolderPackageTest-tmp.dmg, -verbose, -format, UDZO, -o, /mesos/work_dir/slaves/63712a43-4eaa-429c-95b4-483ac8241123-S1001/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/cdecf046-d409-42ab-aed4-3fdd17674733/runs/fdfd1772-8df7-4f96-a116-2b86bd25deb3/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/5/./output/EmptyFolderPackageTest-1.0.dmg]
----------System.err:(3/171)----------
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/47ebccd0ac02 User: almatvee Date: 2020-07-24 23:48:36 +0000
25-07-2020

http://cr.openjdk.java.net/~almatvee/8248248/webrev.01/ - Added INFINITE_TIMEOUT instead of -1. - Fix actually did not work correctly and process never timeout, since we were reading process output and wait with timeout never executed, since reading output was continue until process terminated. Fix by forcing using file for output, since in this case we will wait for process before reading output.
23-07-2020

http://cr.openjdk.java.net/~almatvee/8248248/webrev.00/ It is not clear why script was hanging for more than 7 minutes which caused test to timeout. Fixed by limiting script execution time to 3 minutes. Also, EmptyFolderPackageTest was removed from ProblemList.
20-07-2020