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

[REDO] JDK-8277507 Add jlink.debug system property while launching jpackage tests to help diagonize recent intermittent failures

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b27

      Description

      The following jpackage tests failed after JDK-8277507 was integrated:

      tools/jpackage/share/ArgumentsTest.java
      tools/jpackage/share/jdk/jpackage/tests/JavaOptionsTest.java
      tools/jpackage/share/jdk/jpackage/tests/JavaOptionsEqualsTest.java#id1
      tools/jpackage/share/jdk/jpackage/tests/ErrorTest.java#id1
      tools/jpackage/share/jdk/jpackage/tests/DotInNameTest.java
      tools/jpackage/share/jdk/jpackage/tests/BasicTest.java
      tools/jpackage/windows/WinConsoleTest.java
      tools/jpackage/share/ArgumentsTest.java
      tools/jpackage/share/ArgumentsTest.java
      tools/jpackage/share/jdk/jpackage/tests/UnicodeArgsTest.java
      tools/jpackage/share/jdk/jpackage/tests/JavaOptionsTest.java
      tools/jpackage/share/jdk/jpackage/tests/JavaOptionsEqualsTest.java#id1
      tools/jpackage/share/jdk/jpackage/tests/ErrorTest.java#id1
      tools/jpackage/share/jdk/jpackage/tests/DotInNameTest.java
      tools/jpackage/share/jdk/jpackage/tests/BasicTest.java
      tools/jpackage/share/ArgumentsTest.java
      tools/jpackage/share/jdk/jpackage/tests/JavaOptionsEqualsTest.java#id1
      tools/jpackage/share/jdk/jpackage/tests/JavaOptionsTest.java
      tools/jpackage/share/ArgumentsTest.java
      tools/jpackage/share/jdk/jpackage/tests/ErrorTest.java#id1
      tools/jpackage/share/jdk/jpackage/tests/DotInNameTest.java
      tools/jpackage/share/jdk/jpackage/tests/BasicTest.java
      tools/jpackage/share/jdk/jpackage/tests/JavaOptionsTest.java
      tools/jpackage/share/jdk/jpackage/tests/JavaOptionsEqualsTest.java#id1
      tools/jpackage/share/jdk/jpackage/tests/JavaOptionsTest.java
      tools/jpackage/share/jdk/jpackage/tests/JavaOptionsEqualsTest.java#id1
      tools/jpackage/share/jdk/jpackage/tests/ErrorTest.java#id1
      tools/jpackage/share/ArgumentsTest.java
      tools/jpackage/share/jdk/jpackage/tests/ErrorTest.java#id1
      tools/jpackage/share/jdk/jpackage/tests/DotInNameTest.java
      tools/jpackage/share/jdk/jpackage/tests/DotInNameTest.java
      tools/jpackage/share/jdk/jpackage/tests/BasicTest.java
      tools/jpackage/share/jdk/jpackage/tests/BasicTest.java
      tools/jpackage/share/jdk/jpackage/tests/JavaOptionsTest.java
      tools/jpackage/share/jdk/jpackage/tests/JavaOptionsEqualsTest.java#id1
      tools/jpackage/share/jdk/jpackage/tests/ErrorTest.java#id1
      tools/jpackage/share/jdk/jpackage/tests/DotInNameTest.java
      tools/jpackage/share/jdk/jpackage/tests/BasicTest.java


      Here's a snippet from the ArgumentsTest.java log file:

      ----------System.out:(42/4683)*----------
      [09:39:04.490] Parsing [--jpt-run=ArgumentsTest]...
      [09:39:04.510] ArgumentsTest.testApp -> [public static void ArgumentsTest.testApp(java.lang.String)]
      [09:39:04.517] Create: ArgumentsTest.testApp(Goodbye)
      [09:39:04.517] Create: ArgumentsTest.testApp(com.hello/com.hello.Hello)
      [09:39:04.519] [ RUN ] ArgumentsTest.testApp(Goodbye)
      [09:39:04.520] [ CALL ] ArgumentsTest.useJPackageToolProvider()
      [09:39:04.546] TRACE: Bundler dmg supported
      [09:39:04.548] TRACE: Bundler pkg supported
      [09:39:04.571] TRACE: exec: Execute tool provider [javac -d ./testApp.3f9b6877/jar-workdir ./testApp.3f9b6877/src/Goodbye.java](4)...
      [09:39:04.878] TRACE: exec: Done. Exit code: 0
      [09:39:04.879] TRACE: assertEquals(0): Check command tool provider [javac -d ./testApp.3f9b6877/jar-workdir ./testApp.3f9b6877/src/Goodbye.java](4) exited with 0 code
      [09:39:04.880] TRACE: exec: Execute tool provider [jar -c -f ./testApp.3f9b6877/input/hello.jar -C ./testApp.3f9b6877/jar-workdir .](7)...
      [09:39:04.895] TRACE: exec: Done. Exit code: 0
      [09:39:04.895] TRACE: assertEquals(0): Check command tool provider [jar -c -f ./testApp.3f9b6877/input/hello.jar -C ./testApp.3f9b6877/jar-workdir .](7) exited with 0 code
      [09:39:04.900] TRACE: exec: Execute tool provider [jpackage --input ./testApp.3f9b6877/input --dest ./testApp.3f9b6877/output --name AppArgumentsTest --type app-image -J-Djlink.debug=true --main-jar hello.jar --main-class Goodbye --arguments "argument "Some Arguments" "Value \\"with\\" quotes"" --verbose](17)...
      [09:39:04.903] TRACE: exec: Done. Exit code: 1
      [09:39:04.905] ERROR: Expected [0]. Actual [1]: Check command tool provider [jpackage --input ./testApp.3f9b6877/input --dest ./testApp.3f9b6877/output --name AppArgumentsTest --type app-image -J-Djlink.debug=true --main-jar hello.jar --main-class Goodbye --arguments "argument "Some Arguments" "Value \\"with\\" quotes"" --verbose](17) exited with 0 code
      [09:39:04.905] [ FAILED ] ArgumentsTest.testApp(Goodbye); checks=3
      [09:39:04.905] [ RUN ] ArgumentsTest.testApp(com.hello/com.hello.Hello)
      [09:39:04.905] [ CALL ] ArgumentsTest.useJPackageToolProvider()
      [09:39:04.906] TRACE: Create [/System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S138808/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/92e4705d-a358-471e-835a-e1890a5577cf/runs/f48bbfce-a1d1-4bbb-ae94-f76d061fd1ac/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/0/testApp.341b1da9/src/module-info.java] text file...
      [09:39:04.906] TRACE: module com.hello {
      [09:39:04.906] TRACE: exports com.hello;
      [09:39:04.906] TRACE: requires java.desktop;
      [09:39:04.906] TRACE: }
      [09:39:04.907] TRACE: Done
      [09:39:04.909] TRACE: exec: Execute tool provider [javac -d ./testApp.341b1da9/jar-workdir ./testApp.341b1da9/src/com/hello/Hello.java ./testApp.341b1da9/src/module-info.java](5)...
      [09:39:04.982] TRACE: exec: Done. Exit code: 0
      [09:39:04.983] TRACE: assertEquals(0): Check command tool provider [javac -d ./testApp.341b1da9/jar-workdir ./testApp.341b1da9/src/com/hello/Hello.java ./testApp.341b1da9/src/module-info.java](5) exited with 0 code
      [09:39:04.983] TRACE: exec: Execute tool provider [jar -c -f ./testApp.341b1da9/input-modules/hello.jar -C ./testApp.341b1da9/jar-workdir .](7)...
      [09:39:04.987] TRACE: exec: Done. Exit code: 0
      [09:39:04.987] TRACE: assertEquals(0): Check command tool provider [jar -c -f ./testApp.341b1da9/input-modules/hello.jar -C ./testApp.341b1da9/jar-workdir .](7) exited with 0 code
      [09:39:04.988] TRACE: exec: Execute tool provider [jpackage --dest ./testApp.341b1da9/output --name AppArgumentsTest --type app-image -J-Djlink.debug=true --module-path ./testApp.341b1da9/input-modules --module com.hello/com.hello.Hello --arguments "argument "Some Arguments" "Value \\"with\\" quotes"" --verbose](15)...
      [09:39:04.988] TRACE: exec: Done. Exit code: 1
      [09:39:04.989] ERROR: Expected [0]. Actual [1]: Check command tool provider [jpackage --dest ./testApp.341b1da9/output --name AppArgumentsTest --type app-image -J-Djlink.debug=true --module-path ./testApp.341b1da9/input-modules --module com.hello/com.hello.Hello --arguments "argument "Some Arguments" "Value \\"with\\" quotes"" --verbose](15) exited with 0 code
      [09:39:04.989] [ FAILED ] ArgumentsTest.testApp(com.hello/com.hello.Hello); checks=3
      [09:39:04.989] [==========] 2 tests ran
      [09:39:04.989] [ PASSED ] 0 tests
      [09:39:04.990] [ FAILED ] 2 tests, listed below
      [09:39:04.990] [ FAILED ] ArgumentsTest.testApp(Goodbye); workDir=[./testApp.3f9b6877]
      [09:39:04.990] [ FAILED ] ArgumentsTest.testApp(com.hello/com.hello.Hello); workDir=[./testApp.341b1da9]
      [09:39:04.991] 2 FAILED TESTS
      ----------System.err:(80/5815)*----------
      Error: Invalid Option: [-J-Djlink.debug=true]
      java.lang.AssertionError: Expected [0]. Actual [1]: Check command tool provider [jpackage --input ./testApp.3f9b6877/input --dest ./testApp.3f9b6877/output --name AppArgumentsTest --type app-image -J-Djlink.debug=true --main-jar hello.jar --main-class Goodbye --arguments "argument "Some Arguments" "Value \\"with\\" quotes"" --verbose](17) exited with 0 code
      at jdk.jpackage.test.TKit.error(TKit.java:264)
      at jdk.jpackage.test.TKit.assertEquals(TKit.java:567)
      at jdk.jpackage.test.Executor$Result.assertExitCodeIs(Executor.java:183)
      at jdk.jpackage.test.Executor.execute(Executor.java:221)
      at jdk.jpackage.test.JPackageCommand.execute(JPackageCommand.java:688)
      at jdk.jpackage.test.JPackageCommand.execute(JPackageCommand.java:653)
      at jdk.jpackage.test.JPackageCommand.executeAndAssertImageCreated(JPackageCommand.java:704)
      at ArgumentsTest.testIt(ArgumentsTest.java:80)
      at ArgumentsTest.testApp(ArgumentsTest.java:68)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at jdk.jpackage.test.MethodCall.accept(MethodCall.java:145)
      at jdk.jpackage.test.TestInstance.run(TestInstance.java:230)
      at jdk.jpackage.test.TKit.lambda$ignoreExceptions$5(TKit.java:139)
      at jdk.jpackage.test.TKit.lambda$runTests$3(TKit.java:124)
      at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
      at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
      at jdk.jpackage.test.TKit.lambda$runTests$4(TKit.java:121)
      at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
      at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:107)
      at jdk.jpackage.test.TKit.runTests(TKit.java:120)
      at jdk.jpackage.test.Main.runTests(Main.java:79)
      at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
      at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
      at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:107)
      at jdk.jpackage.test.Main.main(Main.java:75)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)
      Error: Invalid Option: [-J-Djlink.debug=true]
      java.lang.AssertionError: Expected [0]. Actual [1]: Check command tool provider [jpackage --dest ./testApp.341b1da9/output --name AppArgumentsTest --type app-image -J-Djlink.debug=true --module-path ./testApp.341b1da9/input-modules --module com.hello/com.hello.Hello --arguments "argument "Some Arguments" "Value \\"with\\" quotes"" --verbose](15) exited with 0 code
      at jdk.jpackage.test.TKit.error(TKit.java:264)
      at jdk.jpackage.test.TKit.assertEquals(TKit.java:567)
      at jdk.jpackage.test.Executor$Result.assertExitCodeIs(Executor.java:183)
      at jdk.jpackage.test.Executor.execute(Executor.java:221)
      at jdk.jpackage.test.JPackageCommand.execute(JPackageCommand.java:688)
      at jdk.jpackage.test.JPackageCommand.execute(JPackageCommand.java:653)
      at jdk.jpackage.test.JPackageCommand.executeAndAssertImageCreated(JPackageCommand.java:704)
      at ArgumentsTest.testIt(ArgumentsTest.java:80)
      at ArgumentsTest.testApp(ArgumentsTest.java:68)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at jdk.jpackage.test.MethodCall.accept(MethodCall.java:145)
      at jdk.jpackage.test.TestInstance.run(TestInstance.java:230)
      at jdk.jpackage.test.TKit.lambda$ignoreExceptions$5(TKit.java:139)
      at jdk.jpackage.test.TKit.lambda$runTests$3(TKit.java:124)
      at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
      at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
      at jdk.jpackage.test.TKit.lambda$runTests$4(TKit.java:121)
      at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
      at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:107)
      at jdk.jpackage.test.TKit.runTests(TKit.java:120)
      at jdk.jpackage.test.Main.runTests(Main.java:79)
      at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
      at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
      at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:107)
      at jdk.jpackage.test.Main.main(Main.java:75)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)
      java.lang.RuntimeException: 2 FAILED TESTS
      at jdk.jpackage.test.Main.reportSummary(Main.java:130)
      at jdk.jpackage.test.Main.runTests(Main.java:90)
      at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
      at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
      at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:107)
      at jdk.jpackage.test.Main.main(Main.java:75)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: 2 FAILED TESTS
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 2 FAILED TESTS
      ----------rerun:(39/7270)*----------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jpai Jaikiran Pai
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: