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

tools/jpackage/share/RuntimePackageTest.java fails with NoSuchFileException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b24

      Description

      Have only been seen in debug configurations so far. Seems to be failing always. Tail of the jtreg output:

      [23:29:08.974] TRACE: assertEquals(0): Check command [pkgutil --expand ./test/output/RuntimePackageTest-1.0.pkg ./test/unpacked-pkg/data](4) exited with 0 code
      [23:29:09.194] TRACE: exec: Execute [tar -C ./test/unpacked-pkg/unpacked/Applications -xvf ./test/unpacked-pkg/data/RuntimePackageTest-app.pkg/Payload](5); discard I/O...
      [23:29:10.232] TRACE: exec: Done. Exit code: 0
      [23:29:10.434] TRACE: assertEquals(0): Check command [tar -C ./test/unpacked-pkg/unpacked/Applications -xvf ./test/unpacked-pkg/data/RuntimePackageTest-app.pkg/Payload](5) exited with 0 code
      [23:29:10.474] TRACE: Verify unpacked: [/System/Volumes/Data/mesos/work_dir/jib-master/install/2021-05-07-1633498.evgeny.nikitin.jdk/macosx-aarch64-debug.jdk/jdk-17/fastdebug/bin/jpackage --dest ./test/output --name RuntimePackageTest --type pkg --runtime-image /System/Volumes/Data/mesos/work_dir/jib-master/install/2021-05-07-1633498.evgeny.nikitin.jdk/macosx-aarch64-debug.jdk/jdk-17/fastdebug jpt-unpacked-folder ./test/unpacked-pkg/unpacked](11)
      [23:29:10.671] [ FAILED ] RuntimePackageTest.test; checks=5
      [23:29:10.686] [ RUN ] RuntimePackageTest.testUsrInstallDir
      [23:29:10.735] TRACE: Actions: [[initialize], [create], [unpack], [verify-install], [finalize]]
      [23:29:10.787] TRACE: Deleting [./testUsrInstallDir] directory recursively
      [23:29:10.891] [ OK ] RuntimePackageTest.testUsrInstallDir; checks=0
      [23:29:10.893] [ RUN ] RuntimePackageTest.testUsrInstallDir2
      [23:29:10.948] TRACE: Actions: [[initialize], [create], [unpack], [verify-install], [finalize]]
      [23:29:10.958] TRACE: Deleting [./testUsrInstallDir2] directory recursively
      [23:29:11.030] [ OK ] RuntimePackageTest.testUsrInstallDir2; checks=0
      [23:29:11.036] [==========] 3 tests ran
      [23:29:11.036] [ PASSED ] 2 tests
      [23:29:11.053] [ FAILED ] 1 test, listed below
      [23:29:11.060] [ FAILED ] RuntimePackageTest.test; workDir=[./test]
      [23:29:11.069] 1 FAILED TEST
      ----------System.err:(76/5504)----------
      java.nio.file.NoSuchFileException: ./test/unpacked-pkg/unpacked/Applications/RuntimePackageTest
      at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
      at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
      at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
      at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
      at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:149)
      at java.base/java.nio.file.Files.readAttributes(Files.java:1849)
      at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219)
      at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
      at java.base/java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
      at java.base/java.nio.file.FileTreeIterator.<init>(FileTreeIterator.java:71)
      at java.base/java.nio.file.Files.walk(Files.java:3919)
      at java.base/java.nio.file.Files.walk(Files.java:3974)
      at jdk.jpackage.test.JPackageCommand.lambda$assertAppLayout$29(JPackageCommand.java:724)
      at jdk.jpackage.test.Functional$ThrowingSupplier.lambda$toSupplier$0(Functional.java:71)
      at jdk.jpackage.test.JPackageCommand.assertAppLayout(JPackageCommand.java:724)
      at jdk.jpackage.test.PackageTest$Handler.verifyPackageInstalled(PackageTest.java:572)
      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:79)
      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:568)
      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:568)
      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: 1 FAILED TEST
      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:568)
      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: 1 FAILED TEST
      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: 1 FAILED TEST
      JavaTest Message: shutting down test

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              almatvee Alexander Matveev
              Reporter:
              enikitin Evgeny Nikitin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: