Details
Description
The following test failed in the JDK17 CI:
tools/jpackage/share/FileAssociationsTest.java#id0
Here's a snippet from the log file:
[07:56:17.317] Preparing package scripts.
[07:56:17.318] Using default package resource preinstall.template [PKG preinstall script] (add preinstall to the resource-dir to customize).
[07:56:17.319] Using default package resource postinstall.template [PKG postinstall script] (add postinstall to the resource-dir to customize).
[07:56:17.320] Running /usr/bin/pkgbuild
[08:06:57.922] Command:
/usr/bin/pkgbuild --root /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/images/image-16281315152009508389 --install-location /Applications --component-plist /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/config/cpl.plist --scripts /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/config/scripts --identifier Hello /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/packages/FileAssociationsTest-app.pkg
[08:06:57.922] Returned: 134
[08:06:57.923] java.io.IOException: Command [/usr/bin/pkgbuild, --root, /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/images/image-16281315152009508389, --install-location, /Applications, --component-plist, /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/config/cpl.plist, --scripts, /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/config/scripts, --identifier, Hello, /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/packages/FileAssociationsTest-app.pkg] exited with 134 code
at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:91)
at jdk.jpackage/jdk.jpackage.internal.IOUtils.exec(IOUtils.java:205)
at jdk.jpackage/jdk.jpackage.internal.IOUtils.exec(IOUtils.java:166)
at jdk.jpackage/jdk.jpackage.internal.MacPkgBundler.createPKG(MacPkgBundler.java:482)
at jdk.jpackage/jdk.jpackage.internal.MacPkgBundler.bundle(MacPkgBundler.java:159)
at jdk.jpackage/jdk.jpackage.internal.MacPkgBundler.execute(MacPkgBundler.java:630)
at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:676)
at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:550)
at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:91)
at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52)
[08:06:58.008] jdk.jpackage.internal.PackagerException: Error: Bundler "Mac PKG Package" (pkg) failed to produce a package
at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:679)
at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:550)
at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:91)
at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52)
[08:06:58.061] TRACE: exec: Done. Exit code: 1
[08:06:58.069] ERROR: Expected [0]. Actual [1]: Check command [/mesos/work_dir/jib-master/install/jdk-17+23-2030/macosx-x64.jdk/jdk-17.jdk/Contents/Home/bin/jpackage --input ./test.bcc14973/input --dest ./test.bcc14973/output --name FileAssociationsTest --type pkg --file-associations ./test.bcc14973/fa.properties --main-jar hello.jar --main-class Hello --file-associations ./test.bcc14973/fa2.properties --verbose](18) exited with 0 code
[08:06:58.070] [ FAILED ] FileAssociationsTest.test(true); checks=3
[08:06:58.072] [ RUN ] FileAssociationsTest.testNoMime
[08:06:58.075] TRACE: Actions: [[initialize], [create], [unpack], [verify-install], [finalize]]
[08:06:58.075] TRACE: Deleting [./testNoMime] directory recursively
[08:06:58.076] [ OK ] FileAssociationsTest.testNoMime; checks=0
[08:06:58.076] [ RUN ] FileAssociationsTest.testTooManyMimes
[08:06:58.077] TRACE: Actions: [[initialize], [create], [unpack], [verify-install], [finalize]]
[08:06:58.077] TRACE: Deleting [./testTooManyMimes] directory recursively
[08:06:58.078] [ OK ] FileAssociationsTest.testTooManyMimes; checks=0
[08:06:58.079] [==========] 4 tests ran
[08:06:58.079] [ PASSED ] 3 tests
[08:06:58.081] [ FAILED ] 1 test, listed below
[08:06:58.082] [ FAILED ] FileAssociationsTest.test(true); workDir=[./test.bcc14973]
[08:06:58.082] 1 FAILED TEST
----------System.err:(61/4526)----------
tools/jpackage/share/FileAssociationsTest.java#id0
Here's a snippet from the log file:
[07:56:17.317] Preparing package scripts.
[07:56:17.318] Using default package resource preinstall.template [PKG preinstall script] (add preinstall to the resource-dir to customize).
[07:56:17.319] Using default package resource postinstall.template [PKG postinstall script] (add postinstall to the resource-dir to customize).
[07:56:17.320] Running /usr/bin/pkgbuild
[08:06:57.922] Command:
/usr/bin/pkgbuild --root /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/images/image-16281315152009508389 --install-location /Applications --component-plist /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/config/cpl.plist --scripts /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/config/scripts --identifier Hello /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/packages/FileAssociationsTest-app.pkg
[08:06:57.922] Returned: 134
[08:06:57.923] java.io.IOException: Command [/usr/bin/pkgbuild, --root, /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/images/image-16281315152009508389, --install-location, /Applications, --component-plist, /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/config/cpl.plist, --scripts, /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/config/scripts, --identifier, Hello, /var/folders/jt/4yj1vth13s57jj4vffpdsgg80000gp/T/jdk.jpackage13753422776386471062/packages/FileAssociationsTest-app.pkg] exited with 134 code
at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:91)
at jdk.jpackage/jdk.jpackage.internal.IOUtils.exec(IOUtils.java:205)
at jdk.jpackage/jdk.jpackage.internal.IOUtils.exec(IOUtils.java:166)
at jdk.jpackage/jdk.jpackage.internal.MacPkgBundler.createPKG(MacPkgBundler.java:482)
at jdk.jpackage/jdk.jpackage.internal.MacPkgBundler.bundle(MacPkgBundler.java:159)
at jdk.jpackage/jdk.jpackage.internal.MacPkgBundler.execute(MacPkgBundler.java:630)
at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:676)
at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:550)
at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:91)
at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52)
[08:06:58.008] jdk.jpackage.internal.PackagerException: Error: Bundler "Mac PKG Package" (pkg) failed to produce a package
at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:679)
at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:550)
at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:91)
at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52)
[08:06:58.061] TRACE: exec: Done. Exit code: 1
[08:06:58.069] ERROR: Expected [0]. Actual [1]: Check command [/mesos/work_dir/jib-master/install/jdk-17+23-2030/macosx-x64.jdk/jdk-17.jdk/Contents/Home/bin/jpackage --input ./test.bcc14973/input --dest ./test.bcc14973/output --name FileAssociationsTest --type pkg --file-associations ./test.bcc14973/fa.properties --main-jar hello.jar --main-class Hello --file-associations ./test.bcc14973/fa2.properties --verbose](18) exited with 0 code
[08:06:58.070] [ FAILED ] FileAssociationsTest.test(true); checks=3
[08:06:58.072] [ RUN ] FileAssociationsTest.testNoMime
[08:06:58.075] TRACE: Actions: [[initialize], [create], [unpack], [verify-install], [finalize]]
[08:06:58.075] TRACE: Deleting [./testNoMime] directory recursively
[08:06:58.076] [ OK ] FileAssociationsTest.testNoMime; checks=0
[08:06:58.076] [ RUN ] FileAssociationsTest.testTooManyMimes
[08:06:58.077] TRACE: Actions: [[initialize], [create], [unpack], [verify-install], [finalize]]
[08:06:58.077] TRACE: Deleting [./testTooManyMimes] directory recursively
[08:06:58.078] [ OK ] FileAssociationsTest.testTooManyMimes; checks=0
[08:06:58.079] [==========] 4 tests ran
[08:06:58.079] [ PASSED ] 3 tests
[08:06:58.081] [ FAILED ] 1 test, listed below
[08:06:58.082] [ FAILED ] FileAssociationsTest.test(true); workDir=[./test.bcc14973]
[08:06:58.082] 1 FAILED TEST
----------System.err:(61/4526)----------