Add jlink.debug system property while launching jpackage tests to help diagonize recent intermittent failures

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • 18
    • Affects Version/s: 18
    • Component/s: tools
    • None
    • b26

      There have been 3 reported test failures of jpackage tests:
      https://bugs.openjdk.java.net/browse/JDK-8274622
      https://bugs.openjdk.java.net/browse/JDK-8277160
      https://bugs.openjdk.java.net/browse/JDK-8277058

      All of them appear to have the same underlying root cause where the jlink command (which is launched from within the jpackage tests) fails with:

      "Error: java.lang.IllegalArgumentException".
      These have all failed on macos aarch64 based on the logs attached to those issues.

      However, that isn't enough to narrow down what's causing these failures. The jdk.tools.jlink.internal.JlinkTask internally uses a "jlink.debug" system property to decide whether to print the exception stacktrace of these failures. By default it is "false" and it doesn't print these exception stacktraces.

      It would be good to set this system property to "true" while launching these jpackage tests to help get more detailed failure cause.



            Assignee:
            Jaikiran Pai
            Reporter:
            Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: