Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8238781

[macos] jpackage tests failed due to "hdiutil: create failed" in various ways

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      The following test failed in the JDK15 CI:

      tools/jpackage/share/IconTest.java

      Here's a snippet from the log file:

      Creating DMG file: /mesos/work_dir/slaves/7cfa21b9-afde-4338-a459-d3e0a13ec793-S1176/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2159a67a-de2e-46d6-a616-f98c552e821b/runs/f5083a6e-4abd-4ce2-a18c-32b75a962db4/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/0/./test.3617e55e/output/IconTest-1.0.dmg.
      Running [/usr/bin/hdiutil, create, -verbose, -srcfolder, /var/folders/3v/cglhtd2j5f5dcxf1t9shc_bc0000gp/T/jdk.incubator.jpackage14748253831843228878/images/image-16353669255289459054, -volname, IconTest, -ov, /var/folders/3v/cglhtd2j5f5dcxf1t9shc_bc0000gp/T/jdk.incubator.jpackage14748253831843228878/images/IconTest-tmp.dmg, -fs, HFS+, -format, UDRW]
      2020-02-10 08:09:53.123 hdiutil[69407:56089714] error: unable to set up framework server.
      DIHLDiskImageCreate() returned 6
      (null)
      hdiutil: create: returning 6
      hdiutil: create failed - Device not configured
      java.io.IOException: Command [/usr/bin/hdiutil, create, -verbose, -srcfolder, /var/folders/3v/cglhtd2j5f5dcxf1t9shc_bc0000gp/T/jdk.incubator.jpackage14748253831843228878/images/image-16353669255289459054, -volname, IconTest, -ov, /var/folders/3v/cglhtd2j5f5dcxf1t9shc_bc0000gp/T/jdk.incubator.jpackage14748253831843228878/images/IconTest-tmp.dmg, -fs, HFS+, -format, UDRW] exited with 1 code
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Executor.executeExpectSuccess(Executor.java:73)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.IOUtils.exec(IOUtils.java:165)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.IOUtils.exec(IOUtils.java:136)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.MacDmgBundler.buildDMG(MacDmgBundler.java:299)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.MacDmgBundler.bundle(MacDmgBundler.java:81)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.MacDmgBundler.execute(MacDmgBundler.java:467)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.generateBundle(Arguments.java:641)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.processArguments(Arguments.java:514)
      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)
      jdk.incubator.jpackage.internal.PackagerException: java.io.IOException: Command [/usr/bin/hdiutil, create, -verbose, -srcfolder, /var/folders/3v/cglhtd2j5f5dcxf1t9shc_bc0000gp/T/jdk.incubator.jpackage14748253831843228878/images/image-16353669255289459054, -volname, IconTest, -ov, /var/folders/3v/cglhtd2j5f5dcxf1t9shc_bc0000gp/T/jdk.incubator.jpackage14748253831843228878/images/IconTest-tmp.dmg, -fs, HFS+, -format, UDRW] exited with 1 code
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.MacDmgBundler.bundle(MacDmgBundler.java:86)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.MacDmgBundler.execute(MacDmgBundler.java:467)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.generateBundle(Arguments.java:641)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.processArguments(Arguments.java:514)
      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)
      Caused by: java.io.IOException: Command [/usr/bin/hdiutil, create, -verbose, -srcfolder, /var/folders/3v/cglhtd2j5f5dcxf1t9shc_bc0000gp/T/jdk.incubator.jpackage14748253831843228878/images/image-16353669255289459054, -volname, IconTest, -ov, /var/folders/3v/cglhtd2j5f5dcxf1t9shc_bc0000gp/T/jdk.incubator.jpackage14748253831843228878/images/IconTest-tmp.dmg, -fs, HFS+, -format, UDRW] exited with 1 code
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Executor.executeExpectSuccess(Executor.java:73)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.IOUtils.exec(IOUtils.java:165)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.IOUtils.exec(IOUtils.java:136)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.MacDmgBundler.buildDMG(MacDmgBundler.java:299)
      at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.MacDmgBundler.bundle(MacDmgBundler.java:81)
      ... 5 more
      TRACE: exec: Done. Exit code: 1
      ERROR: Expected [0]. Actual [1]: Check command [/mesos/work_dir/jib-master/install/jdk-15+10-288/macosx-x64.jdk/jdk-15.jdk/Contents/Home/bin/jpackage --input ./test.3617e55e/input --dest ./test.3617e55e/output --name IconTest --type dmg --main-jar hello.jar --main-class Hello --icon /mesos/work_dir/jib-master/install/jdk-15+10-288/src.full/open/test/jdk/tools/jpackage/resources/icon.icns --runtime-image ./test.3617e55e/fake_runtime --verbose](18) exited with 0 code
      [ FAILED ] IconTest(Package, CustomIcon).test; checks=9


      Since this is a Tier2 test, I'm starting this bug as a P3.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                almatvee Alexander Matveev
                Reporter:
                dcubed Daniel Daugherty
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: