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

tools/jpackage/share/RuntimePackageTest.java#id0 with RuntimePackageTest.testUsrInstallDir2

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b30
    • CPU:
      generic
    • OS:
      linux

      Backports

        Description

        tools/jpackage/share/RuntimePackageTest.java#id0 was observed to fail in an ATR run.

        the following log extract shows the issue

        [17:05:54.551] TRACE: Verify unpacked: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-16+28-2065/linux-x64.jdk/jdk-16/bin/jpackage --dest ./testUsrInstallDir2/output --name UsrInstallDir2RuntimePackageTest --type rpm --runtime-image /opt/mach5/mesos/work_dir/jib-master/install/jdk-16+28-2065/linux-x64.jdk/jdk-16 --install-dir /usr/lib/Java jpt-unpacked-folder ./testUsrInstallDir2/unpacked-rpm](13)
        [17:05:54.557] TRACE: assertStringListEquals(): Check there are no files with [.jpackage.xml] name in the package
        [17:05:54.557] TRACE: assertTrue(): Check [./testUsrInstallDir2/unpacked-rpm/usr/lib/Java/usrinstalldir2runtimepackagetest] path exists
        [17:05:54.557] TRACE: assertTrue(): Check [./testUsrInstallDir2/unpacked-rpm/usr/lib/Java/usrinstalldir2runtimepackagetest] is a directory
        [17:05:54.570] TRACE: Missing 3 files:
        [17:05:54.570] TRACE: .systemPrefs
        [17:05:54.570] TRACE: .systemPrefs/.system.lock
        [17:05:54.570] TRACE: .systemPrefs/.systemRootModFile
        [17:05:54.571] TRACE: Done
        [17:05:54.571] ERROR: Failed: Check there are no missing files in installed image
        [17:05:54.571] [ FAILED ] RuntimePackageTest.testUsrInstallDir2; checks=13
        [17:05:54.573] [==========] 3 tests ran
        [17:05:54.574] [ PASSED ] 1 test
        [17:05:54.576] [ FAILED ] 2 tests, listed below
        [17:05:54.577] [ FAILED ] RuntimePackageTest.test; workDir=[./test]
        [17:05:54.577] [ FAILED ] RuntimePackageTest.testUsrInstallDir2; workDir=[./testUsrInstallDir2]
        [17:05:54.578] 2 FAILED TESTS
        ----------System.err:(114/8110)----------
        java.lang.AssertionError: Failed: Check there are no missing files in installed image
        at jdk.jpackage.test.TKit.error(TKit.java:293)
        at jdk.jpackage.test.TKit.assertTrue(TKit.java:673)
        at RuntimePackageTest.assertFileListEmpty(RuntimePackageTest.java:134)
        at RuntimePackageTest.lambda$init$3(RuntimePackageTest.java:122)
        at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
        at jdk.jpackage.test.PackageTest$Handler.lambda$accept$0(PackageTest.java:510)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at jdk.jpackage.test.PackageTest$Handler.verifyPackageInstalled(PackageTest.java:574)
        at jdk.jpackage.test.PackageTest$Handler.accept(PackageTest.java:529)
        at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:452)
        at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:396)
        at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
        at java.base/java.lang.Iterable.forEach(Iterable.java:75)
        at jdk.jpackage.test.PackageTest.lambda$runActions$20(PackageTest.java:360)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at jdk.jpackage.test.PackageTest.lambda$runActions$21(PackageTest.java:359)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at jdk.jpackage.test.PackageTest.runActions(PackageTest.java:358)
        at jdk.jpackage.test.RunnablePackageTest.run(RunnablePackageTest.java:51)
        at RuntimePackageTest.test(RuntimePackageTest.java:83)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        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$6(TKit.java:155)
        at jdk.jpackage.test.TKit.lambda$runTests$4(TKit.java:140)
        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$5(TKit.java:137)
        at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
        at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:123)
        at jdk.jpackage.test.TKit.runTests(TKit.java:136)
        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:123)
        at jdk.jpackage.test.Main.main(Main.java:75)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:831)
        java.lang.AssertionError: Failed: Check there are no missing files in installed image
        at jdk.jpackage.test.TKit.error(TKit.java:293)
        at jdk.jpackage.test.TKit.assertTrue(TKit.java:673)
        at RuntimePackageTest.assertFileListEmpty(RuntimePackageTest.java:134)
        at RuntimePackageTest.lambda$init$3(RuntimePackageTest.java:122)
        at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
        at jdk.jpackage.test.PackageTest$Handler.lambda$accept$0(PackageTest.java:510)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at jdk.jpackage.test.PackageTest$Handler.verifyPackageInstalled(PackageTest.java:574)
        at jdk.jpackage.test.PackageTest$Handler.accept(PackageTest.java:529)
        at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:452)
        at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:396)
        at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
        at java.base/java.lang.Iterable.forEach(Iterable.java:75)
        at jdk.jpackage.test.PackageTest.lambda$runActions$20(PackageTest.java:360)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at jdk.jpackage.test.PackageTest.lambda$runActions$21(PackageTest.java:359)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at jdk.jpackage.test.PackageTest.runActions(PackageTest.java:358)
        at jdk.jpackage.test.RunnablePackageTest.run(RunnablePackageTest.java:51)
        at RuntimePackageTest.testUsrInstallDir2(RuntimePackageTest.java:97)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        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$6(TKit.java:155)
        at jdk.jpackage.test.TKit.lambda$runTests$4(TKit.java:140)
        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$5(TKit.java:137)
        at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
        at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:123)
        at jdk.jpackage.test.TKit.runTests(TKit.java:136)
        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:123)
        at jdk.jpackage.test.Main.main(Main.java:75)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:831)
        jdk.jpackage.test.Functional$ExceptionBox: java.lang.RuntimeException: 2 FAILED TESTS
        at jdk.jpackage.test.Functional.rethrowUnchecked(Functional.java:161)
        at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:107)
        at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:123)
        at jdk.jpackage.test.Main.main(Main.java:75)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:831)
        Caused by: 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)
        ... 8 more

        JavaTest Message: Test threw exception: jdk.jpackage.test.Functional$ExceptionBox: java.lang.RuntimeException: 2 FAILED TESTS
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: jdk.jpackage.test.Functional$ExceptionBox: java.lang.RuntimeException: 2 FAILED TESTS

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                asemenyuk Alexey Semenyuk
                Reporter:
                msheppar Mark Sheppard
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: