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

[macos] tools/jpackage tests timeout due to /usr/bin/osascript

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b28
    • CPU:
      x86_64
    • OS:
      os_x

      Backports

        Description

        The following test timed out in the JDK18 CI:

        tools/jpackage/share/MultiNameTwoPhaseTest.java

        The test run contains errors like this:

        [11:45:37.245] Running /usr/bin/osascript
        [11:51:07.189] Command [PID: 5566]:
            /usr/bin/osascript /var/folders/93/pf04s4c922qcyb7v8xr1y5h8000_dc/T/jdk.jpackage4183342526789260831/config/Hello-dmg-setup.scpt
        [11:51:07.190] Output:
            /var/folders/93/pf04s4c922qcyb7v8xr1y5h8000_dc/T/jdk.jpackage4183342526789260831/config/Hello-dmg-setup.scpt:192:204: execution error: Finder got an error: AppleEvent timed out. (-1712)
        [11:51:07.190] Returned: 1

        [11:51:07.190] java.io.IOException: Command [/usr/bin/osascript, /var/folders/93/pf04s4c922qcyb7v8xr1y5h8000_dc/T/jdk.jpackage4183342526789260831/config/Hello-dmg-setup.scpt] exited with 1 code
        at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:90)
        at jdk.jpackage/jdk.jpackage.internal.IOUtils.exec(IOUtils.java:215)
        at jdk.jpackage/jdk.jpackage.internal.IOUtils.exec(IOUtils.java:193)
        at jdk.jpackage/jdk.jpackage.internal.IOUtils.exec(IOUtils.java:172)
        at jdk.jpackage/jdk.jpackage.internal.MacDmgBundler.buildDMG(MacDmgBundler.java:404)
        at jdk.jpackage/jdk.jpackage.internal.MacDmgBundler.bundle(MacDmgBundler.java:90)
        at jdk.jpackage/jdk.jpackage.internal.MacDmgBundler.execute(MacDmgBundler.java:579)
        at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:689)
        at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:561)
        at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:91)
        at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52)

        There are five runs of /usr/bin/osascript and
        all have similar errors. I suspect that the issues with
        /usr/bin/osascript are what caused the test run to
        take so long.

        The test did PASS while the timeout handler was running:

        [12:03:44.970] [ OK ] MultiNameTwoPhaseTest.test([MultiNameTest, ](length=2)); checks=36
        [12:03:44.970] [==========] 5 tests ran
        [12:03:44.971] [ PASSED ] 5 tests
        ----------System.err:(1/15)----------
        STATUS:Passed.
        ----------rerun:(39/8387)*----------

        It could be that these /usr/bin/osascript errors are "normal"
        and this test just needs a longer timeout.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: